[jboss-user] [JBoss Seam] - Re: Progress

CptnKirk do-not-reply at jboss.com
Sun Jul 16 01:28:14 EDT 2006

The support for @Factory methods that return values causes problems for me and my DataBinders.

I have the following:

  |     @SelectItems
  |     private List items;
  |     @Factory("items")
  |     public List getItems()
  |     {
  |        ... static lookup code
  |     }

Prior to the enhancement this was great.  When my EJB clients were accessing the bean they could get the items via the getItems method.  When JSF needed the items, Seam resolved the variable, called the factory method that set the instance variable and sent everything through my DataBinder.

With the latest CVS it seems the DataBinder is called but the List that's eventually exposed to JSF is the one from the @Factory method, which JSF can't process.

I guess I'd either ask that Seam check for and apply data binders for things created via a @Factory return.  Or supply some way to disable the new @Factory logic.


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

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

More information about the jboss-user mailing list