I have a textbox where i have added two validator
<h:inputText value="#{genFeatCapacity.value}" required="#{genFeatCapacity.required}" requiredMessage="Please provide value for this field" >
<f:validateRegex pattern="#{genFeatCapacity.regPattern}|\\s*" />
<f:validateLongRange minimum="#{genFeatCapacity.minLength}"
maximum="#{genFeatCapacity.maxLength}"/>
</h:inputText>
Now how to add validation fail message for
- Regular-expression fail validation message?
- Range fail validation message?
- Regular-expression and Range both failed validation message?
In another answer given by @BalusC that can be achieve by Omnifaces ,but if we are not using Omnifaces its not possible in JSF2+. ?