I have a datatable
that reads registers from a database.
In the datatable
I have a panelgroup
that is populated by binding
My problem is that I can not pass a parameter. I want to pass a value from the datatable
variable, in that case preg, on each row I want to know the value of the register read to populate the panelgroup
.
If I display the value it works fine for each row: #{preg.idpreg}
<h:dataTable var="preg" value="#{Pregbacking.list(Pregbacking.idenq)}">
<h:column>
#{preg.idpreg}
<h:panelGroup binding="#{Pregbacking.dynamicDataTableGroup(preg.idpreg)}"/>
</h:column>
</h:dataTable>
Does anybody know how can I solve this?