Hi, I have no idea on how to include selectOneRadio elements inside a datatable in order for each f:selectItem to be associated to a different row, but all the elements belonging to the same radiobutton group.  I am currently getting independent radiobutton elements for each row but I need all of them to belong to the same group in order to allow only one of the rows to be selected at once.

 

In case it helps I am currently using the code:

 

                                   <h:dataTable value="#{searchTreeBean.dataFieldList}" var="dataField">

                                         <h:column>

                                               <h:outputText value="#{dataField.description}"/>

                                               <f:verbatim>&amp;nbsp;&amp;nbsp;&amp;nbsp;</f:verbatim>

                                         </h:column>

                                         <h:column>

                                               <h:inputText value="#{dataField.searchString}" maxlength="#{dataField.entryLength}" size="#{dataField.entrySize}"/>

                                               <f:verbatim>&amp;nbsp;&amp;nbsp;&amp;nbsp;</f:verbatim>

                                         </h:column>

                                         <h:column>

                                               <h:selectBooleanCheckbox value="#{dataField.returnSelected}" />

                                         </h:column>

                                         <h:column>

                                               <h:selectOneRadio id="myRadioButton">

                                                     <f:selectItem itemValue="#{dataField.orderBySelected}" />

                                               </h:selectOneRadio>    

                                         </h:column>                                   

                                   </h:dataTable>

 

Any ideas? 

 

Regards,

JV

Reply via email to