Details

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

      Description

      In reference to JAVASERVERFACES_SPEC_PUBLIC-1103 Bauke Scholtz commented the following:

      Would be even more cool if it transparently recognizes Map like c:forEach so we don't need value="#{bean.map.entrySet()}" everytime.

      Splitting this off from 1103; it's strongly related but a different (additional) type.

        Issue Links

          Activity

          Hide
          arjan tijms added a comment -

          When discussing support for Iterable, the wish for Map also came up.

          Show
          arjan tijms added a comment - When discussing support for Iterable, the wish for Map also came up.
          Hide
          arjan tijms added a comment -

          For this change the spec document needs to be updated, specifically section 4.1.3.2.

          This section currently (in the 2.3 branch) contains the following text:

          The current value identified by the value property is normally of type DataModel. [P1-start-uidataModel]However, a DataModel wrapper instance must automatically be provided by the JSF implementation if the current value is of one of the following types:
          java.util.List
          Array of java.util.Object
          java.sql.ResultSet (which therefore also supports javax.sql.RowSet) 
          javax.servlet.jsp.jstl.sql.Result
          java.util.Collection
          java.lang.Iterable
          Any other Java object is wrapped by a DataModel instance with a single row.[P1-end]
          

          The updated text in section 4.1.3.2 after this update would be the following:

          The current value identified by the value property is normally of type DataModel. [P1-start-uidataModel]However, a DataModel wrapper instance must automatically be provided by the JSF implementation if the current value is of one of the following types:
          java.util.List
          Array of java.util.Object
          java.sql.ResultSet (which therefore also supports javax.sql.RowSet) 
          javax.servlet.jsp.jstl.sql.Result
          java.util.Collection
          java.lang.Iterable
          java.util.Map (uses the wrapper for java.lang.Iterable by providing access to java.util.Map#entrySet())
          Any other Java object is wrapped by a DataModel instance with a single row.[P1-end]
          
          Show
          arjan tijms added a comment - For this change the spec document needs to be updated, specifically section 4.1.3.2. This section currently (in the 2.3 branch) contains the following text: The current value identified by the value property is normally of type DataModel. [P1-start-uidataModel]However, a DataModel wrapper instance must automatically be provided by the JSF implementation if the current value is of one of the following types: java.util.List Array of java.util.Object java.sql.ResultSet (which therefore also supports javax.sql.RowSet) javax.servlet.jsp.jstl.sql.Result java.util.Collection java.lang.Iterable Any other Java object is wrapped by a DataModel instance with a single row.[P1-end] The updated text in section 4.1.3.2 after this update would be the following: The current value identified by the value property is normally of type DataModel. [P1-start-uidataModel]However, a DataModel wrapper instance must automatically be provided by the JSF implementation if the current value is of one of the following types: java.util.List Array of java.util.Object java.sql.ResultSet (which therefore also supports javax.sql.RowSet) javax.servlet.jsp.jstl.sql.Result java.util.Collection java.lang.Iterable java.util.Map (uses the wrapper for java.lang.Iterable by providing access to java.util.Map#entrySet()) Any other Java object is wrapped by a DataModel instance with a single row.[P1-end]
          Hide
          Manfred Riem added a comment -

          Applied to 2.3 trunk,

          svn commit -m "Fixes https://java.net/jira/browse/JAVASERVERFACES_SPEC_PUBLIC-1364, UIRepeat and UIData supports Map"
          Sending spec/frame/standardUserInterfaceComponents.fm
          Transmitting file data .
          Committed revision 1166.

          Show
          Manfred Riem added a comment - Applied to 2.3 trunk, svn commit -m "Fixes https://java.net/jira/browse/JAVASERVERFACES_SPEC_PUBLIC-1364 , UIRepeat and UIData supports Map" Sending spec/frame/standardUserInterfaceComponents.fm Transmitting file data . Committed revision 1166.

            People

            • Assignee:
              Manfred Riem
              Reporter:
              arjan tijms
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: