I tried the following code:
<ui:repeat var="item" id="request" value="#{myBean.requestList}">
<h:selectBooleanCheckBox id="#{item.name}" value="#{item.type}"/>
<h:outputText value="#{item.name}"/>
</ui:repeat>
I also tried
<ui:repeat var="item" id="request" value="#{myBean.requestList}">
<ui:param name="dynamicVal" value="#{item.name}"/>
<h:selectBooleanCheckBox id="#{dynamicValue}" value="#{item.type}"/>
<h:outputText value="#{item.name}"/>
</ui:repeat>
Both of these give an error:
java.lang.IllegalArgumentException: component identifier must not be a xero-length String at javax.faces.component.UIComponentBase.isIdValid ..
Whats incorrect in this code? How can I assign dynamic id to the check box suhc that both the label & the id are same. I need this for automaton.