ICEfaces
  1. ICEfaces
  2. ICE-11320

ace:checkboxButtons should show label when using f:selectItems

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 4.2
    • Fix Version/s: EE-4.2.0.GA
    • Component/s: ACE-Components
    • Labels:
      None
    • Environment:
      ace checkboxButtons
    • Assignee Priority:
      P2
    • Affects:
      Compatibility/Configuration
    • Workaround Description:
      Use <h:selectOneCheckbox>

      Description

      when using the following markup (can paste this into showcase example dataTableDynamicColumns.xhtml):-
      {code}
                  <ace:checkboxButtons id="checkbox"
                                       mutuallyExclusive="false"
                                       value="#{dataTableDynamicColumns.selectedCheckboxes}"
                                       valueChangeListener="#{dataTableDynamicColumns.checkboxChange}"
                                       styleClass="checkboxes">
                      <ace:ajax render="@form" execute="@this"/>
                      <f:selectItems value="#{dataTableDynamicColumns.checkboxes}"/>
                  </ace:checkboxButtons>
      {code}
      note that if you use several <f:selectItem with an itemValue and itemLabel, then the labels appear on the checkboxes. It is simply the use of the <f:selectItems> that shows no labels. A checkbox is rendered (see attached screenshot).

        Issue Links

          Activity

          Hide
          Judy Guglielmin added a comment - - edited

          for dataTableDynamicColumns.xhtml
          and dataTableFind.xhtml
          and accordionPanel.xhtml

          Show
          Judy Guglielmin added a comment - - edited for dataTableDynamicColumns.xhtml and dataTableFind.xhtml and accordionPanel.xhtml
          Hide
          Arturo Zambrano added a comment -

          There's actually no issue. You just need to specify the 'labelPosition' attribute to something like 'left' or 'inField', since the default label position is 'none'. Maybe the default label position should be changed to 'inField', like ace:checkboxButton.

          Using f:selectItem presented the same behaviour for me (i.e. no label unless 'labelPosition' is specified).

          Show
          Arturo Zambrano added a comment - There's actually no issue. You just need to specify the 'labelPosition' attribute to something like 'left' or 'inField', since the default label position is 'none'. Maybe the default label position should be changed to 'inField', like ace:checkboxButton. Using f:selectItem presented the same behaviour for me (i.e. no label unless 'labelPosition' is specified).
          Hide
          Arturo Zambrano added a comment -

          r51681: ace:checkboxButtons, changed the default value of 'labelPosition' to 'right', instead of 'none', to better align with the h:selectManyCheckbox behaviour

          Show
          Arturo Zambrano added a comment - r51681: ace:checkboxButtons, changed the default value of 'labelPosition' to 'right', instead of 'none', to better align with the h:selectManyCheckbox behaviour
          Hide
          Liana Munroe added a comment -

          Verified ICEfaces 4 trunk r51697. Tomcat 8, MS Edge, IE 11, 10, 9 ,8, FF 47, Chrome 59.
          New test app /ICE-11320.jsf added to:
          http://dev.icesoft.com/svn/repo/qa/trunk/Regression-Icefaces4/Sparkle/Nightly/checkboxButtons

          Show
          Liana Munroe added a comment - Verified ICEfaces 4 trunk r51697. Tomcat 8, MS Edge, IE 11, 10, 9 ,8, FF 47, Chrome 59. New test app / ICE-11320 .jsf added to: http://dev.icesoft.com/svn/repo/qa/trunk/Regression-Icefaces4/Sparkle/Nightly/checkboxButtons

            People

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

              Dates

              • Created:
                Updated:
                Resolved: