ICEfaces
  1. ICEfaces
  2. ICE-10997

create icecore:repeat component which allows components access to repetition and resolved expressions when added to component tree

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 4.1.1
    • Fix Version/s: 4.2
    • Component/s: ACE-Components
    • Labels:
      None
    • Environment:
      ace
    • Assignee Priority:
      P1
    • Affects:
      Documentation (User Guide, Ref. Guide, etc.), Sample App./Tutorial

      Description

      a looping parent component which allows the user to determine what is to be placed in the component attributes .
      for example (in the case of ace:panelStack)

      <icecore:repeat var="data" value="#{somebean.sequence}" >
          <ace:panelStack selectedId="#{data.selectedId}">
                <ace:stackPane id="pane1">
                     .....
                </ace:stackPane>
               <ace:stackPane id="pane2">
                    ....
               </ace:stackPane>
      </icecore:repeat>

      currently, use of c:forEach is limited in that myfaces causes exception as it requires static data in c:forEach. http://jira.icesoft.org/browse/ICE-10792
      A basic repeat tag could have it's own tag handler allowing it to act both like <ui:repeat> and <c:forEach> so that consideration is given while constructing the tree as well as within the tree

        Activity

        Judy Guglielmin created issue -
        Ken Fyten made changes -
        Field Original Value New Value
        Fix Version/s 4.2 [ 12870 ]
        Ken Fyten made changes -
        Assignee Mircea Toma [ mircea.toma ]
        Assignee Priority P3 [ 10012 ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #50378 Mon Feb 06 16:37:08 MST 2017 mircea.toma ICE-10997 Add icecore:repeat implementation.
        Files Changed
        Commit graph ADD /icefaces4/trunk/icefaces/core/src/main/java/org/icefaces/impl/component/Repeat.java
        Commit graph MODIFY /icefaces4/trunk/icefaces/core/src/main/resources/META-INF/core.taglib.xml
        Commit graph MODIFY /icefaces4/trunk/icefaces/core/src/main/resources/META-INF/faces-config.xml
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #50379 Mon Feb 06 16:45:16 MST 2017 mircea.toma ICE-10997 Run "rows" and ""index" validation after the real number of items was determined.
        Files Changed
        Commit graph MODIFY /icefaces4/trunk/icefaces/core/src/main/java/org/icefaces/impl/component/Repeat.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #50380 Mon Feb 06 17:16:00 MST 2017 mircea.toma ICE-10997 Fix validation.
        Files Changed
        Commit graph MODIFY /icefaces4/trunk/icefaces/core/src/main/java/org/icefaces/impl/component/Repeat.java
        Hide
        Mircea Toma added a comment - - edited

        Implemented icecore:repeat component. It proivides iteration information by means of a additional variable defined by varStatus attribute. It can start iteration at a predefined index by defining the first attribute and/or iterate over a defined number of items when rows attribute is used.

        Show
        Mircea Toma added a comment - - edited Implemented icecore:repeat component. It proivides iteration information by means of a additional variable defined by varStatus attribute. It can start iteration at a predefined index by defining the first attribute and/or iterate over a defined number of items when rows attribute is used.
        Hide
        Mircea Toma added a comment -

        Added test application under icefaces4/trunk/icefaces/samples/core/test/repeat.

        Show
        Mircea Toma added a comment - Added test application under icefaces4/trunk/icefaces/samples/core/test/repeat .
        Mircea Toma made changes -
        Summary create ace:repeat component which allows components access to repetition and resolved expressions when added to component tree create icecore:repeat component which allows components access to repetition and resolved expressions when added to component tree
        Mircea Toma made changes -
        Affects Documentation (User Guide, Ref. Guide, etc.) [ 10003 ]
        Mircea Toma made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Mircea Toma made changes -
        Description a looping parent component which allows the user to determine what is to be placed in the component attributes .
        for example (in the case of ace:panelStack)

        <ace:repeat var="data" value="#{somebean.sequence}" >
            <ace:panelStack selectedId="#{data.selectedId}">
                  <ace:stackPane id="pane1">
                       .....
                  </ace:stackPane>
                 <ace:stackPane id="pane2">
                      ....
                 </ace:stackPane>
        </ace:repeat>

        currently, use of c:forEach is limited in that myfaces causes exception as it requires static data in c:forEach. http://jira.icesoft.org/browse/ICE-10792
        A basic repeat tag could have it's own tag handler allowing it to act both like <ui:repeat> and <c:forEach> so that consideration is given while constructing the tree as well as within the tree
        a looping parent component which allows the user to determine what is to be placed in the component attributes .
        for example (in the case of ace:panelStack)

        <icecore:repeat var="data" value="#{somebean.sequence}" >
            <ace:panelStack selectedId="#{data.selectedId}">
                  <ace:stackPane id="pane1">
                       .....
                  </ace:stackPane>
                 <ace:stackPane id="pane2">
                      ....
                 </ace:stackPane>
        </icecore:repeat>

        currently, use of c:forEach is limited in that myfaces causes exception as it requires static data in c:forEach. http://jira.icesoft.org/browse/ICE-10792
        A basic repeat tag could have it's own tag handler allowing it to act both like <ui:repeat> and <c:forEach> so that consideration is given while constructing the tree as well as within the tree
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #50381 Mon Feb 06 18:31:21 MST 2017 mircea.toma ICE-10997 Add test application for icecore:repeat component.
        Files Changed
        Commit graph ADD /icefaces4/trunk/icefaces/samples/core/test/repeat/src/main/webapp/test.xhtml
        Commit graph ADD /icefaces4/trunk/icefaces/samples/core/test/repeat/src/main
        Commit graph ADD /icefaces4/trunk/icefaces/samples/core/test/repeat/src/main/java/org
        Commit graph ADD /icefaces4/trunk/icefaces/samples/core/test/repeat/src/main/webapp/WEB-INF
        Commit graph ADD /icefaces4/trunk/icefaces/samples/core/test/repeat/src/main/webapp
        Commit graph ADD /icefaces4/trunk/icefaces/samples/core/test/repeat/src/main/java
        Commit graph ADD /icefaces4/trunk/icefaces/samples/core/test/repeat/src/main/resources
        Commit graph ADD /icefaces4/trunk/icefaces/samples/core/test/repeat/src/main/java/org/icefaces/demo/repeat/TestBean.java
        Commit graph ADD /icefaces4/trunk/icefaces/samples/core/test/repeat/build.xml
        Commit graph ADD /icefaces4/trunk/icefaces/samples/core/test/repeat/src/main/webapp/WEB-INF/web.xml
        Commit graph ADD /icefaces4/trunk/icefaces/samples/core/test/repeat/src/main/webapp/WEB-INF/faces-config.xml
        Commit graph ADD /icefaces4/trunk/icefaces/samples/core/test/repeat/src/main/java/org/icefaces/demo/repeat
        Commit graph ADD /icefaces4/trunk/icefaces/samples/core/test/repeat/src
        Commit graph ADD /icefaces4/trunk/icefaces/samples/core/test/repeat/src/main/java/org/icefaces/demo
        Commit graph ADD /icefaces4/trunk/icefaces/samples/core/test/repeat/src/main/java/org/icefaces
        Commit graph ADD /icefaces4/trunk/icefaces/samples/core/test/repeat
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #50382 Tue Feb 07 07:09:41 MST 2017 mircea.toma ICE-10997 Run validation and decoding for the children components. Add test that exercises post-backs to the iterated items.
        Files Changed
        Commit graph MODIFY /icefaces4/trunk/icefaces/samples/core/test/repeat/src/main/webapp/test.xhtml
        Commit graph MODIFY /icefaces4/trunk/icefaces/core/src/main/java/org/icefaces/impl/component/Repeat.java
        Commit graph MODIFY /icefaces4/trunk/icefaces/samples/core/test/repeat/src/main/java/org/icefaces/demo/repeat/TestBean.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #50385 Wed Feb 08 06:57:29 MST 2017 mircea.toma ICE-10997 Simplify.
        Files Changed
        Commit graph MODIFY /icefaces4/trunk/icefaces/core/src/main/java/org/icefaces/impl/component/Repeat.java
        Hide
        Mircea Toma added a comment -

        Added TLD documentation for icecore:repeat component.

        Show
        Mircea Toma added a comment - Added TLD documentation for icecore:repeat component.
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #50387 Wed Feb 08 10:45:28 MST 2017 mircea.toma ICE-10997 Added TLD documentation for icecore:repeat component.
        Files Changed
        Commit graph MODIFY /icefaces4/trunk/icefaces/core/src/main/resources/META-INF/core.taglib.xml
        Commit graph MODIFY /icefaces4/trunk/icefaces/core/src/main/resources/META-INF/core.tld
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #50388 Wed Feb 08 11:07:04 MST 2017 mircea.toma ICE-10997 Make inner class serializable.
        Files Changed
        Commit graph MODIFY /icefaces4/trunk/icefaces/samples/core/test/repeat/src/main/java/org/icefaces/demo/repeat/TestBean.java
        Ken Fyten made changes -
        Security Private [ 10001 ]
        Hide
        Ken Fyten added a comment -

        Also need a new Wiki topic for this component, under this page: http://www.icesoft.org/wiki/display/ICE/ICECORE+Components

        In the format of the others, etc.

        Show
        Ken Fyten added a comment - Also need a new Wiki topic for this component, under this page: http://www.icesoft.org/wiki/display/ICE/ICECORE+Components In the format of the others, etc.
        Ken Fyten made changes -
        Resolution Fixed [ 1 ]
        Status Resolved [ 5 ] Reopened [ 4 ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #50543 Wed Feb 15 15:09:56 MST 2017 mircea.toma ICE-10997 Store/restore component data while iterating.
        Files Changed
        Commit graph MODIFY /icefaces4/trunk/icefaces/core/src/main/java/org/icefaces/impl/component/Repeat.java
        Hide
        Mircea Toma added a comment -

        Implemented store/restore EditableValueHolder data while iterating over the grand/children. This overrides UIData's implementation which requires a UIColumn for its direct children.

        Re-enabled row state saving.

        Show
        Mircea Toma added a comment - Implemented store/restore EditableValueHolder data while iterating over the grand/children. This overrides UIData's implementation which requires a UIColumn for its direct children. Re-enabled row state saving.
        Mircea Toma made changes -
        Status Reopened [ 4 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #50544 Wed Feb 15 17:15:41 MST 2017 mircea.toma ICE-10997 Enable row state saving.
        Files Changed
        Commit graph MODIFY /icefaces4/trunk/icefaces/core/src/main/java/org/icefaces/impl/component/Repeat.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #50546 Thu Feb 16 05:29:54 MST 2017 mircea.toma ICE-10997 Simplify code.
        Files Changed
        Commit graph MODIFY /icefaces4/trunk/icefaces/core/src/main/java/org/icefaces/impl/component/Repeat.java
        Mircea Toma made changes -
        Resolution Fixed [ 1 ]
        Status Resolved [ 5 ] Reopened [ 4 ]
        Hide
        Mircea Toma added a comment -

        2) 4) Fixed issue by setting up the 'var' object when Faces event is broadcast.

        Show
        Mircea Toma added a comment - 2) 4) Fixed issue by setting up the 'var' object when Faces event is broadcast.
        Hide
        Mircea Toma added a comment -

        5) Fixed client ID matching in TableBean.menuListener method.

        Show
        Mircea Toma added a comment - 5) Fixed client ID matching in TableBean.menuListener method.
        Mircea Toma made changes -
        Status Reopened [ 4 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #50566 Mon Feb 20 12:15:27 MST 2017 mircea.toma ICE-10997 Setup 'var' object when Faces event is broadcast. Refactor code.
        Files Changed
        Commit graph MODIFY /icefaces4/trunk/icefaces/core/src/main/java/org/icefaces/impl/component/Repeat.java
        Hide
        Mircea Toma added a comment - - edited
        Show
        Mircea Toma added a comment - - edited Added Wiki documentation: http://www.icesoft.org/wiki/display/ICE/repeat .
        Hide
        Ken Fyten added a comment -

        Re-opened to add a new icecore:repeat demo to the showcase.

        Contents can resemble the attached TextEntryIcecoreRepeat.xhtml file.

        Show
        Ken Fyten added a comment - Re-opened to add a new icecore:repeat demo to the showcase. Contents can resemble the attached TextEntryIcecoreRepeat.xhtml file.
        Ken Fyten made changes -
        Resolution Fixed [ 1 ]
        Status Resolved [ 5 ] Reopened [ 4 ]
        Affects Documentation (User Guide, Ref. Guide, etc.) [ 10003 ] Documentation (User Guide, Ref. Guide, etc.),Sample App./Tutorial [ 10003, 10001 ]
        Assignee Priority P3 [ 10012 ] P1 [ 10010 ]
        Ken Fyten made changes -
        Attachment textEntryIcecoreRepeat.xhtml [ 22459 ]
        Hide
        Mircea Toma added a comment -

        Added showcase example.

        Show
        Mircea Toma added a comment - Added showcase example.
        Mircea Toma made changes -
        Status Reopened [ 4 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #50731 Thu Feb 23 13:59:57 MST 2017 mircea.toma ICE-10997 Add showcase example.
        Files Changed
        Commit graph ADD /icefaces4/trunk/icefaces/samples/showcase/showcase/src/main/webapp/resources/examples/core/repeat.xhtml
        Commit graph MODIFY /icefaces4/trunk/icefaces/samples/showcase/showcase/src/main/java/org/icefaces/samples/showcase/view/menu/data/CentralDataList.java
        Commit graph MODIFY /icefaces4/trunk/icefaces/samples/showcase/showcase/src/main/resources/org/icefaces/samples/showcase/view/resources/messages.properties
        Commit graph ADD /icefaces4/trunk/icefaces/samples/showcase/showcase/src/main/java/org/icefaces/samples/showcase/example/core/repeat/RepeatBean.java
        Commit graph ADD /icefaces4/trunk/icefaces/samples/showcase/showcase/src/main/java/org/icefaces/samples/showcase/example/core/repeat
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #50738 Fri Feb 24 08:38:56 MST 2017 carmen.cristurean ICE-10997 - fix minor typo in showcase demo for icecore:repeat.
        Files Changed
        Commit graph MODIFY /icefaces4/trunk/icefaces/samples/showcase/showcase/src/main/java/org/icefaces/samples/showcase/example/core/repeat/RepeatBean.java
        Hide
        Ken Fyten added a comment -

        Showcase Demo Review Notes

        • Change desc text: "The icecore:repeat component is used to iterate child components over the items of a data source, such as java.util.Collection, array or java.sql.ResultSet. It can also provide iteration information by means of a additional variable."
        Show
        Ken Fyten added a comment - Showcase Demo Review Notes Change desc text: "The icecore:repeat component is used to iterate child components over the items of a data source, such as java.util.Collection, array or java.sql.ResultSet. It can also provide iteration information by means of a additional variable."
        Ken Fyten made changes -
        Resolution Fixed [ 1 ]
        Status Resolved [ 5 ] Reopened [ 4 ]
        Hide
        Mircea Toma added a comment -

        Updated component description.

        Show
        Mircea Toma added a comment - Updated component description.
        Mircea Toma made changes -
        Status Reopened [ 4 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #50752 Mon Feb 27 13:27:56 MST 2017 mircea.toma ICE-10997 Update component description.
        Files Changed
        Commit graph MODIFY /icefaces4/trunk/icefaces/samples/showcase/showcase/src/main/resources/org/icefaces/samples/showcase/view/resources/messages.properties
        Hide
        Carmen Cristurean added a comment -

        Verified Jenkins ICEfaces4 trunk build #2402/ r50572 in all usual browsers.

        Show
        Carmen Cristurean added a comment - Verified Jenkins ICEfaces4 trunk build #2402/ r50572 in all usual browsers.
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Mircea Toma
            Reporter:
            Judy Guglielmin
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: