"milli" wrote : 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
The behaviour you describe is consistent through Seam. @RequestParameter does injection
(which of course occurs before @Create but after the constructor), page parameters set
model attributes (which occurs after the constructor and @Create). Spend some time
understanding what injection is and what page parameters are.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4073269#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...