• Post Reply Bookmark Topic Watch Topic
  • New Topic

valueChangeListener

 
Reza Agustian
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 130
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!