Details
Description
After a page is initially loaded, the first Ajax request will trigger a larger than necessary update due to the changing ViewState values in the hidden input fields. This will typically mean that the full form is always sent back as the first update.
Issue Links
Activity
Ken Fyten
made changes -
Status | Resolved [ 5 ] | Closed [ 6 ] |
Ken Fyten
made changes -
Fix Version/s | 3.0 [ 10241 ] |
Deryk Sinotte
made changes -
Status | Open [ 1 ] | Resolved [ 5 ] |
Resolution | Fixed [ 1 ] |
Deryk Sinotte
made changes -
Deryk Sinotte
made changes -
Deryk Sinotte
made changes -
Field | Original Value | New Value |
---|---|---|
Assignee | Deryk Sinotte [ deryk.sinotte ] |
Deryk Sinotte
created issue -
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #25140 | Tue Aug 02 11:54:58 MDT 2011 | deryk.sinotte | |
Files Changed | ||||
MODIFY
/icefaces2/trunk/icefaces/core/src/main/java/org/icefaces/impl/context/DOMResponseWriter.java
|
I modified the DOMResponseWriter to use a similar strategy to what we do with Mojarra. That is, when MyFaces adds the ViewState elements, we identify it and store it for later removal. We allow the response to be written back (including all the ViewState elements) and then remove them from the DOM after. This way, they are not in the DOM when a DOM diff is done and don't trigger the larger updates.