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

Custom Taglib with composite components and JSTL

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Invalid
    • 2.1.17, 2.2.9
    • None
    • None
    • None

    Description

      I tested this on Wildfly 10.0.0.CR5 with both, MyFaces 2.1.17 and 2.2.9 but I suppose this issue is not specific to my environment.
      The example project can be found on Github: https://github.com/beikov/myfaces-composite-jstl-issue

      I think the essential problem is, that a composite component passes an EL expression to a custom tag which then uses the expression in a JSTL Tag.
      I don't know if it's just illegal to do something like this, or if there is an actual bug, but if it is the former, I'd expect an exception.

      Depending on whether the property "org.apache.myfaces.REFRESH_TRANSIENT_BUILD_ON_PSS_PRESERVE_STATE" is enabled the behavior is different.

      When enabled, the converter that is attached to the composite component will be considered for state saving which in this case leads to a converter without state when restoring and finally leading to a converter exception on postback.

      When disabled, the first postback request just seems to do nothing, but then, it seemingly works as expected.

      Attachments

        1. issue.zip
          6 kB
          Christian Beikov

        Issue Links

          Activity

            People

              lu4242 Leonardo Uribe
              christian.beikov Christian Beikov
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: