Issue Details (XML | Word | Printable)

Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Ed Burns
Reporter: mattcooper
Votes: 4
Watchers: 2

If you were logged in you would be able to see more operations.

Facelets drops changes to the component tree whereas JSP preserves the component tree changes

Created: 01/Mar/11 01:30 PM   Updated: 28/Feb/12 07:45 PM   Resolved: 28/Feb/12 07:45 PM
Component/s: facelets
Affects Version/s: 2.0.4, 2.1.0
Fix Version/s: 2.1.7

Time Tracking:
Not Specified

File Attachments: 1. Zip Archive (4.47 MB) 01/Mar/11 01:30 PM - mattcooper

Issue Links:

Status Whiteboard:

size_large importance_medium

Participants: arjan tijms, Ed Burns, kennardconsulting, Manfred Riem and mattcooper

 Description  « Hide

There is a loss of functionality if your page is using Facelets vs. if it is using JSP: if you make changes to the component tree such as reordering the children of a panelGroup, the Facelets page will drop these changes after the before phase of RENDER_RESPONSE whereas a JSP page with identical application code will honor the child reordering.

I am attaching a sample application that has both a Facelets page and a JSP page showing that in JSP it works but in Facelets, it fails. This application also has a phase listener to log the ids of the components showing that the reorder is honored at least until before RENDER_RESPONSE but as seen in the browser, the Facelets version will revert back to the original ordering from the xhtml source file. (More details can be seen in the readme.txt file of the attachment.)

arjan tijms added a comment - 16/Aug/11 08:50 AM

Isn't this a special case of the general issue described in JAVASERVERFACES-1826? The JSP observation is interesting though.

kennardconsulting added a comment - 18/Oct/11 09:50 PM

This is very likely a special case of JAVASERVERFACES-1826, yes.

The JSP observation is consistent, because I believe JSP (even under JSF 2.0) does not use partial state saving. Only Facelets uses partial state saving.

Manfred Riem added a comment - 28/Feb/12 07:45 PM

Fixed as part of the fixes done for 1826