Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.2.12, 2.3-next-M1, 2.3.5
-
None
Description
Just run the attached sample
- initially there is "" assigned to the ui:include
- if you open the sidebar via "include 1", a new src is set and the UI updated but the include is not in the view
it seems to happen because of this If:
if (!PhaseId.RESTORE_VIEW.equals(ctx.getFacesContext().getCurrentPhaseId()))
in the IncludeHandler.
Seems that our IncludeHandler is executed to early in RESTORE_VIEW, as the new include is set in the INVOKE_APPLICATION phase.
In both Mojarra and MyFaces VDL#buildView is called 2 times on the POST:
1) in RestoreView
2) in RenderResponse
The difference is, that only Mojarra calls the IncludeHandler in both phases. MyFaces calls it only in RestoreView.