• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to create an action listner?

 
lucky one
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 17
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks buddy
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic