Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

SelectOneRadio inside datatable?

843844Jun 4 2007 — edited Jun 6 2007
How do I put a <h:selectOneRadio> inside a datatable> Ie if I wanted to rank names from 1 to 3?

<h:dataTable value="#{bean.myNames}"
var="n"
>

<h:column>
<f:facet name="header">
<h:outputText value="Function Name"/>
</f:facet>
<h:outputText value="#{n.Name}"/>
</h:column>

<h:column>
<f:facet name="header">
<h:outputText value="Rank"/>
</f:facet>


<h:selectOneRadio binding="#{bean.selectOneRank}" >

<f:selectItem itemValue="1" />
<f:selectItem itemValue="2" />
<f:selectItem itemValue="3" />
</h:selectOneRadio>

</h:column>



</h:dataTable>


How do I in the bean say that name y got rank z?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 4 2007
Added on Jun 4 2007
10 comments
254 views