Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Message from discussion JSF default validation

View parsed - Show only message text

Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Received: by 10.100.95.15 with SMTP id s15mr85938anb.26.1242805552045; Wed, 20 
	May 2009 00:45:52 -0700 (PDT)
Date: Wed, 20 May 2009 00:45:52 -0700 (PDT)
X-IP: 194.154.219.97
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.5) 
	Gecko/2008121621 Ubuntu/8.04 (hardy) Firefox/3.0.5 GTB5,gzip(gfe),gzip(gfe)
Message-ID: <e96ea16e-a37e-4983-b2f9-acc0b30a6bc7@n4g2000vba.googlegroups.com>
Subject: JSF default validation
From: Salim <salimbou...@gmail.com>
To: Java Web Application <javawebapp@googlegroups.com>

Hy everybody,

I have a problem validating an input of a form. I've not created any
validator, just using the one including by JSG. Here is the code
snippet:

<h:inputText id="paramid" value="#{paramInteger.value}" maxlength="11"
required="true">
	<f:convertNumber minIntegerDigits="1" maxIntegerDigits="10" />
</h:inputText>

When I type something like "pp77p" An error is trigger because it's
not a number input.
But, when I type "77pppp" No error, the value is validated by JSF,
while I'd need an error...

Any idea on how to fix it ?

Thanks,

Salim,

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google