I have a selectOneMenu. If the user select one specific value relating to age of a person, I need to validate if this selection is valid based on code in the Backing bean. I am using Ajax and I don“t undestand why when the selection is not valid the selectOneMenu is not rendering.
You should be using JSF's validation feature. You can write a custom validator that uses the selectOneMenu and whatever other values it gets compared to, and puts the result in the validation queue.
Enrique Villamizar
Ranch Hand
Joined: Jul 30, 2005
Posts: 87
posted
0
Thanks Guy deLyonesse for your help.
That's a better idea... Now I have a custom validation. Anyway I would like to use Ajax for instant validation ( I mean no waiting until the entire form will be submitted). How can I do it?