You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Ananya Goswami <an...@aztec.soft.net> on 2005/10/21 14:41:47 UTC
Declaring validators
Hi All Tapestry Users!!!
I have written a validator for file size for
client side validation . I have given the following but the pop-up alert
comes even when I select a proper sized file. (Assume that file size should
be of 900 bytes).
Could anyone please tell me how to give the
syntax for the same....
<binding name="validators" value="validators:accept=gif,filesize=900"/>
Thanks & Regards
-----------------------------
Ananya Goswami
Software Developer
-----------------------------
Re: Declaring validators
Posted by Kent Tong <ke...@cpttm.org.mo>.
Ananya Goswami <ananyag <at> aztec.soft.net> writes:
> I have written a validator for file size for
> client side validation . I have given the following but the pop-up alert
> comes even when I select a proper sized file. (Assume that file size should
> be of 900 bytes).
> Could anyone please tell me how to give the
> syntax for the same....
> <binding name="validators" value="validators:accept=gif,filesize=900"/>
I wonder how your validator's javascript is written. No browser would
allow javascript to read the user's local files as it would be a hugh
security risk.
--
Author of a book for learning Tapestry (http://www.agileskills2.org/EWDT)
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org