ICEfaces
  1. ICEfaces
  2. ICE-751

New selectOneRadio + selectManyCheckbox grouping mechanism

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.5
    • Fix Version/s: 1.7DR#3, 1.7
    • Component/s: ICE-Components
    • Labels:
      None
    • Environment:
      Operating System: All
      Platform: PC

      Description

      We need a new mechanism to support the ability for developers to define a
      logical group for selectOneRadio components.

      selectOneRadio components that are assigned to the same logical group will
      affect each others state as follows:

        1. Only one selectOneRadio component can be selected at one time in a logical
      group.

        2. Selecting a selectOneRadio component will automatically deselect any
      previously selected selectOneRadio component in the same logical group.

      This mechanism will make it possible to have multiple logical groupings of
      selecOneRadio components on the same page, whereas today all selectOneRadio
      components interact with each other on the same page, which is very limiting.

      This concept is similar to the logical grouping of valid target
      panelPositionable components so we should ensure that the mechanism used to
      define the member groups in both cases is consistent.

        Activity

        Hide
        Adnan Durrani added a comment -

        This feature has been moved to the next release, I discussed this issue with
        the Ken and Philip. Ken suggested that we should implement this feature for
        both selectOneRadio and selectManyCheckbox all together and should follow the
        same attributes and terminology as Myfaces did for their checkbox component.

        Please see the code snippet of myfaces' checkbox implementation:
        <x:selectManyCheckbox id="myCheckbox" layout="spread" binding="#

        {textBean.bindItem1}

        " >
        <f:selectItems value="#

        {textBean.items2}

        "/>
        </x:selectManyCheckbox>

        <h:dataTable var="data4" value="#

        {textBean.dataModel2}

        ">
        <h:column>
        <x:checkbox for="myCheckbox" index="#

        {textBean.dataModel2.rowIndex}

        "/>
        </h:column>
        </h:dataTable>

        Show
        Adnan Durrani added a comment - This feature has been moved to the next release, I discussed this issue with the Ken and Philip. Ken suggested that we should implement this feature for both selectOneRadio and selectManyCheckbox all together and should follow the same attributes and terminology as Myfaces did for their checkbox component. Please see the code snippet of myfaces' checkbox implementation: <x:selectManyCheckbox id="myCheckbox" layout="spread" binding="# {textBean.bindItem1} " > <f:selectItems value="# {textBean.items2} "/> </x:selectManyCheckbox> <h:dataTable var="data4" value="# {textBean.dataModel2} "> <h:column> <x:checkbox for="myCheckbox" index="# {textBean.dataModel2.rowIndex} "/> </h:column> </h:dataTable>
        Hide
        yip.ng added a comment -

        Screenshot showing separate group of radio buttons (Select destination). The implementation is similar to that of MyFaces:

        <ice:selectOneRadio id="SlctDest" layout="spread".../>
        ...
        <ice:radio for="SlctDest" index="0"/>
        ...
        <ice:radio for="SlctDest" index="3"/>

        Show
        yip.ng added a comment - Screenshot showing separate group of radio buttons (Select destination). The implementation is similar to that of MyFaces: <ice:selectOneRadio id="SlctDest" layout="spread".../> ... <ice:radio for="SlctDest" index="0"/> ... <ice:radio for="SlctDest" index="3"/>
        Hide
        yip.ng added a comment -

        Screenshot showing separate group of checkboxes (Select foods). The implementation is similar to that of MyFaces:

        <ice:selectManyCheckbox id="SlctFoods" layout="spread".../>
        ...
        <ice:checkbox for="SlctFoods" index="0"/>
        ...
        <ice:checkbox for="SlctFoods" index="3"/>

        Show
        yip.ng added a comment - Screenshot showing separate group of checkboxes (Select foods). The implementation is similar to that of MyFaces: <ice:selectManyCheckbox id="SlctFoods" layout="spread".../> ... <ice:checkbox for="SlctFoods" index="0"/> ... <ice:checkbox for="SlctFoods" index="3"/>

          People

          • Assignee:
            Unassigned
            Reporter:
            Ken Fyten
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: