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

        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.
        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.
        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: