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
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user