Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-4304

dynamic ui:include doesn't always work

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2.12, 2.3-next-M1, 2.3.5
    • 2.2.13, 2.3-next-M1, 2.3.6
    • General
    • 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.

      Attachments

        1. primefaces-test.7z
          3 kB
          Thomas Andraschko

        Activity

          People

            tandraschko Thomas Andraschko
            tandraschko Thomas Andraschko
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: