This content has been marked as final.
Show 3 replies
-
1. Re: Does redirect.captureCurrentView save page parameters?
delphi'sghost Sep 14, 2007 11:32 AM (in response to milli)Did you have any luck with this in the end? I've come across the same problem in that params are not carried across checks for logins. Kind of causes problems with RESTful URLS.
In my case, Seam is checking for the login because I have a restrict tag on the page, which in turn is checking for whether the user is logged in. -
2. Re: Does redirect.captureCurrentView save page parameters?
milli Sep 14, 2007 5:20 PM (in response to milli)Unfortunately @RequestParameter injection will not work with pare redirection. You will have to use page parameters(pages.xml) to make it to work. Please check this thread for more information http://www.jboss.com/index.html?module=bb&op=viewtopic&t=115657
-
3. Re: Does redirect.captureCurrentView save page parameters?
delphi'sghost Sep 17, 2007 11:47 AM (in response to milli)Yep, that works....Thanks for the response!
FYI for the next unfortunate soul that comes across this. Instead of using :@RequestParameter private Long myId
you need to take out the request parameter annotation and just have the member declaration.
In your bean interface add the following methods :Long getMyId(); void setMyId(Long myId);
and implement these two methods in your session bean to get/set the myId member.
In pages.xml for the page that needs the parameter put :<param name="myId" value="#{MyBean.myId}"/>