ICEfaces
  1. ICEfaces
  2. ICE-5841

New RadioButton component for ACE

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Major Major
    • Resolution: Won't Fix
    • Affects Version/s: 2.0-Alpha3
    • Fix Version/s: 3.0
    • Component/s: ACE-Components
    • Labels:
      None
    • Environment:
      jsf2.0, ICEfaces-2.0
    • Affects:
      Documentation (User Guide, Ref. Guide, etc.), Sample App./Tutorial

      Description

      Want to have all the features of <ice:selectOneRadio> and the yui radiobutton groups.

        Activity

        Hide
        Judy Guglielmin added a comment -

        markup for component showcase (compat) shows:-
        <ice:panelGroup styleClass="selectionRadioGroup">
        <ice:selectOneRadio id="SlctDrk"
        value="#

        {selectionTags.selectedDrink}

        "
        valueChangeListener="#

        {selectionTags.effectChangeListener}

        "
        partialSubmit="true" >
        <f:selectItems id="SlctDrkItms"
        value="#

        {selectionTags.drinkItems}

        "/>
        </ice:selectOneRadio>
        </ice:panelGroup>

        Show
        Judy Guglielmin added a comment - markup for component showcase (compat) shows:- <ice:panelGroup styleClass="selectionRadioGroup"> <ice:selectOneRadio id="SlctDrk" value="# {selectionTags.selectedDrink} " valueChangeListener="# {selectionTags.effectChangeListener} " partialSubmit="true" > <f:selectItems id="SlctDrkItms" value="# {selectionTags.drinkItems} "/> </ice:selectOneRadio> </ice:panelGroup>
        Hide
        Judy Guglielmin added a comment -

        following jira has description/behaviour that should be brought forward:-

        http://jira.icefaces.org/browse/ICE-751

        Show
        Judy Guglielmin added a comment - following jira has description/behaviour that should be brought forward:- http://jira.icefaces.org/browse/ICE-751
        Hide
        Judy Guglielmin added a comment -

        See following link for example of use of <ice:selectOneMenu> with <ice:radio> which shows use of radio button in datatable:-
        http://hobione.wordpress.com/2009/05/29/datatable-and-radio-button-in-jsf/

        Show
        Judy Guglielmin added a comment - See following link for example of use of <ice:selectOneMenu> with <ice:radio> which shows use of radio button in datatable:- http://hobione.wordpress.com/2009/05/29/datatable-and-radio-button-in-jsf/
        Hide
        Judy Guglielmin added a comment -

        If we allowed the new datatable component to control which of the buttons was selected, we could do something like the following:-
        http://www.satyam.com.ar/yui/assortedControls.html

        This would allow our radiobutton component to be rendered correctly...but where to put the valuechange event? and how to trigger it?

        Show
        Judy Guglielmin added a comment - If we allowed the new datatable component to control which of the buttons was selected, we could do something like the following:- http://www.satyam.com.ar/yui/assortedControls.html This would allow our radiobutton component to be rendered correctly...but where to put the valuechange event? and how to trigger it?
        Hide
        Judy Guglielmin added a comment -

        since this is still being developed (in initial stages) will add analysis of existing attributes in jsf2, icefaces1.8.x and yui here.

        Show
        Judy Guglielmin added a comment - since this is still being developed (in initial stages) will add analysis of existing attributes in jsf2, icefaces1.8.x and yui here.
        Hide
        Judy Guglielmin added a comment -

        from jsf2.0:-
        converter, converterMessage, id, immediate, rendered, required, requiredMessage, validator, validatorMessage, value, valueChangeListener, dir, disabled, hideNoSelectionOption, label, lang, layout, readonly, style, styleClass, tabindex, title, binding.

        border, enabledClass, disabledClass to be dealt with by yui...do we want a border??
        classes for styling are determined by yui.

        from ICEfaces (selectBooleanCheckbox):-
        autocomplete,
        effect-> use anim from YUI
        enabledOnUsreRole,
        paritalSubmit=singleSubmit
        visible
        <ice:radio>
        binding, for, id, index, rendered

        ICEfaces renderer allows for layout="spread" for <ice:radio> to be embedded in table column with controller of ice:selectOneRadio to control the behaviour of the radio buttons (only one selected at a time).

        ability to support layout of vertical is also necessary.

        from yui:- anim,

        Show
        Judy Guglielmin added a comment - from jsf2.0:- converter, converterMessage, id, immediate, rendered, required, requiredMessage, validator, validatorMessage, value, valueChangeListener, dir, disabled, hideNoSelectionOption, label, lang, layout, readonly, style, styleClass, tabindex, title, binding. border, enabledClass, disabledClass to be dealt with by yui...do we want a border?? classes for styling are determined by yui. from ICEfaces (selectBooleanCheckbox):- autocomplete, effect-> use anim from YUI enabledOnUsreRole, paritalSubmit=singleSubmit visible <ice:radio> binding, for, id, index, rendered ICEfaces renderer allows for layout="spread" for <ice:radio> to be embedded in table column with controller of ice:selectOneRadio to control the behaviour of the radio buttons (only one selected at a time). ability to support layout of vertical is also necessary. from yui:- anim,
        Hide
        Judy Guglielmin added a comment -

        using the hidden field, the radio button (on decode), checks the hidden field to see if it's ID is there. If so, then it can find it's parent and setSelectedItemId(it's id), to ensure that the group knows it's the selected button.
        PROBLEM***. Using the hidden field and the structure of the <div>'s and <span>'s, only the hidden field is updated (not the script), so the initialize fn of the javascript file is not run again (to be updated by the hidden field's id).....will use a param for the selectedItemId within the script tag to ensure this happens whenever the button is changed.
        ValueChangeEvent on the group is queued from setValue() method of the buttongroup. Will be able to implement a CheckedChangeLIstener on the actual radio button....

        Show
        Judy Guglielmin added a comment - using the hidden field, the radio button (on decode), checks the hidden field to see if it's ID is there. If so, then it can find it's parent and setSelectedItemId(it's id), to ensure that the group knows it's the selected button. PROBLEM***. Using the hidden field and the structure of the <div>'s and <span>'s, only the hidden field is updated (not the script), so the initialize fn of the javascript file is not run again (to be updated by the hidden field's id).....will use a param for the selectedItemId within the script tag to ensure this happens whenever the button is changed. ValueChangeEvent on the group is queued from setValue() method of the buttongroup. Will be able to implement a CheckedChangeLIstener on the actual radio button....
        Hide
        Ken Fyten added a comment -

        Reminder that sam skin is required for this component.

        Show
        Ken Fyten added a comment - Reminder that sam skin is required for this component.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: