[jboss-user] [JBoss Seam] - Re: create method not found + @Factory
Basel
do-not-reply at jboss.com
Sun Jul 16 10:38:58 EDT 2006
Thank you so much guys. It finally worked ^_^
Here is what I did:
1. Add @Out(value="newEntry", scope=ScopeType.CONVERSATION) annotation to the instance variable Entry. It won't work if you do not specify a scope.
2. Remove the @Factory("newEntry") annotation from createNewEntry method.
3. Move the code that creates the entry to the startPost method which is called by a page event.
Here is the code:
| @Out(value="newEntry", scope=ScopeType.CONVERSATION)
| private Entry entry;
|
| @Begin(pageflow="new-entry", join=true)
| public void startPost(){
| log.info("Starting to create a new post");
| if( entry == null)
| entry = new Entry(category);
| }
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3958326#3958326
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3958326
More information about the jboss-user
mailing list