• Post Reply Bookmark Topic Watch Topic
  • New Topic

Creating Action from ValueChangeEvent  RSS feed

 
Elam Daly
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!