-
1. Re: Nested Conversation End + Redirect
clerum Apr 13, 2009 7:11 PM (in response to clerum)OK I've made a little progress.
1. I had a conversation in the stack which had a null view-id. It was created because the method called on the org_list.xhtml page had an @End(nest=true) and the s:link calling the method had an propagation="nest" is that correct behavior? I pulled the nest on the s:link and now it's working.
2. I got the redirect working by
@End public void updateUser() { em.flush(); conversation.endAndRedirect(); }
Browsing the source code it doesn't look like there is anything to trigger this with the @End(????), only with injecting the Converstation and calling an endAndRedirect() Is this something that I could potentially make a patch for ie @End(redirect=true) or are their bigger design issues that I'm not seeing since I don't understand all the nuts and bolts.
-
-
3. Re: Nested Conversation End + Redirect
chris.simons Jul 30, 2009 12:15 AM (in response to clerum)It seems that you never received a reply on this topic.
Just to add my two cents, we ran into a similar problem.
I worked around it by using pages.xml as the way of beginning and ending conversations.
So, in the event that you are at a page called:
updateUser.xhtml, click an action called "updateUser()".
In the pages.xml for updateUser, the navigation for "updateUser()" would be handled with the something like this...
<navigation from-action="bean.updateUser()"> <redirect view-id="somePage.xhtml"/> <end-conversation before-redirect="true"/> </navigation>
In summary, we found that handling the specific page-level actions in pages.xml helped us enormously with what was initially a lot of headache regarding conversations and breadcrumbs.
Hope this helps.
-
4. Re: Nested Conversation End + Redirect
clerum Jul 30, 2009 12:19 AM (in response to clerum)Right.
My issue is that I could be going to one of multiple view-id's upon ending the outer conversation.
-
5. Re: Nested Conversation End + Redirect
kragoth Jul 30, 2009 1:06 AM (in response to clerum)Here is a work around that may or may not work. I havn't tried it but just based on some stuff I've played around with.
Change your
<redirect view-id="somePage.xhtml"/>
to use an EL expression for the view-id... I
THINK
this might work but not sure.<redirect view-id="#{ConversationEntries.getConversationEntry(Conversation.instance().getParentId()).getViewId()}"/>
Anyways, like I said, not tested and this really depends a lot on how you have set up your conversations etc.
-
6. Re: Nested Conversation End + Redirect
clubok Mar 20, 2014 11:30 AM (in response to kragoth)This is an old thread, but I recently had to discover the answer for myself. The correct EL expression is this:
<redirect view-id="#{manager.parentConversationViewId}">