[jboss-user] [JBoss Seam] - Re: Login Redirection not propagating GET parameters
milli
do-not-reply at jboss.com
Fri Aug 10 19:34:51 EDT 2007
"pete.muir at jboss.org" wrote : No. They are not semantically identical. @RequestParameter is simply for injecting a request parameter, page parameters have a deeper effect on your app (parameter propagation, setting values on your model, application of converters).
I understand with page definition you can do more than a simple @RequestParameter injection.
Let's forget about propagating parameters values for a while. But when it comes to just passing GET parameters(to the backing bean component) shouldn't they be having the same behaviour?
Here is what I found out.
When you have the parameter defined in pages.xml, here is the flow of the backing bean component:
* Seam calls @Create method first
* It then calls setters on the parameters to initialize the values
With @RequestParameter, the behaviour is
* Seam injects parameter values first (No need to have setters)
* It then calls the @Create method
Is this the intended behaviour? May be there was a reason to design this way which I don't get it.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4073234#4073234
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4073234
More information about the jboss-user
mailing list