Hello there! I'm using for the first time, xdoclet to create my
validation.xml file (that really help)
But I got stuck in a point. I have a property that must be float and
also greater than 0. Here's what I've tried:
/**
* @param limitePreAutorizacao The limitePreAutorizacao to set.
Vinicius Caldeira Carvalho wrote:
Hello there! I'm using for the first time, xdoclet to create my
validation.xml file (that really help)
But I got stuck in a point. I have a property that must be float and
also greater than 0. Here's what I've tried:
/**
* @param limitePreAutorizacao The
I think minlength is the wrong validator for what you're trying to do. It
just checks the length of whats keyed in (i.e. the number of characters) ...
seems like you want a minimum valueyou could use floatRange for this.
http://struts.apache.org/userGuide/dev_validator.html#builtin
Having
Niall Pemberton wrote:
I think minlength is the wrong validator for what you're trying to do. It
just checks the length of whats keyed in (i.e. the number of characters) ...
seems like you want a minimum valueyou could use floatRange for this.
No, can't do that with any of the numeric validators :-( would be a good
addition though.
Currently the only way to do this is using standard validators shipped with
struts is using the mask validator.
Niall
- Original Message -
From: Vinicius Caldeira Carvalho [EMAIL PROTECTED]
5 matches
Mail list logo