Hi, 

I'm trying to put a radio button on each line of a dataTable in order
to allow selection of one line. (Like what is available in ADF Faces)

Here's what I've done:
<x:selectOneRadio id="spreadRadio" value="#{tckListAdminBean.selectedValue}" 
    layout="spread" styleClass="selectOneRadio">
    <f:selectItems value="#{tckListAdminBean.localizedListSelects}" />
</x:selectOneRadio>

<x:dataTable id="elementsList"  var="currentElement"
    value="#{tckListAdminBean.localizedList.elements}"
    rowIndexVar="currentRowIndex">
    <h:column>
        <x:radio for="spreadRadio" index="#{currentRowIndex}" />
    </h:column>
</x:dataTable>

but the following exception occurs:
javax.servlet.ServletException: Could not find component 'spreadRadio'
(calling findComponent on component
'body:listAdminForm:elementsList_0:_id57')

In the MyFaces x:radio sample, it's simpler, there is no dataTable
involved, I suppose it doesn't work because of that.

Thanks for any help,
Fr�d�ric

Reply via email to