Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Invoking method with param

 
Rami Hailat
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 18154
52
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic