Uploaded image for project: 'MyFaces Tomahawk'
  1. MyFaces Tomahawk
  2. TOMAHAWK-1680

add the possibility to disable an individual t:radio

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Wish
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.1.14
    • 1.1.15-SNAPSHOT
    • selectOneRadio / radio
    • None
    • Win 7 / Linux

    Description

      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

       <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>
      

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            lu4242 Leonardo Uribe
            kickmetondy Andreas Wuest
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment