ICEfaces
  1. ICEfaces
  2. ICE-2622

Add row level grouping mechanism to the dataTable component

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.7
    • Fix Version/s: 1.7Beta1, 1.7
    • Component/s: ICE-Components
    • Labels:
      None
    • Environment:
      dataTable + grouping
    • Affects:
      Documentation (User Guide, Ref. Guide, etc.), Sample App./Tutorial

      Description

      Add row level grouping mechanism to the dataTable component

        Activity

        Adnan Durrani created issue -
        Adnan Durrani made changes -
        Field Original Value New Value
        Assignee Adnan Durrani [ adnan.durrani ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #15534 Thu Jan 10 14:30:22 MST 2008 adnan.durrani Fix for ICE-2622 (Add row level grouping mechanism to the dataTable component)
        Files Changed
        Commit graph MODIFY /icefaces/trunk/icefaces/component-metadata/src/main/resources/conf/ice_properties/ice-uicolumn-props.xml
        Commit graph MODIFY /icefaces/trunk/icefaces/component/src/com/icesoft/faces/component/ext/renderkit/TableRenderer.java
        Commit graph MODIFY /icefaces/trunk/icefaces/component/src/com/icesoft/faces/component/ext/UIColumn.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #15535 Thu Jan 10 14:38:32 MST 2008 adnan.durrani Example added for logical row grouping. Related to ICE-2622
        Files Changed
        Commit graph ADD /icefaces/trunk/icefaces/samples/component-showcase/src/com/icesoft/icefaces/samples/showcase/common/Employee.java
        Commit graph ADD /icefaces/trunk/icefaces/samples/component-showcase/src/com/icesoft/icefaces/samples/showcase/components/table/GroupBean.java
        Commit graph MODIFY /icefaces/trunk/icefaces/samples/component-showcase/web/WEB-INF/faces-config.xml
        Commit graph MODIFY /icefaces/trunk/icefaces/samples/component-showcase/src/com/icesoft/icefaces/samples/showcase/resources/messages.properties
        Commit graph MODIFY /icefaces/trunk/icefaces/samples/component-showcase/src/com/icesoft/icefaces/samples/showcase/navigation/TreeNavigation.java
        Commit graph MODIFY /icefaces/trunk/icefaces/samples/component-showcase/web/showcase.jspx
        Commit graph ADD /icefaces/trunk/icefaces/samples/component-showcase/web/inc/components/tableGrouping.jspx
        Adnan Durrani made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        Hide
        Adnan Durrani added a comment -

        revision 15534.

        Row level grouping mechanism added to the dataTable, which works with the help of dataModel. This function requires sorted data, and its the application responsibility to provide sorted data.

        Show
        Adnan Durrani added a comment - revision 15534. Row level grouping mechanism added to the dataTable, which works with the help of dataModel. This function requires sorted data, and its the application responsibility to provide sorted data.
        Adnan Durrani made changes -
        Status In Progress [ 3 ] Resolved [ 5 ]
        Fix Version/s 1.7 [ 10080 ]
        Affects [Documentation (User Guide, Ref. Guide, etc.), Sample App./Tutorial]
        Resolution Fixed [ 1 ]
        Hide
        Adnan Durrani added a comment -

        Example added. revision 15535.

        <ice:dataTable id="groupingData"
        value="#

        {groupBean.employees}

        "
        var="employee"
        >
        <f:facet name="header">
        <ice:columnGroup>
        <ice:headerRow>
        <ice:column>Department </ice:column>
        <ice:column>Sub Department </ice:column>
        <ice:column>Name</ice:column>
        </ice:headerRow>
        </ice:columnGroup>
        </f:facet>
        <ice:column groupOn="#

        {employee.deptName}">
        <ice:outputText id="deptname" value="#{employee.deptName}

        "/>
        </ice:column>

        <ice:column>
        <ice:outputText id="subdeptname" value="#

        {employee.subDeptName}

        "/>
        </ice:column>

        <ice:column>
        <ice:outputText id="employeeName" value="#

        {employee.name}

        "/>
        </ice:column>
        </ice:dataTable>

        Please see the table one of the attached snapshot for the rendered result.

        Show
        Adnan Durrani added a comment - Example added. revision 15535. <ice:dataTable id="groupingData" value="# {groupBean.employees} " var="employee" > <f:facet name="header"> <ice:columnGroup> <ice:headerRow> <ice:column>Department </ice:column> <ice:column>Sub Department </ice:column> <ice:column>Name</ice:column> </ice:headerRow> </ice:columnGroup> </f:facet> <ice:column groupOn="# {employee.deptName}"> <ice:outputText id="deptname" value="#{employee.deptName} "/> </ice:column> <ice:column> <ice:outputText id="subdeptname" value="# {employee.subDeptName} "/> </ice:column> <ice:column> <ice:outputText id="employeeName" value="# {employee.name} "/> </ice:column> </ice:dataTable> Please see the table one of the attached snapshot for the rendered result.
        Adnan Durrani made changes -
        Attachment groupOn.jpg [ 10780 ]
        Ken Fyten made changes -
        Fix Version/s 1.7Beta1 [ 10121 ]
        Fix Version/s 1.7 [ 10080 ]
        Ken Fyten made changes -
        Fix Version/s 1.7 [ 10080 ]
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Assignee Adnan Durrani [ adnan.durrani ]
        Hide
        Tyler Johnson added a comment -

        ice:columns Groupon attribute missing from 1.7.0 TLD doc.

        Show
        Tyler Johnson added a comment - ice:columns Groupon attribute missing from 1.7.0 TLD doc.

          People

          • Assignee:
            Unassigned
            Reporter:
            Adnan Durrani
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: