cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Giuseppe Di Pierri" <giuseppe.dipie...@gmail.com>
Subject Re: Forms Validator Number Format Exception
Date Thu, 31 May 2007 20:39:46 GMT
ASFAIK, form-validator is no longer maintained, even if this would be a bug.
I suggest you to use CForm instead: it is more powerful and flexible.

bye
pino

On 31/05/07, Jeff Sallade <jeff.sallade@envworld.com> wrote:
> Hi, does anyone have some more specifics on how to use
> the "form-validator" action with a descriptor file that
> contains parameters having type="long" in conjuction
> with the min and max attributes specified?
>
> I have a parameter in my descriptor file as follows:
>
> <parameter name="bl_consumer_groups.bill_copies"
>   type="long" min="0" max="9999999999999999999999"
>   nullable="yes" />
>
> The data passed in as a request parameter is 1 and
> the AbstractValidatorAction.AbstractValidatorAction method
> is catching a NumberFormatException with the text,
>
> For input string: "9999999999999999999999"
>
> The log file message says,  "No type specified for parameter
> bl_consumer_groups.bill_copies," and the method returns a
> null value which causes a java.lang.NullPointerException to
> halt the whole validation process.
>
> How should the min and max values be formatted for long
> datatypes?  Any info would be greatly appreciated.
>
> Thanks,
> Jeff Sallade
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>


-- 
Giuseppe Di Pierri
Managing Director
______________________
Phiware Engineering Sagl
via Ginevra 5
CH-6900 Lugano
Tel. +41 91 260 75 55
Fax.+41 91 260 75 59
Email. giuseppe.dipierri@phiware.ch
--

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message