[ 
https://issues.apache.org/jira/browse/TOMAHAWK-1680?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Leonardo Uribe updated TOMAHAWK-1680:
-------------------------------------
       Resolution: Fixed
         Assignee: Leonardo Uribe
    Fix Version/s: 1.1.15-SNAPSHOT
           Status: Resolved  (was: Patch Available)

Thanks to Andreas Wuest for provide this patch. Applied in core, core12 and 
core20 / core21 modules.

> add the possibility to disable an individual t:radio
> ----------------------------------------------------
>
>                 Key: TOMAHAWK-1680
>                 URL: https://issues.apache.org/jira/browse/TOMAHAWK-1680
>             Project: MyFaces Tomahawk
>          Issue Type: Wish
>          Components: selectOneRadio / radio
>    Affects Versions: 1.1.14
>         Environment: Win 7 / Linux
>            Reporter: Andreas Wuest
>            Assignee: Leonardo Uribe
>             Fix For: 1.1.15-SNAPSHOT
>
>         Attachments: ExtendedHtmlRadioRenderer.java, PATCH_1680.patch
>
>
> Hello,
> please add the possibility to disable an individual t:radio Radio Button. At 
> the moment it is only possible to enable/disable a complete group defined via 
> t:selectOneRadio. However it is not possible to enabled / disable an 
> individual radio button from the group. It is only possible to enable / 
> disable all or none.
> Example:
> define the group with all the possible elements
> {code}
>  <t:selectOneRadio id="radioGrpFSGuarantor" layout="spread" 
> value="#{clientRolesDlg.roleFSGuarantor}">
>      <f:selectItems value="#{clientRolesDlg.selectRolesList}" />
>      <f:ajax execute="@form" listener="#clientRolesDlg.onRoleChanged" /> 
> </t:selectOneRadio>
> <ui:repeat id="rClientRowStatus" value="#{clientRolesDlg.rows}" 
> var="clientRow" varStatus="clientRowStatus">
>   <tr>
>      <td>
>          <t:outputText id="otHasData" value="#{clientRow}" />
>      </td>
>      <td >
>          <t:radio for=":globalForm:radioGrpFSCustomer" 
> index="#{clientRowStatus.index}" disabled="true|false" />      
> <-------------- additional disable attribute
>      </td>
>    </tr>
> </ui:repeat>
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to