[jboss-user] [JBoss Seam] - Re: List re-initialization after nested conversation

jacob.orshalick do-not-reply at jboss.com
Thu Sep 27 19:40:10 EDT 2007


Please post your code.  When a conversation is nested, contextual variables in the parent conversation are read-only.  This means that if you do something like:


  | @In(value="myList")
  | @Out(value="myList")
  | private List myList;
  | ...
  | 
  | @Begin
  | public void beginParentConversation {
  |   myList = new ArrayList();
  |   myList.add(something);
  | }
  | ...
  | 
  | @Begin(nested=true)
  | public void withinNestedConversation() {
  |   myList = new ArrayList();
  |   myList.add(somethingElse);
  | }
  | 
  | ...
  | 
  | @End
  | public void endNestedConversation() {
  | }
  | 

When endNestedConversation() is called the original list containing "something" will be reverted to.  The list containing "somethingElse" is gone.

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

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



More information about the jboss-user mailing list