xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
<h:form>
<p><h:inputText
id="userNo"
validatorMessage="Error!"
title="Type a number from 1 to 9:"
value="1">
<f:validateLongRange
minimum="1"
maximum="9"/>
</h:inputText>
<h:commandButton id="submit" value="Submit"
action="response"/>
</p>
<h:message showSummary="true" showDetail="false"
style="color: #d20005;
id="errors1"
for="userNo"/>
</h:form>
jsf-inputtext jsf-commandbutton jsf-validators jsf-message jsf
Page 1 of 1