[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details

navigation on valueChangeListener of <af:selectOneChoice> component

Asked by jainmahee in Java Server Faces (JSF)

Tags: JSF ADF

Hi,
I want to provide options to user to navigate to different pages (screen) using <af:selectOneChoice> (drop down menu). On valueChangeListener I am calling a method which returns a string value depending on value selected in drop down. I have mapping in faces-config.xml file for the values returned from method (method called on changeValueListener).
I tried with <af:selectOneChoice> component but it does not navigate user to different page but it stays on the same page. When i used command button instead of <af:selectOneChoice> and returned value from method (mapped in faces-config.xml for navigation) then it navigated user to some other page.

My question is : when valueChangeListener event of <af:selectOneChoice> calls method then will it always stay on the same page or can i navigate user to some other page depending on method return value (return value would be mapped with some jsp in faces-config.xml)

Thanks.!
 
Loading Advertisement...
20091021-EE-VQP-81 - Hierarchy / EE_QW_3_20080625