JSF default validation

1 view
Skip to first unread message

Salim

unread,
May 20, 2009, 3:45:52 AM5/20/09
to Java Web Application
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,
Reply all
Reply to author
Forward
0 new messages