[jboss-user] [JBoss Seam] - Conversation problem in popup window

texan do-not-reply at jboss.com
Tue Jun 26 18:56:30 EDT 2007


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!



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

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



More information about the jboss-user mailing list