aspose file tools
The moose likes JSF and the fly likes pass parameter to binding method Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "pass parameter to binding method" Watch "pass parameter to binding method" New topic
Author

pass parameter to binding method

Rajeev Ravindran
Ranch Hand

Joined: Aug 27, 2002
Posts: 455
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.


SCJP, SCWCD, SCBCD, Oracle Certified Professional (SQL n PL/SQL)
Richard Green
Ranch Hand

Joined: Aug 25, 2005
Posts: 536
is this what you are looking for?

http://balusc.xs4all.nl/srv/dev-jep-com.html


MCSD, SCJP, SCWCD, SCBCD, SCJD (in progress - URLybird 1.2.1)
Rajeev Ravindran
Ranch Hand

Joined: Aug 27, 2002
Posts: 455
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

Joined: Sep 14, 2001
Posts: 85
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

Joined: Oct 14, 2002
Posts: 8712
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


Eliminate fossil fuel subsidies. (If you're not on the edge, you're taking up too much room.)
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: pass parameter to binding method
 
Similar Threads
static and non-static relationship question
passing parameter to method without post/get/ajax
How to get the complete file path in Mozila
How to use java to invoke an external webservices (soap, soap1.2)?
I want to make a method call from the jsf and pass parameter to it.