[jboss-user] [JBoss Seam] - Re: EL enhancements in Seam 1.2.1

christian.bauer@jboss.com do-not-reply at jboss.com
Wed May 9 12:24:51 EDT 2007


This is not how doStuff(argument) works. What you are trying to do is a common error. 

Think about when #{projectPlanHome.edit(pp.id)} will be evaluated: During rendering of the page. However, if you check the source of the rendered HTML, you will see that pp.id has not been replaced with a value, it is still pp.id. So when you click the link, Seam will on the server call your projectPlanHome.edit() method and it will resolve "pp.id" as an argument to that method. At that time, "pp" is long gone. 

What you want is @DataModelSelection, see the Seam documentation and examples.


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4044389#4044389

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4044389



More information about the jboss-user mailing list