KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Is it possible to call bean methods & directly pass parameters to them from the view instead of requiring to first set the bean properties and then call methods without arguments using the commandButton or similar ? I have a list of items with each item having a list of actions. To reduce the state, I am using a single primefaces remoteCommand , in place of several commandButton (s). On getting a action trigger from the view, I would call the remoteCommand from javascript but since the remoteCommand is one but used for multiple items thus I need to pass the id of the item as well. I am wondering if there is a way to pass the id of the item to the bean method directly as an argument instead of first setting it as a bean property ? Is there any way to do so ? Actually I am looking at a better way to deal with multiple commandButtons on a page when there's a long list of items on the page. Suggestions ? Thanks. Using JSF 2.1.6 Mojarra with Primefaces 3.0RC1
Tags (comma-separated)
Save Edits
Cancel