[
http://jira.jboss.com/jira/browse/JBSEAM-1943?page=comments#action_12421444 ]
Jacob Orshalick commented on JBSEAM-1943:
-----------------------------------------
Maybe I am just being silly, but, I think the
org.jboss.seam.navigation.Pages also needs patching (after all, that the place where the
page.xml files are read and converted into objects. Am i wrong?
Nope, you're right. Missed that patch, thanks for pointing it out. Posting patches
for that many files isn't easy to track ;-)
Is @End(root=true) the most flexible way to deal with this problem?
what if one need to end only 2 or 3 levels of nested conversations
Ending the root is focused at a specific problem and has gathered quite a few votes over
time. I see what you are getting at, but I do not know how useful others would find this.
I would recommend posting a separate feature request, attach it to the discussion on the
forum, and see how many votes it gathers.
Support for destroying the entire ConversationStack
---------------------------------------------------
Key: JBSEAM-1943
URL:
http://jira.jboss.com/jira/browse/JBSEAM-1943
Project: Seam
Issue Type: Feature Request
Components: Core
Affects Versions: 2.0.0.CR1
Reporter: Jacob Orshalick
Assigned To: Jacob Orshalick
Fix For: 2.1.0.BETA1
Attachments: JBSEAM-1943-ConversationControl-v1.patch,
JBSEAM-1943-ConversationInterceptor-v1.patch, JBSEAM-1943-End-v1.patch,
JBSEAM-1943-EndTask-v1.patch, JBSEAM-1943-HotelBookingAction-v1.patch,
JBSEAM-1943-pages-2.0-dtd-v1.patch, JBSEAM-1943-pages-2.0-xsd-v1.patch
There are situations where I would like to be able to destroy the entire conversation
stack if a particular action occurs (say a user cancels everything during a nested
conversation, an exception occurs during a nested conversation, etc). I am currently
accomplishing this through the following:
private void endRootConversation() {
Conversation conversation = Conversation.instance();
while(conversation.isNested()) {
conversation.root();
}
conversation.endBeforeRedirect();
}
I would prefer to say something like @End(root=true) or specifying
conversationPropogation="endRoot". Similar discussions on the forum are:
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=112414&a...
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=118936&a...
--
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