Hello everybody
I have a
jsf page that with 2 lists. A list of dates and a list of people.
But the list of people depends on the chosen date.
I use ajax4jsf to update people list when date changes, and it works fine.
But when I click on save button I get "Validation Error: Value is not valid" on people list.
It happens because validate tries do call people list before (or without) calling date list. As date list is null, the form gets the default value for date (not the chosen date). And with the wrong date, people list does not have the person I chose. That's why I get Validation Error.
When I put the managed bean on session it works. But I don't wanna do this.
Is there a way to force validation to call a method before validate?
Or, Is there a better way to do this?
Thanks in advance