File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes To call a method from the value changed in the drop-down Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "To call a method from the value changed in the drop-down " Watch "To call a method from the value changed in the drop-down " New topic
Author

To call a method from the value changed in the drop-down

N Deepu
Greenhorn

Joined: Jul 28, 2011
Posts: 25

Hi all,

I've been trying with the SelectOneMenu item to retrieve the value of the selected item and map it to the Value Change Event. But I read in one of the posts here that the ValueChangeListener should not be used to call a method. Is there any other way to call a Method?

My requirement is a drop-down with Objects like person,Adress.
If Person is selected, I should go to backing bean- Person.java and call the method written in that class for its corresponding functionality.

Thanks in advance
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: To call a method from the value changed in the drop-down
 
Similar Threads
Java Script Drop-down option deletion but little bit different
displaying a table row when a dropdown list is get selected
getting a table row with a scroll bar when a dropdown list box iteamis get selected
creating dynamic dropdowns
Reg : Drop-down box