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 Creating Action from ValueChangeEvent Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "Creating Action from ValueChangeEvent" Watch "Creating Action from ValueChangeEvent" New topic
Author

Creating Action from ValueChangeEvent

Elam Daly
Greenhorn

Joined: Aug 09, 2003
Posts: 16
Hi all,

I have a <selectOneMenu> which has a valueChangeEvent and a onchange="submit" javascript bind, so that when the menu choice changes the bean method bound to the valueChangeEvent is called, which does some logic processing. By default, the page that called the valueChangeEvent is then refreshed.

What I then need for it to do is navigate to another page based on the outcome of the method logic, but of course ValueChange events don't do this. Is there a way to alter the navigation outcome via the JSF api so that I can navigate to other pages through my faces-config.xml. In other words, act as if a actionEventListener is attached to my selectOneMenu?

Thanks,
Elam Daly
Akbar Basha R
Greenhorn

Joined: Mar 11, 2002
Posts: 23
I came across this suggestion from sun forums. Let me know whether it works.

http://forum.java.sun.com/thread.jspa?threadID=619503&messageID=3478956
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Creating Action from ValueChangeEvent
 
Similar Threads
Problem using Navigation Handler
consecutive selectOneMenu postback problem
javax.faces.el.MethodNotFoundException in JSF
JSF: Problem with valueChangeListener
I need help with ajaxSingle, reRender and immediate.