Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to assign single field value to mulitible bean class variable  RSS feed

 
deepan thiagu
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hai every one, i am new to the JSF so i don't know much more.
i need to assign text field value to multiple bean class variable or i need to invoke multiple methods with single button hit

<h:inputText id="name" value="#{user.name} #{identity.name}"/>
 
Alim Atar
Ranch Hand
Posts: 102
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use valueChangeListener of h:inputText and call one methond of backing Bean and use that method to call other multiple methods.
<h:inputText valueChangeListener="YourMethod" .../>
hope this will work
regards,
-Alim
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!