0 Replies Latest reply on Dec 2, 2008 7:51 PM by nimo22

    control nested or merged conversations

    nimo22

      I have two conversation-scoped-components:


      @Name("edit")
      @Scope(CONVERSATION)
      public class Edit  {
      
      @Begin(join = true, flushMode = FlushModeType.MANUAL) @Factory(value="myEntity")
      public void init(){..}
      ..
      
      }



      @Name("viewAll")
      @Scope(CONVERSATION)
      public class ViewAll  {
      
      @Begin(join = true) @Factory(value="viewAll")
      public void init(){..}
      ..
      
      }



      If one of the both conversation is long-running,
      then the other is joined with this conversation.


      But how can I enforce the end of only one of the conversations, when it was already joined?


      For example:


      I have in my view 'manage.xhtml' which merges both conversations:


      ..
      <s:div id="viewAll">
      <ui:include src="viewAll.xhtml"/>
      </s:div>
      ..
      <s:div id="edit">
      <ui:include src="edit.xhtml"/>
      </s:div>
      ..



      How can I enforce a end of the conversation of my embeeded view 'edit' without ending the conversation viewAll?



      Should I use nested?
      The view edit is rendered, if a link 'doEdit' is clicked.


      The 'doEdit'-link is integrated into the viewAll.xhtml.


      I only want, that if the 'doEdit'-link is clicked,
      then the conversation edit should be refreshed with a new conversation.


      This new conversation can then be merged with the conversation 'viewAll'.


      How can I achieve that? I cannot use


      <s:link value"doEdit" propagation="end"/>



      as this ends the conversation.


      Any ideas?