While working with a custom component I have the problem, that UIInput#getValid() never resets itself. Question is: do I have to invoke setValid(true) myself during Apply Request Values Phase?
Here are the steps I have done:
- Create a custom component and inherit from
UIInput - The component invokes
setConverterin the constructor - The converter was designed for this component alone and throws a
ConverterExceptionif it can't convert from String to the model object - There are no validators
decode()is overriden, and ifFacesContext#isPostbackreturns true we invokesetSubmittedValuewith the request value- During render response I check
isValid(), it returns true if aConverterExceptionwas thrown, and I can render the response accordingly - But: If I submit another correct value the
setValid(true)is never called for the custom component