Dependent selectOneMenu with JSF and AJAX
843842Jan 3 2007 — edited Jun 15 2007I'm trying to build two selectOneMenu's, one dependent on the other. The update is done using AJAX.
All seems to work properly, the second selectOneMenu is updated through AJAX depending on the first choice.
But when the form is submitted an error occurs:
Validation Error "expenseAccountIdSSEIT": Value is not a valid option.
Where "expenseAccountIdSSEIT" is the second select.
It seems like JSF checks if the options of the select are the ones being rendered, but as they are modified using AJAX, it fails.
So, how can I update the options of the component in the JSF view stored on the server?
Thanks in advance.