This content has been marked as final.
Show 2 replies
-
1. Re: Triggering page action if the URL comes with parameters
milli Jul 2, 2007 8:38 PM (in response to milli)Sorry hit the back button. Please ignore the duplicate message.
-
2. Re: Triggering page action if the URL comes with parameters
hstang Jul 2, 2007 10:57 PM (in response to milli)Use a page actions. Here I quickly wrote this thing very quickly, so hopefuly you get the idea:
So someone lets say you the email contains the following url:
http://a.b.com/app/activate.seam?emailId=2&code=RABOOF<page view="/activate.xhtml"> <action execute="#{myComponent.activate}"/> <navigation> <rule if="#{myComponent.successful}> <redirect view="/successfulActivation.xhtml"> <message>Successful</message> </redirect> </rule> </navigation> </page> @Name("myComponent") public class MyComponent { @RequestParameter String emailId; @RequestParameter String code boolean successful = false; public void activate() { if (activateIsSuccessful) { successful = true; } } }