How do i create a group of h:selectOneRadio in JSF?
Posted
by Nitesh Panchal
on Stack Overflow
See other posts from Stack Overflow
or by Nitesh Panchal
Published on 2010-04-23T05:43:01Z
Indexed on
2010/04/27
0:53 UTC
Read the original article
Hit count: 441
Hello, I am trying to create a grooup of h:selectOneRadio but ui:repeat gives it different id for each row. This is my code :-
<ui:repeat id="themes" value="#{RegisterBean.objBlogTemplateList}" var="item">
<p:graphicImage alt="#{item.templatePicName}" style="border: solid 5px white;width: 200px;height: 200px;" value="#{app:getCommonImagePath(item.templatePicName)}"/>
<h:selectOneRadio rendered="false" value="#{RegisterBean.blogTemplateId}" layout="lineDirection" id = "rdTemplateId">
<f:selectItem itemLabel="#{item.templateName}" itemValue="#{item.templateId}"/>
</h:selectOneRadio>
</ui:repeat>
Actually i want to create a single radio button with different selectItems in it which should be from the rows of my table in database. How do i do this?
© Stack Overflow or respective owner