Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Passing to bean from component

 
Daniel Prene
Ranch Hand
Posts: 241
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it possible to do somthing like this:
<h:commandButton action="#{foo.bar('foo')}"/>
 
James Ellis
Ranch Hand
Posts: 205
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not sure...but why would you need to do this? Normally the commandButton would submit the form in which it is embedded and the form elements would submit to a bean (assuming you have set their value to a bean's property). What's in the "foo" object that you can't put in the form?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic