2 Replies Latest reply on Feb 12, 2008 4:51 AM by Ilya Shaikovsky

    How can i get value selected of radio button??

    panky_p Novice

      Hi
      I am using rich data table to display a table and the code is

      <rich:dataTable var="rowChoice" value="#{myBean.rowList}" >
       <f:facet name="header">
       <rich:subTable rows="1" var="columnChoiceue" value="#{myBean.columnList}">
       <rich:column>
       <rich:spacer />
       </rich:column>
       <rich:column>
       <ui:repeat value="#{myBean.columnList}" var="columnChoice">
       <rich:column>
       <h:outputText value="#{columnChoice.value}"/>
       </rich:column>
       </ui:repeat>
       </rich:column>
       </rich:subTable>
       </f:facet>
       <rich:column>
       <h:outputText value="#{rowChoice.value}" />
       </rich:column>
       <rich:column>
       <ui:repeat value="#{myBean.columnList}" var="columnChoiceue">
       <rich:column>
       <h:selectOneRadio>
       <f:selectItem value="#{columnChoiceue}" />
       </h:selectOneRadio>
       </rich:column>
       </ui:repeat>
       </rich:column>
      </rich:dataTable>
      

      which displays table like
       US UK UAE
      Tic radiobutton radiobutton radiobutton
      Tac radiobutton radiobutton radiobutton
      Toe radiobutton radiobutton radiobutton
      

      my problem is how can I get values of selected radio button??
      as I am using two different list for row and column lables and using ui:repeat
      how can i get selected radio button??


      Thanks
      teenAge