[jboss-user] [JBoss Seam] - Re: @DataModelSelection question

2008-02-01 Thread xinhua
thank you blabno, you are right :)

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4125573
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: @DataModelSelection question

2008-02-01 Thread blabno
Factory method should not return anything, but set some values by itself.

@Factory(scope=ScopeType.CONVERSATION)
public void getPages()
{
pages = sglue.loadAllPages();
}

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4125568
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: @DataModelSelection question

2008-02-01 Thread xinhua
resolved

code should be:


  | 
  | .
  | @Factory("pages")
  | @Begin(join=true)
  | public List getPages()
  | {
  | pages = sglue.loadAllPages();
  | return pages;
  | 
  | }
  | 





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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4125563
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user