1 Reply Latest reply on Jun 27, 2007 9:49 AM by texan

    Conversation problem in popup window

    texan

      I can't start a new conversation when using a popup window.

      Seam 1.2.1, JBoss 4.0.5, IceFaces 1.6DR5

      The main window has a list of "Rule" objects. Clicking on a Rule opens up a new window for editing the rule.

      To accomplish the popup, I created a "virtual" entry in pages.xml:

      <page view-id="/jsf/rules/EditDocumentRuleEntry.xhtml">
       <action execute="#{editDocumentRule.edit}" />
      </page>
      


      The "editDocumentRule" ejb session is conversational and the "edit" method is annotated with "@Begin".

      I load the page via javascript like this:

      window.open("/int-monitoring/jsf/rules/EditDocumentRuleEntry.seam?id="+id, "", "location=no,status=no,toolbar=no,resizable=yes,scrollbars=yes,directories=no,height=400,width=800");


      The javascript is invoked from my table like this:

      <h:outputLink value="javascript:editDocument(#{rule.id})">



      When I click a link the first time, all is well. Clicking a second link results in the following error:

      java.lang.IllegalStateException: begin method invoked from a long running conversation, try using @Begin(join=true) on method: edit


      I do not want to join the conversation: I want to begin a new one! I don't understand why the system thinks that I'm invoking "edit()" from within the existing conversation!