Help with validator and xdoclet

2005-03-15 Thread Vinicius Caldeira Carvalho
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.

Re: Help with validator and xdoclet

2005-03-15 Thread Vinicius Caldeira Carvalho
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

Re: Help with validator and xdoclet

2005-03-15 Thread Niall Pemberton
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

Re: Help with validator and xdoclet

2005-03-15 Thread Vinicius Caldeira Carvalho
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.

Re: Help with validator and xdoclet

2005-03-15 Thread Niall Pemberton
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]