[
http://jira.jboss.com/jira/browse/JBSEAM-1341?page=all ]
Shane Bryzak closed JBSEAM-1341.
--------------------------------
Fix Version/s: 1.3.0.ALPHA
Resolution: Done
Fixed in CVS, thanks.
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
Assigned To: Shane Bryzak
Priority: Trivial
Fix For: 1.3.0.ALPHA
Original Estimate: 5 minutes
Remaining Estimate: 5 minutes
"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