This content has been marked as final.
Show 4 replies
-
1. Re: Problem with @End(beforeRedirect=true)
ccurban Dec 25, 2006 8:03 AM (in response to ccurban)I forgot to mention I got a begin/create method in the same SFSB:
@Create @Begin public void init() { , , , }
So what I really expected is:
1. I hit the Link.
2. updateDistributionList() is executed
3 the conversation is ended before the redirect
4. redirect to the same page
5. init method is called due to @Create and a the temporary conversation is promoted to a long running one.
But steps 3 and 5 don't occur for me.
Any help is appreciated. -
2. Re: Problem with @End(beforeRedirect=true)
norman.richards Dec 25, 2006 10:57 AM (in response to ccurban)
This looks odd to me:<to-view-id>/view/manage/cc_distribution.xhtml</to-view-id>
If you are following the normal seam structure then your view id would simply be "/manage/cc_distribution.xhtml". Do you really have a view directory inside of your WAR? Assuming you don't, I'd expect you to see a redirect failure. Instead you are being redirected back to the same page. That sounds more like a validation error to me. Are you sure updateDistributionList() is even being called? -
3. Re: Problem with @End(beforeRedirect=true)
ccurban Dec 25, 2006 7:49 PM (in response to ccurban)Actually I have a "view" directory.
And I actually want to be redirected to the same page, but with ending the old and starting a new long running conversation.
I thought @End(beforeRedirect=true) would exactly do thatm but as stated before I am just redirected to the same page with the old conversation still active. -
4. Re: Problem with @End(beforeRedirect=true)
ccurban Dec 25, 2006 8:19 PM (in response to ccurban)Thanks Norman, actually the method has not been called, as I annotated and posted the wrong method.
Annotating the right method works like a charm.
Maybe I should stop working over christmas. :)
/closed.