I have a form with custom email validator like this:
<o:validator for="#{cc.attrs.id}_text" validatorId="emailValidator" disabled="#{not cc.email}" message="#{messages['message.validation.invalidEmail']}" />
And I have a commandButton with ajax=false that submits the form.
On first page post, the email validator error message appears properly. The problem is when submitting the same form twice - I also got 2 invalid email messages. Submit again and you got 3. The problem doesn't occur on other native jsf validator like required and pattern.
For example I submitted the form 3x I will get the messages below:
Email > Invalid format
Email > Invalid format
Email > Invalid format
My bean is conversation scope. Any idea? Thanks.