aspose file tools
The moose likes JSF and the fly likes valueChangeListener Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » JSF
Reply Bookmark "valueChangeListener" Watch "valueChangeListener" New topic
Author

valueChangeListener

Reza Agustian
Greenhorn

Joined: Mar 20, 2006
Posts: 3
If a hava a JSF form, containing 2 control :
selectOneMenu & inputText

the inputText value is set in selectOneMenu-->valueChangeListener.
And i want the inputText is validate after i change the value in selectOneMenu-->valueChangeListener.

in a normal condition (i think) the new value is validate after i submit the form again.
and if i used immediate, the inputText is not validated

can i validate the inputText after the valueChangeListener ??
Dhananjay Inamdar
Ranch Hand

Joined: Jan 27, 2003
Posts: 130
Hi Reza,

You have to add 'immediate=true' to the selectOneMenu and not to the input text box. This will skip validation of selectOneMenu but after valuechangelistener when you are setting value in inputtext, validation will happen.

Cheers


Just like you, struggeling to get the right solutions!<br /> <br />Sun Certified Java Programmer 1.5<br /> <br />Target - SCWCD
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: valueChangeListener
 
Similar Threads
JSF ValueChange problems and Default method where the form submits to
How to auto-render a GUI using Ajax
Issue With selectOneMenu ValueChangeListener Not Firing
Problem with loading the data after Value Change Listener on selectonemenu
inputText values don't get updated to database