Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Dependent selectOneMenu with JSF and AJAX

843842Jan 3 2007 — edited Jun 15 2007
I'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.

Comments

Processing
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Jul 13 2007
Added on Jan 3 2007
4 comments
494 views