[ http://issues.apache.org/jira/browse/TAPESTRY-219?page=all ]
Paul Ferraro resolved TAPESTRY-219:
-----------------------------------
Fix Version: 4.0
Resolution: Fixed
As of 4.0, the Upload component can be validated via the validators parameter.
> Upload component validation
> ---------------------------
>
> Key: TAPESTRY-219
> URL: http://issues.apache.org/jira/browse/TAPESTRY-219
> Project: Tapestry
> Type: New Feature
> Components: Framework
> Versions: 3.0.1
> Reporter: Markus Wiederkehr
> Fix For: 4.0
> Attachments: IUploadValidator.java, RequiredUploadValidator.java,
> ValidUpload.java, ValidUpload.jwc
>
> It would be nice if an enhanced Upload component could be validated with a
> mechanism similar to IValidationDelegate and IValidator. The validator should
> be able to check things like file name, file size and content type. The
> validation delegate should be able to decorate the Upload component just like
> it decorates a ValidField. Furthermore it should be possible to use a
> FieldLabel in conjunction with the Upload component.
> The attached files demonstrate how this could be accomplished. The patch
> works as intended but it's a bit of a hack. A cleaner solution should be
> found.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]