Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

f:validateLength  RSS feed

 
sai maddikay
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

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>

it validates but I get the below message.....shouldnt {0} be replaced by value from minimum? Not sure why its not picking up the value... any ideas

Value is less than allowable minimum of {0}

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>

Thanks,
Sai.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!