ICEfaces
  1. ICEfaces
  2. ICE-7029

Nested DataTable Testing Failures

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.RC1
    • Fix Version/s: 3.0.RC1, 3.0
    • Component/s: ACE-Components
    • Labels:
      None
    • Environment:
      2.1 Nested Datatable Test, Tomcat 6
    • Assignee Priority:
      P1

      Description

      This JIRA captures explanations and exploration of fixes for bugs observed while the running and developing table-nesting tests.
      1. DataTable.java
        32 kB
        Nils Lundquist
      2. nesting_fix_-_patches_25836.patch
        8 kB
        Nils Lundquist
      3. UIData.java
        2 kB
        Nils Lundquist
      1. nested-datatable-issue1.JPG
        76 kB
      2. nested-datatable-issue2.JPG
        89 kB
      3. nested-datatable-issue3.JPG
        112 kB

        Issue Links

          Activity

          Nils Lundquist created issue -
          Nils Lundquist made changes -
          Field Original Value New Value
          Link This issue blocks ICE-6997 [ ICE-6997 ]
          Hide
          Nils Lundquist added a comment -

          First problem presenting in the test, are pagination buttons of a nested that either have no event bound, or whose responses perform no updates. Both are present in the current test.

          Show
          Nils Lundquist added a comment - First problem presenting in the test, are pagination buttons of a nested that either have no event bound, or whose responses perform no updates. Both are present in the current test.
          Ken Fyten made changes -
          Component/s ACE-Components [ 10050 ]
          Fix Version/s 2.1-Beta [ 10291 ]
          Affects Version/s 2.1-Beta [ 10291 ]
          Assignee Nils Lundquist [ nils.lundquist ]
          Ken Fyten made changes -
          Salesforce Case []
          Assignee Priority P1
          Ken Fyten made changes -
          Fix Version/s 2.1 [ 10241 ]
          Fix Version/s 2.1-Beta [ 10291 ]
          Hide
          Nils Lundquist added a comment -

          Added patch as well as whole files in case patch doesn't apply correctly.

          Show
          Nils Lundquist added a comment - Added patch as well as whole files in case patch doesn't apply correctly.
          Nils Lundquist made changes -
          Attachment nesting_fix_-_patches_25836.patch [ 13620 ]
          Attachment DataTable.java [ 13621 ]
          Attachment UIData.java [ 13622 ]
          Ken Fyten made changes -
          Comment [ After this patch is applied, the value of 'first' doesn't persist between the end of RenderResponse and the start of the next RestoreView.

          This breaks pagination. Pagination subsequent visitTree iterations will occur only for the first (and incorrect) page. This is because first is defaulting to 0 after being the correct value in the RenderResponse phase of the previous pagination

          The easiest way to see this is an example that includes editing and pagination, and noting that the editing feature works on the first page, but editing on the second page produces no change. ]
          Hide
          Ken Fyten added a comment -

          Committed patch - resolved.

          Show
          Ken Fyten added a comment - Committed patch - resolved.
          Ken Fyten made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Assignee Priority P1
          Resolution Fixed [ 1 ]
          Arran Mccullough made changes -
          Resolution Fixed [ 1 ]
          Status Resolved [ 5 ] Reopened [ 4 ]
          Hide
          Arran Mccullough added a comment -

          Attached test case war file and source code that demonstrates issues seen in using a nested dataTable using the 10072011 release.

          Show
          Arran Mccullough added a comment - Attached test case war file and source code that demonstrates issues seen in using a nested dataTable using the 10072011 release.
          Arran Mccullough made changes -
          Attachment Case10547Example.zip [ 13646 ]
          Attachment Case10547Example.war [ 13647 ]
          Hide
          Arran Mccullough added a comment -

          Description of screen shots of issues:

          • nested-datatable-issue1.jpg: This shows the rendering of the nested table in the parent table.
          • nested-datatable-issue2.jpg: After click of the parent expansion toggler
          • nested-datatable-issue3.jpg: After click of the nested table expansion toggler
          Show
          Arran Mccullough added a comment - Description of screen shots of issues: nested-datatable-issue1.jpg: This shows the rendering of the nested table in the parent table. nested-datatable-issue2.jpg: After click of the parent expansion toggler nested-datatable-issue3.jpg: After click of the nested table expansion toggler
          Arran Mccullough made changes -
          Attachment nested-datatable-issue1.JPG [ 13648 ]
          Attachment nested-datatable-issue2.JPG [ 13649 ]
          Attachment nested-datatable-issue3.JPG [ 13650 ]
          Ken Fyten made changes -
          Salesforce Case []
          Assignee Priority P1
          Hide
          Nils Lundquist added a comment -

          This issue was intended for issues regarding a data table nested in a column of the parent, rather than in a panelExpansion. The two cases are somewhat different.

          This issue has been resolved however. Several minor JS bugs, a getColumns() bug and unimplemented functionality in visitTree were responsible.

          Fixes committed in r25971.

          Show
          Nils Lundquist added a comment - This issue was intended for issues regarding a data table nested in a column of the parent, rather than in a panelExpansion. The two cases are somewhat different. This issue has been resolved however. Several minor JS bugs, a getColumns() bug and unimplemented functionality in visitTree were responsible. Fixes committed in r25971.
          Nils Lundquist made changes -
          Status Reopened [ 4 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Ken Fyten made changes -
          Fix Version/s 2.1-Beta2 [ 10294 ]
          Ken Fyten made changes -
          Security Private [ 10001 ]
          Hide
          Nils Lundquist added a comment -

          The nested table is currently experiencing issues in partial visits.

          Show
          Nils Lundquist added a comment - The nested table is currently experiencing issues in partial visits.
          Nils Lundquist made changes -
          Resolution Fixed [ 1 ]
          Status Resolved [ 5 ] Reopened [ 4 ]
          Ken Fyten made changes -
          Salesforce Case []
          Fix Version/s 3.0.RC1 [ 10300 ]
          Fix Version/s 2.1-Beta2 [ 10294 ]
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #26651 Wed Nov 30 13:27:06 MST 2011 nils.lundquist ICE-7029 - Fixes for nested data table issues. Fixed issues related to out of sync data model, overly broad javascript selectors, clientId assignment, generator property getter bug for mojarra-style UIData clientIds. Iterate for table has also been narrowed.
           
          State saving issue for child data table remains. Workaround is to bind to a bean the properties of the child table.
          Files Changed
          Commit graph MODIFY /icefaces3/trunk/icefaces/ace/component/src/org/icefaces/ace/component/datatable/DataTable.java
          Commit graph MODIFY /icefaces3/trunk/icefaces/ace/generator/src/org/icefaces/ace/generator/artifacts/ComponentArtifact.java
          Commit graph MODIFY /icefaces3/trunk/icefaces/ace/component/src/org/icefaces/ace/component/datatable/DataTableRenderer.java
          Commit graph MODIFY /icefaces3/trunk/icefaces/ace/component/resources/icefaces.ace/datatable/datatable.js
          Hide
          Nils Lundquist added a comment -

          r26651 - Fixes for nested data table issues.

          Fixed issues related to out of sync data model, overly broad javascript selectors, clientId assignment, generator property getter bug for mojarra-style UIData clientIds. Iterate for table has also been narrowed.

          State saving issue for child data table remains. Workaround is to bind to a bean the properties of the child table.

          Show
          Nils Lundquist added a comment - r26651 - Fixes for nested data table issues. Fixed issues related to out of sync data model, overly broad javascript selectors, clientId assignment, generator property getter bug for mojarra-style UIData clientIds. Iterate for table has also been narrowed. State saving issue for child data table remains. Workaround is to bind to a bean the properties of the child table.
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #26687 Thu Dec 01 13:51:57 MST 2011 nils.lundquist ICE-7029 - Added spacing on getComponentId() generated method.
          Files Changed
          Commit graph MODIFY /icefaces3/trunk/icefaces/ace/generator/src/org/icefaces/ace/generator/artifacts/ComponentArtifact.java
          Ken Fyten made changes -
          Fix Version/s 3.0.RC1 [ 10300 ]
          Affects Version/s 3.0.RC1 [ 10300 ]
          Affects Version/s 2.1-Beta [ 10291 ]
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #26729 Fri Dec 02 15:36:56 MST 2011 nils.lundquist ICE-7029 - Adjusted DataTable to generate properties while rowIndex == -1. Else properties are saved with the wrong clientId and are not correctly restored / retrieved.
           
          DataTable visitTree has also been altered to properly visit column children during non-iterative "row" visiting.
          Files Changed
          Commit graph MODIFY /icefaces3/trunk/icefaces/ace/component/src/org/icefaces/ace/component/datatable/DataTable.java
          Commit graph MODIFY /icefaces3/trunk/icefaces/ace/generator/src/org/icefaces/ace/generator/artifacts/ComponentArtifact.java
          Commit graph MODIFY /icefaces3/trunk/icefaces/ace/component/src/org/icefaces/ace/component/datatable/DataTableRenderer.java
          Hide
          Nils Lundquist added a comment -

          State saving problem caused by broken visitTree impl; not visiting column children during non-iterative visits correctly.

          Getter refactoring was reverted given that it was the incorrect solution to the problem of StateMap being loaded when getClientId() was unreliable.

          Show
          Nils Lundquist added a comment - State saving problem caused by broken visitTree impl; not visiting column children during non-iterative visits correctly. Getter refactoring was reverted given that it was the incorrect solution to the problem of StateMap being loaded when getClientId() was unreliable.
          Nils Lundquist made changes -
          Status Reopened [ 4 ] Resolved [ 5 ]
          Fix Version/s 3.0.RC1 [ 10300 ]
          Fix Version/s 3.0 [ 10241 ]
          Resolution Fixed [ 1 ]
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #26744 Mon Dec 05 14:40:51 MST 2011 nils.lundquist ICE-7029 - Fix for DataTable Nesting without StateMap Caching
          Files Changed
          Commit graph MODIFY /icefaces3/trunk/icefaces/ace/component/src/org/icefaces/ace/component/datatable/DataTable.java
          Commit graph MODIFY /icefaces3/trunk/icefaces/ace/component/src/org/icefaces/ace/component/datatable/DataTableRenderer.java
          Ken Fyten made changes -
          Fix Version/s 3.0 [ 10241 ]
          Ken Fyten made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

            People

            • Assignee:
              Nils Lundquist
              Reporter:
              Nils Lundquist
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: