Hello,

have a look at
http://wiki.apache.org/myfaces/Display_Radio_Buttons_In_Columns and
http://myfaces.apache.org/sandbox/tagreference.html#selectOneRow.
You find an example for the last one at
http://irian.at/myfaces-sandbox/selectOneRow.jsf.

Cheers,
Martin


On Wed, 2006-08-02 at 10:38 -0500, Jorge Vásquez wrote:
> 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:selectBooleanCheckboxvalue="#{dataField.returnSelected}" />
> 
>                                          </h:column>
> 
>                                          <h:column>
> 
> 
> <h:selectOneRadioid="myRadioButton">
> 
>                                                      <f:selectItem
> itemValue="#{dataField.orderBySelected}"/>
> 
> 
> </h:selectOneRadio>     
> 
> 
> </h:column>                                    
> 
>                                    </h:dataTable>
> 
>  
> 
> Any ideas?  
> 
>  
> 
> Regards,
> 
> JV
> 
> 

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to