This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Soft Skills: The software developer's life manual and have John Sonmez on-line!
See this thread for details.
Win a copy of Soft Skills: The software developer's life manual this week in the Jobs Discussion forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Passing arguments to facelet functions

 
Raymund Nickel
Greenhorn
Posts: 8
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
i want to pass a dynamic value to a facelet function. This all should happen on the clientside.
I guess i have to use javascript for that, but is there maybe a way JSF/Facelets can handle this?

For example:


Let´s say the facelet function 'getCalculatedValue(...)' has one parameter. When i change the slider value, the actual value should be passed as an argument to the function without calling the server.

Thank you,
Ray
 
Tim Holloway
Saloon Keeper
Pie
Posts: 17615
38
Android Eclipse IDE Linux
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think the way it works is that you set up something like this in you inputNumberSlider:


That will suppress the submit functionality. But I'm pretty sure that the RichFaces Live Demo should have an actual working example of this kind of functionality.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic