How do i create a group of h:selectOneRadio in JSF?
- by Nitesh Panchal
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?