开发者

How to pass parameters panelgroup - binding, JSF [duplicate]

This question already has answers here: How does the 'binding' attribute work in JSF? When and how should it be used? (2 answers) Closed 8 years ago.

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:dataT开发者_JS百科able 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?


That should work just find but I believe that you need to make sure you are using a modern servlet spec (v3 I think). Use the latest Glassfish or Tomcat app server.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜