webtier@glassfish.java.net

Re: [webtier] How to handle a list in JSF 2

From: Celinio Fernandes <papouasied_at_yahoo.com>
Date: Sat, 2 Jan 2010 15:44:43 -0800 (PST)

Thanks.
Although I have already found a solution, I am open to new ones.
I am not familiar with the UIData  component yet.
To try to explain things better when i say "results with multiple entities", here is an example of a query that looks like the one i use
and that i want to feed to my h:datatable :

SELECT a.id, c.name, t.address FROM Car a, Owner t, Bank c where a.id = t.id and t.id = c.id ;

Here the result is not mapped to a single existing entity (or DAO).

So, would it still work with UIData ? If yes, is there an example somewhere ? I suppose i'd have to create a DTO anyway.
Thanks.


--- On Sun, 1/3/10, Jason Lee <jasondlee_at_sun.com> wrote:

From: Jason Lee <jasondlee_at_sun.com>
Subject: Re: [webtier] How to handle a list in JSF 2
To: webtier_at_glassfish.dev.java.net
Date: Sunday, January 3, 2010, 4:56 AM









































Jason Lee
Senior Java Developer
GlassFish Administration Console

Sun Microsystems, Inc.
Phone x31197/+1 405-343-1964
Email jasondlee_at_sun.com
Blog http://blogs.sun.com/jasondlee
Blog http://blogs.steeplesoft.com