[jboss-user] [JBoss Seam] - Re: @Factory method get called first..

monkeyden do-not-reply at jboss.com
Fri May 18 11:37:10 EDT 2007


Not when that filter needs to be injected.  I don't know the specific requirement but if it exists already, you could get it explicitly in the factory method.

@Factory("mainformList")
  | public List getMainFormData() {
  |     Context session = Contexts.getSessionContext();
  |     Object obj = sesison.get("myFilter");
  | }
  | 
or look it up in the DB:

@Factory("mainformList")
  | public List getMainFormData() {
  |     MyBO bo = new MyBO();
  |     bo.findByName("myFilter");
  | }

...or get it from wherever else it might originate.

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

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



More information about the jboss-user mailing list