• Post Reply Bookmark Topic Watch Topic
  • New Topic

Backing method should be called before the value set in the databean for UI Component  RSS feed

 
Atishay Jain
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am having one h:selectOneMenu which is having three items.

As the value changes, i want to call a Backing bean method before it set to the databean. Accordingly that, i want to set other data.

Which attribute will be required to call the backing bean method?

Can somebody help me in this.
 
sunil verma
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you can call a method by using valueChangeListener of <h:selectOneMenu as <h:selectOneMenu valueChangeListener="#{beanName.methodName}" onchange="submit()">

I hope it will solve your problem if you get success than please post the response.

sunil kumar verma
[ April 19, 2007: Message edited by: explorer verma ]
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66152
146
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"explorer verma", you have previously been warned on one or more occasions regarding adjusting your display name to meet JavaRanch standards. This is not optional. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it prior to your next post.

Your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

Be aware that accounts with invalid display names are removed.

bear
JavaRanch Sheriff
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!