initPage not called:
https://jsftemplating.dev.java.net/issues/show_bug.cgi?id=23
Issue #|23
Summary|initPage not called
Component|jsftemplating
Version|1.0beta
Platform|All
OS/Version|All
URL|
Status|NEW
Status whiteboard|
Keywords|
Resolution|
Issue type|DEFECT
Priority|P2
Subcomponent|Events / Handlers
Assigned to|kenpaulsen
Reported by|kenpaulsen
------- Additional comments from kenpaulsen_at_dev.java.net Tue Jun 5 22:40:46 +0000 2007 -------
If you navigate from page A to Page A in JSF, it is supposed to create a new UIViewRoot (as opposed to not navigating
and allowing the page to redisplay itself with the same UIViewRoot). JSFTemplating does this correctly.
However, in this case pageSession variables are lost (as expected), what is not expected is that the initPage even does
not fire a 2nd time when recreating the new UIViewRoot and the rest of its tree. JSFT tries to be smart and detect that
it has already fired the initPage events for this viewId, but since navigation has occured, it should reset that flag
and re-execute the initPage event again.
This bug was found b/c initPage was initializing pageSession variables. The pageSession values are lost when the old
UIViewRoot is thrown away, yet not recreated when the new UIViewRoot was used. So this is an easy testcase to confirm
the fix.
Ken