This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JSF and the fly likes Invoking method with param Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Invoking method with param" Watch "Invoking method with param" New topic

Invoking method with param

Rami Hailat

Joined: Nov 26, 2008
Posts: 20
Peace for you Rancheres,

i want to call a method on my backing bean with parameter, i believe that JSF does not support this, but i want to ask if richfaces do, please help.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15960

No compliant JSF system does.

You can, however, define parameters that will be passed as part of the request submit, and IIRC, that's just a matter of putting <f:param> children under an <h:commandButton> (or commandLink) and can be done with core JSF.

Getting the parameter itself in the action processor means having to dig into internal structures in a way that generally means you're not using JSF the way it was designed for. Use of parameters in well-designed JSF apps isn't unknown, but it's not all that common, since the backing beans and datamodels cover the most common situations without the need to get that complicated.

Customer surveys are for companies who didn't pay proper attention to begin with.
I agree. Here's the link:
subject: Invoking method with param
Similar Threads
servlet closing
client.jar and finding html doc
help me pause and continue my program
How can I get the URL of request?
Servlet method call