This content has been marked as final.
Show 3 replies
-
1. Re: Factory method question
barbacena Mar 26, 2008 5:15 PM (in response to haefti)Scope yout @Factory to PAGE (or CONVERSATION).
import static org.jboss.seam.ScopeType.PAGE ... @Factory(value = "latestPictureList", scope = PAGE)
-
2. Re: Factory method question
haefti Mar 26, 2008 5:44 PM (in response to haefti)Thanks for the hint but now I get a
java.lang.IllegalArgumentException: factory method with defined scope outjected a value: latestPictureList
Did I miss something else?
-
3. Re: Factory method question
matt.drees Mar 29, 2008 2:55 AM (in response to haefti)Right, you probably want a page-scoped DataModel. As is, it's Event-scoped. So when JSF restores the view prior to navigating to the detail page, it will need to re-query your @factory.
The scope should be specified in the @DataModel annotation, not the @Factory annotation.