Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

pass parameter to binding method

 
Rajeev Ravindran
Ranch Hand
Posts: 455
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Is there any way to pass a parameter to the binding method of a component. If i understood properly, the binding methods are invoked before the component get rendered so its not possible to add <f:atrribute to the component and get the value retreived in the binding method.

any alternate solution ?

Thanks,
Rajeev.
 
Richard Green
Ranch Hand
Posts: 536
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
is this what you are looking for?

http://balusc.xs4all.nl/srv/dev-jep-com.html
 
Rajeev Ravindran
Ranch Hand
Posts: 455
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
nope that's not really what i am looking for.

I would like to know if its possible to pass parameter to the binding method of a component, not the action method. As fas as i know, binding methods are invoked before the component got rendered so it may not be possible to pass an attribute or parameter to the binding method.

Thanks,
 
g madhava
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Currently that is one of the limitation of the JSF framework. I guess it's really the limitation of JSTL.

You cannot invoke a method (both Action as well as binding methods) with any parameters.

Thanks,
 
Bert Bates
author
Sheriff
Posts: 8900
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi "g" -

Please update your display name to match the JavaRanch naming policy - we've found that when people use their full names things stay friendlier!

Thanks,

Bert
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic