This content has been marked as final.
Show 3 replies
-
1. Re: method expressions with parameter in the nested <h:dataT
wkzk Aug 4, 2007 4:56 AM (in response to wkzk)sorry , i forgot to say that
I'm using seam v2.0beta.
Thanks. -
2. Re: method expressions with parameter in the nested <h:dataT
pmuir Aug 4, 2007 7:59 AM (in response to wkzk)You need to outject datamodels not lists for extended EL to work like that I think.
-
3. Re: method expressions with parameter in the nested <h:dataT
wkzk Aug 4, 2007 8:22 AM (in response to wkzk)Thank you for your reply.
Although I didn't post it, I did try like this.@Name("someAction") public class SomeAction { @DataModel(value="parents") private List<Parent> parents; @DataModelSelection(value="parents") @Out(required=false, scope=ScopeType.CONVERSATION) private Parent parent; @DataModel(value="children") private List<Child> children; @DataModelSelection(value="children") private Child child; ....... }
@Entity @Name("parent") public class Parent { private int field1; private List<Child> children = new ArrayList<Child>(0); @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.EAGER, mappedBy = "parent") public List<Child> getChildren() { return this.children; } ....... }
But it didn't work....
What am I missing?
Shige