tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Andreou <andy...@di.uoa.gr>
Subject Accept validator for Upload component
Date Thu, 06 Oct 2005 14:14:22 GMT
Hi all,
would you be interested in adding to Tapestry a validator (to be used 
with the Upload component)
that only allows certain file types (extensions) to be accepted.

I've just added one in the user's mailing list, that supports 
client-server side validation.
It can be used like this:
<binding name="validators" value="validators:accept=jpeg-jpg-png-gif"/>

Here are the changes that this would require:

- Create the class org.apache.tapestry.form.validator.Accept in 
- Create the related unit test 
(org.apache.tapestry.form.validator.TestAccept) in framework/src/test
- Add a static final String in org.apache.tapestry.valid.ValidationStrings
- Add an (error-message) entry in 
- Register the validator with hivemind at 

I would be glad to provide the diffs for all these changes...

To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org

View raw message