[ https://issues.apache.org/jira/browse/TOMAHAWK-1680?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15132427#comment-15132427 ]
Mike Kienenberger commented on TOMAHAWK-1680: --------------------------------------------- You have a couple of options. The best would be to submit a patch for Tomahawk that supports this behaviour and we will commit it for you. The second is to create your own special subclass of t:radio that adds the functionality only for your specific project. I needed t:radio onclick support a few years back and it was rather trivial to add, although I never got around to committing it to tomahawk. First create a trivial subclass of HtmlRadioRenderer and then add this to your faces-config.xml file. I will attach the class I used to add onclick support. It was based on MyFaces 1.1, but I suspect it will still give you most of the solution. I no longer remember why I captured the value of "radio" the way that I did. A patch fixing HtmlRadioRender would be better, obviously. <render-kit> <render-kit-id>HTML_BASIC</render-kit-id> <renderer> <component-family>org.apache.myfaces.Radio</component-family> <renderer-type>org.apache.myfaces.Radio</renderer-type> <renderer-class>com.xyz.jsf.component.ExtendedHtmlRadioRenderer</renderer-class> </renderer> </render-kit> > 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 > Attachments: ExtendedHtmlRadioRenderer.java > > > 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)