[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-1341) IllegalStateException in seamspace example
Valerij Timofeev (JIRA)
jira-events at lists.jboss.org
Wed May 23 05:53:00 EDT 2007
IllegalStateException in seamspace example
------------------------------------------
Key: JBSEAM-1341
URL: http://jira.jboss.com/jira/browse/JBSEAM-1341
Project: JBoss Seam
Issue Type: Bug
Components: Examples
Affects Versions: 1.2.1.GA
Reporter: Valerij Timofeev
Priority: Trivial
"Already a member?" link in register.xhtml page propagates conversation (s:link), so after clicking this link and after that again "SIGN UP!" button a factory method RegisterAction.start() is trying to start another long running conversation although the 1st one is still running.
This results in an exception: java.lang.IllegalStateException: begin method invoked from a long running conversation, try using @Begin(join=true) on method: start
Possible solutions:
instead
<s:button value="Cancel" action="#{register.cancel}" styleClass="registerButton"/>
use
1) <s:link view="/home.seam" value="Click here to log in 2" propagation="none" />
2) But in order to explicitly end current converstaion it would be better to implement RegisterAction.cancel() method with the @End annotation and use the following link:
<s:link view="/home.seam" action="#{register.cancel}" value="Click here to log in"/>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the seam-issues
mailing list