[jboss-user] [JBoss Seam] - Re: method expressions with parameter in the nested <h:dataT

wkzk do-not-reply at jboss.com
Sat Aug 4 08:22:37 EDT 2007


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


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4070861#4070861

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4070861



More information about the jboss-user mailing list