This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes JSF and the fly likes How to create an action listner? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » JSF
Bookmark "How to create an action listner?" Watch "How to create an action listner?" New topic
Author

How to create an action listner?

lucky one
Greenhorn

Joined: Sep 29, 2009
Posts: 3
How to create an action listner in the icefaces to display the selected data of the select one listbox in the textbox.

thanks in advance.
Chris Gage
Greenhorn

Joined: Mar 23, 2005
Posts: 17

This is vanilla JSF not ICEFaces, but I guess it'll be more or less the same.
In your JSP:

If you want the submission to occur immediately you make the selection, you can optionally add onchange="this.form.submit();" as an additional attribute to the selectOneMenu tag .

In your managed bean, the ValueChangeListener method is called listen, the output property is called speak, which will appear in the outputText field above, and the SelectItem List is called possible (and it's up to you to fill it).
lucky one
Greenhorn

Joined: Sep 29, 2009
Posts: 3
thanks buddy
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: How to create an action listner?
 
It's not a secret anymore!