HOWTO: accountActivation -step 1, step 2
I am really confused on how to do something. I am emailing my new users a URL with a parameter which has their account info I need to "activate" their account. I have a single session bean that is shared between two pages (registrationActivation.jsp and registrationActivation2.jsp). My first problem was getting the parameter out of the URL. The examples of
(String)this.getFacesContext().getExternalContext().getRequestParameterMap().get("parm");
rarely worked (my best guess is because of which phase it was being called in?). Anyway, I finally put that code in a property getter linked to a hidden field at the bottom of my form and it is getting the value and storing it in bean (which is now (hopefully) in the session scope (managed bean setting)).
Here's the question: ra.jsp has created a session bean and populated it. Now I need to redirect to ra2.jsp and somehow trigger an action event that will do the work. If the work succeeds, the navigation has it returning to itself (ra2.jsp) which has rendered= logic that display/hides messages as appropriate.
So, just how does one do this? I've googled until I'm blind and nothing has helped. I had hoped that the <body onload="#{event}"> syntax would have been valid, but apparently it is not. :(
Thanks!

