I want to set dynamic id to many check box in <p:dataTable>
.
how can i give it please help.
<p:column id="sipyes">
<center>
<h:selectBooleanCheckbox rendered="#{var1[5]}" id="#{var1[4]}">
<p:ajax listener="#{pmmbean.checkitem(var1[2],var1[0],var1[3])}"/>
</h:selectBooleanCheckbox><br/>
<h:outputText value="#{var1[4]}" rendered="#{var1[5]}"/>
</center>
</p:column>
Here I can get value of var1[4]
but it can not set in the id attribute.
Here I got id selectBooleanCheckbox id is empty.
and got this type of error.
How can I resolve it?
Got this type of Error :
HTTP Status 500 - Empty id attribute is not allowed.