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


Win a copy of JavaScript Promises Essentials this week in the JavaScript forum!
JavaRanch » Java Forums » Java » JSF
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: 8883
    
    5
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


Spot false dilemmas now, ask me how!
(If you're not on the edge, you're taking up too much room.)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: pass parameter to binding method