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

transient attribute is not inherited from template to final page.

    XMLWordPrintableJSON

Details

    Description

      After upgrading from Myfaces 2.2 to 2.3, templated transient views stop to work, raising "unable to create views" exceptions.
      f:view transient attribute defined in a template seems not to be inherited by the final page correctly. With myfaces 2.2 it worked correctly, but in 2.3, there is a new checkĀ 

      if (!view.isTransient()) ...
      

      on FaceletViewDeclarationLanguage line 2128. On page restoring, transient appears as false.

      A workaround is to set transient="true" on the final page too. Other option is to use a blockĀ 

      <f:metadata><f:view transient="true" /></f:metadata>
      

      on the final page (f:metadata doc says it shouldn't be used in templates).

      Attachments

        Activity

          People

            wtlucy Bill Lucy
            antgar9 Antgar
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: