aspose file tools*
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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 agree. Here's the link: http://aspose.com/file-tools
 
subject: How to create an action listner?
 
Similar Threads
How to access Secure web method
RichFaces phases manipulation
How to Create a Portlet project into Eclipse 3.4 ?
How to close the session in struts.confiq.xml
how to create tablespace in java dbms