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

c:foreach not working when using custom equals or non serializable objects

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.2.7
    • Fix Version/s: 2.2.8
    • Component/s: General
    • Labels:
      None

      Description

      c:foreach doesn't work as intended when using an object with an overriden equals. The same problem is observed when using an non serializable object. In both cases the problem seems to be that the foreach component caches and uses an outdated reference to the object.

      When using a serializable object with a non overwriten equals method, all works as intended.

      When forcing org.apache.myfaces.STRICT_JSF_2_FACELETS_COMPATIBILITY as true on the web.xml file, all works as intended.

      When using ui:repeat, all works as intended.

      I created a test case that demonstrates the problem.

        Attachments

        1. MyFaces22Test.war
          4.20 MB
          Gonçalo Manuel Cruchinho

          Issue Links

            Activity

              People

              • Assignee:
                lu4242 Leonardo Uribe
                Reporter:
                gmanuel Gonçalo Manuel Cruchinho
              • Votes:
                3 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: