ICEfaces
  1. ICEfaces
  2. ICE-9503

ace:tableConfigPanel - Header value defined in a facet not displayed in panel

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: EE-3.3.0.GA, EE-3.3.0.GA_P01
    • Fix Version/s: EE-3.3.0.GA_P01, 4.0.BETA, 4.0
    • Component/s: ACE-Components
    • Labels:
      None
    • Environment:
      All
    • Salesforce Case Reference:
    • Affects:
      Documentation (User Guide, Ref. Guide, etc.)
    • Workaround Exists:
      Yes
    • Workaround Description:
      Hide
      duplicate the value used in the facet in the ace:column headerText value. For example:

                          <ace:column headerText="Item One">
                              <f:facet name="header">
                                  <h:outputText value="Item One"/>
                              </f:facet>
                              <h:outputText value="#{item.itemOne}"/>
                          </ace:column>
      Show
      duplicate the value used in the facet in the ace:column headerText value. For example:                     <ace:column headerText="Item One">                         <f:facet name="header">                             <h:outputText value="Item One"/>                         </f:facet>                         <h:outputText value="#{item.itemOne}"/>                     </ace:column>

      Description

      When defining a header by using the f:facet, the header value isn't displayed when opening the panel. Sample code:
                          <ace:column>
                              <f:facet name="header">
                                  <h:outputText value="Item One"/>
                              </f:facet>
                              <h:outputText value="#{item.itemOne}"/>
                          </ace:column>

        Activity

        Hide
        Ken Fyten added a comment -

        Since it is not generally feasible to automatically derive a useful simple label for the column from a facet's sub-components (as there could be multiple components in the facet, of varying types, etc.), the behavior noted in this JIRA is considered correct.

        The recommended approach when using the header facet in conjunction with the ace:tableConfigPanel is to also define the "headerText" attribute on the ace:column, which will then be used to label the column within the ace:tableConfigPanel.

        The remaining task is to ensure that the documentation for ace:column clearly indicates this.

        Show
        Ken Fyten added a comment - Since it is not generally feasible to automatically derive a useful simple label for the column from a facet's sub-components (as there could be multiple components in the facet, of varying types, etc.), the behavior noted in this JIRA is considered correct. The recommended approach when using the header facet in conjunction with the ace:tableConfigPanel is to also define the "headerText" attribute on the ace:column, which will then be used to label the column within the ace:tableConfigPanel. The remaining task is to ensure that the documentation for ace:column clearly indicates this.
        Hide
        Ken Fyten added a comment -

        Committed JavaDoc update for ace:column "headerText" property to indicate that the property should be provided even when using header facets for use by the ace:tableConfigPanel. Change committed to icefaces3/trunk and EE 3.3.0.GA_P01 tag.

        Also updated the public Wiki for ace:column: http://www.icesoft.org/wiki/display/ICE/Column.

        Show
        Ken Fyten added a comment - Committed JavaDoc update for ace:column "headerText" property to indicate that the property should be provided even when using header facets for use by the ace:tableConfigPanel. Change committed to icefaces3/trunk and EE 3.3.0.GA_P01 tag. Also updated the public Wiki for ace:column: http://www.icesoft.org/wiki/display/ICE/Column .

          People

          • Assignee:
            Ken Fyten
            Reporter:
            Arran Mccullough
          • Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: