JSF validateLength question
        Posted  
        
            by user337515
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by user337515
        
        
        
        Published on 2010-05-10T17:36:08Z
        Indexed on 
            2010/05/11
            0:04 UTC
        
        
        Read the original article
        Hit count: 236
        
jsf
|validation
I have a input field with validation to validate the max and min length
<h:inputText id="LABEL_ID" styleClass="textboxsmall" value="#{sampleDatatableBean.accessionLabelId}" maxlength="5">
    <f:validateLength minimum="4" maximum="5" />
</h:inputText>
<br/><h:message id="LABEL_ID_MSG" styleClass="errorMessage" for="LABEL_ID" />
It validates but I get the below message:
"Value is less than allowable minimum of {0}"
Shouldn't {0} be replaced by value from minimum? Not sure why its not picking up the value. Any ideas?
Version info:
<!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN" "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">
<tlib-version>1.0</tlib-version>
<jsp-version>1.2</jsp-version>
        © Stack Overflow or respective owner