Uploaded image for project: 'MyFaces Tomahawk'
  1. MyFaces Tomahawk
  2. TOMAHAWK-1068

GroupBy not honoring table boundaries where table within table

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.1.6
    • None
    • Extended Datatable
    • None

    Description

      In the following example:
      fund 1 has member 1 who has 10 assets that have category 'abc' and 05 assets that have category 'xyz'- groupBy groups first 10 entries under 'abc' and next 5 under 'xyz'

      fund 2 has member 1 who has 05 assets that have category 'abc' and 10 assets that have category 'xyz' - groupBy groups first 10 entries under 'abc' and next 5 under 'xyz'

      fund 2 has member 2 who has 2 assets that have category 'abc' and 20 assets that have category 'xyz' - groupBy groups first 10
      entries under 'abc' and next 5 under 'xyz'

      it appears that the groupby is calculating the number of rows that have category 'abc' for the first table instance and then using it for every instance of table assets rather than recalculating for each instance

      <t:dataTable value="#

      {fund}

      " var="funds" >
      <t:column >
      <t:dataTable value="#

      {fund.members}

      " var="members" >
      <t:column >
      <h:outputText value="#

      {members.memberName}

      " />
      </t:column>
      <t:column>
      <t:dataTable value="#

      {members.assets}

      " var="assets">
      <t:column groupBy="true">
      <h:outputText value="#

      {assets.assetCategory}

      " />
      </t:column>
      <t:column >
      <h:outputText value="#

      {assets.description}

      " />
      </t:column>
      </t:dataTable>
      </t:column>
      </t:dataTable>
      </t:column>
      </t:dataTable>

      Attachments

        Activity

          People

            Unassigned Unassigned
            pwq peter hunt
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: