Details

    • Type: New Feature New Feature
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.3
    • Component/s: Components/Renderers
    • Labels:
      None

      Description

      I encountered a problem attempting to set the ui:repeat "value" attribute to an
      instance that was a subclass of java.util.Set (specifically Hibernate's
      PersistentSet class): the UIRepeat class treated it like a scalar object.

      An iteration tag like ui:repeat should work with all Collection types in my
      opinion. In the UIRepeat.getDataModel() method it's possible to detect an
      instance of Collection and make use of the ArrayDataModel by invoking the
      toArray() method on the instance. In this way a new DataModel implementation
      isn't needed. I've made this change in my own copy of Facelets and it works
      beautifully.

      Hibernate happens to use Sets quite a bit, so this was important to me. I'd be
      happy to submit a patch.

      This issue occurs in Facelets 1.2 as well.\

        Issue Links

          Activity

          Ed Burns created issue -
          Ed Burns made changes -
          Field Original Value New Value
          Assignee rogerk [ rogerk ] Ed Burns [ edburns ]
          Ed Burns made changes -
          Link This issue duplicates FACELETS-240 [ FACELETS-240 ]
          Ed Burns made changes -
          Assignee Ed Burns [ edburns ]
          Ed Burns made changes -
          Fix Version/s 2.3 [ 16372 ]
          Ed Burns made changes -
          Priority Minor [ 4 ] Trivial [ 5 ]
          Fix Version/s 2.3 [ 16372 ]
          Manfred Riem made changes -
          Priority Trivial [ 5 ] Major [ 3 ]
          arjan tijms made changes -
          Summary UIRepeat supports Collection UIRepeat and UIData supports Iterable
          arjan tijms made changes -
          Assignee arjan tijms [ arjan_t ]
          arjan tijms made changes -
          Attachment changebundle.txt [ 54434 ]
          Attachment newfiles.zip [ 54435 ]
          arjan tijms made changes -
          Assignee arjan tijms [ arjan_t ] Manfred Riem [ mriem ]
          arjan tijms made changes -
          Ed Burns made changes -
          Link This issue is related to JAVASERVERFACES-3785 [ JAVASERVERFACES-3785 ]
          arjan tijms made changes -
          Attachment changebundle.txt [ 54474 ]
          arjan tijms made changes -
          Attachment changebundle.txt [ 54489 ]
          Manfred Riem made changes -
          Attachment changebundle.txt [ 54489 ]
          Manfred Riem made changes -
          Attachment changebundle.txt [ 54434 ]
          Manfred Riem made changes -
          Attachment newfiles.zip [ 54435 ]
          Manfred Riem made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Fix Version/s 2.3 [ 16372 ]
          Resolution Fixed [ 1 ]
          arjan tijms made changes -

            People

            • Assignee:
              Manfred Riem
              Reporter:
              Ed Burns
            • Votes:
              13 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: