How can I customize the validation message that appears when validation fails?
Here is the code I have:
<h:form>
<p><h:inputText
id="userNo"
title="Type a number from 0 to 10:">
<f:validateLongRange
minimum="3"
maximum="6"/>
</h:inputText>
<h:commandButton id="submit" value="Submit"
action="response"/>
</p>
<h:message showSummary="true" showDetail="false"
id="errors1"
for="userNo"/>
</h:form>
Currently the message looks like this:
j_idt10:userNo: Validation Error: Specified attribute is not between the expected values of 3 and 6.
Which is not particularly user-friendly.