webtier@glassfish.java.net

jsf dataTable foreign key

From: <webtier_at_javadesktop.org>
Date: Thu, 02 Jul 2009 05:34:19 PDT

Hi!

I have jsf (2.0) datatable:

<h:dataTable border="1" value="#{bean.entities}" var="entity1">

<h:dataTable/>

In the body, i want to display another entity named entity2 which has a foreign key to entity1. I want to execute a query in the loop to get the associated entity based on entity1 id.

How can i do that?
Thanks
[Message sent by forum member 'gabox01' (gabox01)]

http://forums.java.net/jive/thread.jspa?messageID=353903