When using ValidField with a numeric validator, you must
set the type parameter of the ValidField to indicate the
Java type to convert to and from.
Example:
<component id="inputDouble" type="ValidField">
<binding name="validator"
expression="beans.doubleValidator"/>
<binding name="value"
expression="visit.doubleValue"/>
<static-binding name="displayName">Double
Field</static-binding>
<static-binding name="type">Double</static-binding>
</component>
--
[EMAIL PROTECTED]
http://tapestry.sf.net
>
> Hi,
>
> I have another problem. The String Validator works fine. The
> net.sf.tapestry.valid.NumberValidator doesn't. It gives the following error
> message.
>
> --------- error message ---------
> The type parameter for field
> net.sf.tapestry.valid.ValidField@4db0e3[LoginForm/inputValue] was not
> specified and is required by the field's validator
> --------- error message ---------
>
> Trying <input jwcid="inputValue" type="text" /> doesn't work.
>
> Can someone explain?
>
> Regards,
> Manoj
>
>
> ---------------- Howard M. Lewis Ship wrote ----------------
>
> required by the field's validator
>
> If you replace your template's <body> tag with <body jwcid="body"> (as a
> Body component) this will be fixed.
>
> The null pointer is caused by the ValidField not being wrapped by a Body.
>
> As a rule of thumb, always use the Body component. More and more stuff is
> depending on it.
>
> The error message should be better, please add a bug. It'll be fixed in
> 2.3.
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Tapestry-developer mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/tapestry-developer
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Tapestry-developer mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/tapestry-developer