ICEfaces
  1. ICEfaces
  2. ICE-8094

ace:dataTable - add new "staticHeaders" attribute

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.1.0.BETA1
    • Fix Version/s: 3.1.0.BETA2, 3.1
    • Component/s: ACE-Components
    • Labels:
      None
    • Environment:
      ICEfaces ace:dataTable component
    • Assignee Priority:
      P2
    • Affects:
      Documentation (User Guide, Ref. Guide, etc.), Sample App./Tutorial

      Description

      While the current ace:dataTable supports scrollable dataTable with static headers and footers, it would be nice to be able to configure whether or not the headers/footers where static when using "scrollable=true".

      By specifying "scrollable=true" and "staticHeaders=false", the scrollable mode would not have to use the relatively expensive column sizing calculations and could rely on the native browser column sizing. In addition, this mode would enable the paginator controls (if pagination was also being used) to remain centred within the visible table instead of scrolling horizontally with the table.

        Issue Links

          Activity

          Ken Fyten created issue -
          Ken Fyten made changes -
          Field Original Value New Value
          Salesforce Case []
          Fix Version/s 3.1 [ 10312 ]
          Affects [Documentation (User Guide, Ref. Guide, etc.), Sample App./Tutorial]
          Assignee Priority P3
          Assignee Nils Lundquist [ nils.lundquist ]
          Ken Fyten made changes -
          Link This issue depends on ICE-8025 [ ICE-8025 ]
          Hide
          Ken Fyten added a comment -

          To preserve backwards compatibility, the default value should be "staticHeaders=true".

          Show
          Ken Fyten added a comment - To preserve backwards compatibility, the default value should be "staticHeaders=true".
          Ken Fyten made changes -
          Salesforce Case []
          Assignee Priority P3 P1
          Ken Fyten made changes -
          Assignee Priority P1 P2
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #29279 Fri Jun 01 15:26:57 MDT 2012 nils.lundquist ICE-8094 - Added staticHeaders table scrolling parameter. Refactored DataTable rendering to combine scrollable and "regular" table code paths. Added static helper classes to modularize independent sections of the rendering and reduce the 1200+ lines of code in the DataTableRenderer.

          CoreRenderer helper method, resolveWidgetVar was made static by necessity. Could've also been refactored into a util class. This had no effect of the functionality of resolveWidgetVar.
          Files Changed
          Commit graph MODIFY /icefaces3/trunk/icefaces/samples/showcase/showcase/src/main/webapp/resources/examples/ace/dataTable/dataTableScrolling.xhtml
          Commit graph ADD /icefaces3/trunk/icefaces/ace/component/src/org/icefaces/ace/component/datatable/DataTableRendererUtil.java
          Commit graph ADD /icefaces3/trunk/icefaces/ace/component/src/org/icefaces/ace/component/datatable/DataTableFootRenderer.java
          Commit graph MODIFY /icefaces3/trunk/icefaces/ace/component/src/org/icefaces/ace/renderkit/CoreRenderer.java
          Commit graph MODIFY /icefaces3/trunk/icefaces/ace/component/src/org/icefaces/ace/component/datatable/DataTableRenderer.java
          Commit graph ADD /icefaces3/trunk/icefaces/ace/component/src/org/icefaces/ace/component/datatable/DataTableHeadRenderer.java
          Commit graph MODIFY /icefaces3/trunk/icefaces/ace/component/src/org/icefaces/ace/component/datatable/DataTableMeta.java
          Commit graph MODIFY /icefaces3/trunk/icefaces/ace/component/resources/icefaces.ace/datatable/datatable.js
          Commit graph ADD /icefaces3/trunk/icefaces/ace/component/src/org/icefaces/ace/component/datatable/DataTableRowRenderer.java
          Hide
          Nils Lundquist added a comment -

          Revision #29279
          Committed by nils.lundquist
          Moments ago
          ICE-8094 - Added staticHeaders table scrolling parameter. Refactored DataTable rendering to combine scrollable and "regular" table code paths. Added static helper classes to modularize independent sections of the rendering and reduce the 1200+ lines of code in the DataTableRenderer.

          CoreRenderer helper method, resolveWidgetVar was made static by necessity. Could've also been refactored into a util class. This had no effect of the functionality of resolveWidgetVar.

          Show
          Nils Lundquist added a comment - Revision #29279 Committed by nils.lundquist Moments ago ICE-8094 - Added staticHeaders table scrolling parameter. Refactored DataTable rendering to combine scrollable and "regular" table code paths. Added static helper classes to modularize independent sections of the rendering and reduce the 1200+ lines of code in the DataTableRenderer. CoreRenderer helper method, resolveWidgetVar was made static by necessity. Could've also been refactored into a util class. This had no effect of the functionality of resolveWidgetVar.
          Nils Lundquist made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Ken Fyten made changes -
          Salesforce Case []
          Fix Version/s 3.1.0.BETA2 [ 10336 ]
          Affects Version/s 3.1.0.BETA1 [ 10335 ]
          Ken Fyten made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

            People

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

              Dates

              • Created:
                Updated:
                Resolved: