ICEfaces
  1. ICEfaces
  2. ICE-8825

ace:dataTable - Summary row is not updated with the correct data

    Details

    • Assignee Priority:
      P1
    • Salesforce Case Reference:
    • Workaround Description:
      Hide
      Change:
                              <ace:column colspan="1">
                                  <h:outputText id="stockTotal" value="#{testBean.groupTotal('item.itemType', 'item.itemStock', index)}"/>
                              </ace:column>
      to:
                              <ace:column colspan="1">
                                  #{testBean.groupTotal('item.itemType', 'item.itemStock', index)}
                              </ace:column>
      Show
      Change:                         <ace:column colspan="1">                             <h:outputText id="stockTotal" value="#{testBean.groupTotal('item.itemType', 'item.itemStock', index)}"/>                         </ace:column> to:                         <ace:column colspan="1">                             #{testBean.groupTotal('item.itemType', 'item.itemStock', index)}                         </ace:column>

      Description

      An ace:dataTable is set to show a summary row for totals of a column. On the first load of the table contents the summary row calculation is displayed correctly. If the table us reloaded with different data, but had the same number of rows, the summary row calculations are in correct.

      The data coming from the server is correct as well as the update that is sent. The client side simply does not show the correct data.

        Activity

        Hide
        Arran Mccullough added a comment -

        Attached test case that shows the issue.

        Steps:

        • Load welcomeICEfaces.jsf
        • Click on the Load List One button.
        • The Totals are correct 9, 4, and 3.
        • Click on the Load List Two button.
        • The Totals are not correct, they should be 18, 10, 12.
        Show
        Arran Mccullough added a comment - Attached test case that shows the issue. Steps: Load welcomeICEfaces.jsf Click on the Load List One button. The Totals are correct 9, 4, and 3. Click on the Load List Two button. The Totals are not correct, they should be 18, 10, 12.
        Hide
        Nils Lundquist added a comment -

        As I've described in the workaround this can be fixed by removing the outputText that renders the EL and instead rendering the EL directly into the markup.

        The updates coming from the server contain the correct conditional row values, so I suspect some ID inconsistency is preventing the DOM from updating. I'm investigating this further.

        Show
        Nils Lundquist added a comment - As I've described in the workaround this can be fixed by removing the outputText that renders the EL and instead rendering the EL directly into the markup. The updates coming from the server contain the correct conditional row values, so I suspect some ID inconsistency is preventing the DOM from updating. I'm investigating this further.
        Hide
        Nils Lundquist added a comment -

        Revision #32801
        Committed by nils.lundquist
        Moments ago
        ICE-8825 - Conditional row subcomponents now get unique container ID prefixes.

        Show
        Nils Lundquist added a comment - Revision #32801 Committed by nils.lundquist Moments ago ICE-8825 - Conditional row subcomponents now get unique container ID prefixes.

          People

          • Assignee:
            Nils Lundquist
            Reporter:
            Arran Mccullough
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: