This content has been marked as final.
Show 4 replies
-
1. Re: clickable dataTable problem
pmuir Oct 27, 2007 6:21 AM (in response to asookazian)"asookazian" wrote:
So I have a clickable dataTable that's based on a join of two tables. There is a submit button for each row of the dataTable. I can't use the @DataModelSelection annotation (commented below) b/c the List does not consist of only one Entity class, it's based on two.
Don't forget your class has an inheritance hierachy.How can I identify which row needs to be updated and get all the necessary data for the 2nd table to be persisted to DB? 1st table is read-only. sounds like @DataModelSelection is out of the question here (Java generics does not allow me to specify more than one type per Collection).
Page parameters? -
2. Re: clickable dataTable problem
asookazian Oct 27, 2007 11:14 AM (in response to asookazian)thx bro. I'll look into this.
-
3. Re: clickable dataTable problem
asookazian Oct 29, 2007 11:49 AM (in response to asookazian)"pete.muir@jboss.org" wrote:
"asookazian" wrote:
So I have a clickable dataTable that's based on a join of two tables. There is a submit button for each row of the dataTable. I can't use the @DataModelSelection annotation (commented below) b/c the List does not consist of only one Entity class, it's based on two.
Don't forget your class has an inheritance hierachy.How can I identify which row needs to be updated and get all the necessary data for the 2nd table to be persisted to DB? 1st table is read-only. sounds like @DataModelSelection is out of the question here (Java generics does not allow me to specify more than one type per Collection).
Page parameters?
when you refer to inheritance hierarchy, are you referring to the two entity classes (sub-classing one from the other, which doesn't make sense in this case b/c they're unrelated in terms of one is not a shape and one is not a rectangle, or one is not a person and one is not a manager, etc.).
or are you referring to the SFSB class?
i'm thinking you're referring to the two JPA entities... -
4. Re: clickable dataTable problem
pmuir Oct 29, 2007 12:27 PM (in response to asookazian)You said you can't use @DataModelSelection because of two different classes. At its most basic, how about
@DataModelSelection Object selectedFoo;