I have a SelectOneMenu driven by a List, each of which contains an object value and a string label, along with a converter. All fairly standard. I initially got the Validation Error: Value is not valid error because of a typo in the equals method, but a quick search on how to fix that brings up another question:
Am I right in my understanding that, in this scenario, what happens is:
- An item is selected in the menu.
- This sends a string value to the server.
- The converter is used to convert the string value to an object.
- JSF checks that the object exists in the list of items.
- The setter method is called passing the object.
If so, then can I disable step 4? My converter will throw a ConverterException if the value is not valid, so for me this second list traversal is completely unnecessary.
Cheers,
Barney