ICEfaces
  1. ICEfaces
  2. ICE-10574

More granular control for columns in ace:tableConfigPanel

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.0
    • Fix Version/s: 4.3
    • Component/s: ACE-Components
    • Labels:
      None
    • Environment:
      All environments

      Description

      Current component for ace:tableConfigPanel supports olumnNameConfigurable, columnOrderingConfigurable, etc. at Table Level.

      That is - if we have specified the above mentioned attributes in the tag, all the columns under the table (having not set congfigurable="flase") can be configured via above attributes.

      Now, we don't have any attributes/way to configure the same at column level i.e. if we want to allow a column to be sortable but dosn't want user to change the order/name or visibility of the same.

      inshort, we would like to have more granular control over the table configurable properties instead of setting the same globally.

        Activity

        Atul Goyal created issue -
        Ken Fyten made changes -
        Field Original Value New Value
        Fix Version/s 4.1 [ 11375 ]
        Ken Fyten made changes -
        Affects Version/s 3.0 [ 10241 ]
        Affects Version/s 3.1 [ 10312 ]
        Affects Version/s 3.2 [ 10338 ]
        Affects Version/s 3.3 [ 10370 ]
        Hide
        Ken Fyten added a comment -

        One obvious way to approach this would be to add the following attributes that already exist on the ace:tableConfigPanel component to the ace:column component:

        • columnNameConfigurable
        • columnOrderingConfigurable
        • columnSortingConfigurable
        • columnVisibilityConfigurable

        When specified on the ace:column they would override the "global" settings on the ace:tableConfigPanel for that column.

        Show
        Ken Fyten added a comment - One obvious way to approach this would be to add the following attributes that already exist on the ace:tableConfigPanel component to the ace:column component: columnNameConfigurable columnOrderingConfigurable columnSortingConfigurable columnVisibilityConfigurable When specified on the ace:column they would override the "global" settings on the ace:tableConfigPanel for that column.
        Ken Fyten made changes -
        Assignee Ken Fyten [ ken.fyten ]
        Ken Fyten made changes -
        Assignee Priority P3 [ 10012 ]
        Ken Fyten made changes -
        Assignee Ken Fyten [ ken.fyten ]
        Assignee Priority P3 [ 10012 ]
        Fix Version/s 4.2 [ 12870 ]
        Fix Version/s 4.1 [ 11375 ]
        Ken Fyten made changes -
        Assignee Arturo Zambrano [ artzambrano ]
        Ken Fyten made changes -
        Fix Version/s EE-4.2.0.GA [ 13071 ]
        Fix Version/s 4.2 [ 12870 ]
        Ken Fyten made changes -
        Assignee Arturo Zambrano [ artzambrano ]
        Fix Version/s 4.3 [ 13096 ]
        Fix Version/s EE-4.2.0.GA [ 13071 ]
        Ken Fyten made changes -
        Assignee Arturo Zambrano [ artzambrano ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #52222 Thu Jan 18 12:25:10 MST 2018 art.zambrano ICE-10574 added columnOrderingConfigurable, columnVisibilityConfigurable, columnNameConfigurable, columnSortingConfigurable attributes to ace:column and added logic in ace:tableConfigPanel to be able to disable one or more of these features for a specific column
        Files Changed
        Commit graph MODIFY /icefaces4/trunk/icefaces/ace/component/src/org/icefaces/ace/component/tableconfigpanel/TableConfigPanelRenderer.java
        Commit graph MODIFY /icefaces4/trunk/icefaces/ace/component/src/org/icefaces/ace/component/column/ProxiedBodyColumn.java
        Commit graph MODIFY /icefaces4/trunk/icefaces/ace/component/src/org/icefaces/ace/component/column/ColumnMeta.java
        Hide
        Arturo Zambrano added a comment -

        r52222: added columnOrderingConfigurable, columnVisibilityConfigurable, columnNameConfigurable, columnSortingConfigurable attributes to ace:column and added logic in ace:tableConfigPanel to be able to disable one or more of these features for a specific column

        These attributes work in the same fashion as the existing 'configurable' attribute in ace:column. More than overriding the respective values of the ace:tableConfigPanel component, these attributes are used to exclude a specific column from being configurable in one or more of these ways. The global setting in ace:tableConfigPanel still has to be enabled if at least one column is configurable in one of these aspects.

        Show
        Arturo Zambrano added a comment - r52222: added columnOrderingConfigurable, columnVisibilityConfigurable, columnNameConfigurable, columnSortingConfigurable attributes to ace:column and added logic in ace:tableConfigPanel to be able to disable one or more of these features for a specific column These attributes work in the same fashion as the existing 'configurable' attribute in ace:column. More than overriding the respective values of the ace:tableConfigPanel component, these attributes are used to exclude a specific column from being configurable in one or more of these ways. The global setting in ace:tableConfigPanel still has to be enabled if at least one column is configurable in one of these aspects.
        Arturo Zambrano made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #52223 Fri Jan 19 09:40:25 MST 2018 art.zambrano ICE-10574 added ui-state-disabled classes to controls that aren't configurable, since they had to be modified from having the disabled attribute to being readonly, in order to allow submitting other values without losing the current value in the non-configurable columns, which resulted in losing the disabled look, so now they look disabled again
        Files Changed
        Commit graph MODIFY /icefaces4/trunk/icefaces/ace/component/src/org/icefaces/ace/component/tableconfigpanel/TableConfigPanelRenderer.java
        Hide
        Arturo Zambrano added a comment -

        r52223: added ui-state-disabled classes to controls that aren't configurable, since they had to be modified from having the disabled attribute to being readonly, in order to allow submitting other values without losing the current value in the non-configurable columns, which resulted in losing the disabled look, so now they look disabled again

        Show
        Arturo Zambrano added a comment - r52223: added ui-state-disabled classes to controls that aren't configurable, since they had to be modified from having the disabled attribute to being readonly, in order to allow submitting other values without losing the current value in the non-configurable columns, which resulted in losing the disabled look, so now they look disabled again
        Hide
        Ken Fyten added a comment -

        Can we add a new demo to showcase for this under the ace:dataTableConfigPanel section?

        Show
        Ken Fyten added a comment - Can we add a new demo to showcase for this under the ace:dataTableConfigPanel section?
        Ken Fyten made changes -
        Resolution Fixed [ 1 ]
        Status Resolved [ 5 ] Reopened [ 4 ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #52429 Thu May 03 10:23:22 MDT 2018 art.zambrano ICE-10574 added ace:tableConfigPanel > Column Configurability demo
        Files Changed
        Commit graph MODIFY /icefaces4/trunk/icefaces/samples/showcase/showcase/src/main/java/org/icefaces/samples/showcase/view/menu/data/CentralDataList.java
        Commit graph MODIFY /icefaces4/trunk/icefaces/samples/showcase/showcase/src/main/resources/org/icefaces/samples/showcase/view/resources/messages.properties
        Commit graph ADD /icefaces4/trunk/icefaces/samples/showcase/showcase/src/main/java/org/icefaces/samples/showcase/example/ace/tableConfigPanel/TableConfigPanelColumnConfigurabilityBean.java
        Commit graph ADD /icefaces4/trunk/icefaces/samples/showcase/showcase/src/main/webapp/resources/examples/ace/tableConfigPanel/tableConfigPanelColumnConfigurability.xhtml
        Hide
        Arturo Zambrano added a comment -

        r52429: added ace:tableConfigPanel > Column Configurability demo

        Show
        Arturo Zambrano added a comment - r52429: added ace:tableConfigPanel > Column Configurability demo
        Arturo Zambrano made changes -
        Status Reopened [ 4 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Hide
        Ken Fyten added a comment -

        This looks good.

        Can you add a note to the ConfigPanel wiki to let folks know that they can also configure the columns via the col level attributes to make it easier to find that?

        Show
        Ken Fyten added a comment - This looks good. Can you add a note to the ConfigPanel wiki to let folks know that they can also configure the columns via the col level attributes to make it easier to find that?
        Ken Fyten made changes -
        Resolution Fixed [ 1 ]
        Status Resolved [ 5 ] Reopened [ 4 ]
        Hide
        Arturo Zambrano added a comment -

        Added a tip panel in the Attributes section of TableConfigPanel, explaining that these attributes can be specified at the column level as well.

        Show
        Arturo Zambrano added a comment - Added a tip panel in the Attributes section of TableConfigPanel, explaining that these attributes can be specified at the column level as well.
        Arturo Zambrano made changes -
        Status Reopened [ 4 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Arturo Zambrano
            Reporter:
            Atul Goyal
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: