You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Markus Wiederkehr (JIRA)" <ta...@jakarta.apache.org> on 2004/10/31 15:39:32 UTC

[jira] Created: (TAPESTRY-219) Upload component validation

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


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
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


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


[jira] Updated: (TAPESTRY-219) Upload component validation

Posted by "Markus Wiederkehr (JIRA)" <ta...@jakarta.apache.org>.
     [ http://issues.apache.org/jira/browse/TAPESTRY-219?page=history ]

Markus Wiederkehr updated TAPESTRY-219:
---------------------------------------

    Attachment: ValidUpload.jwc
                ValidUpload.java
                IUploadValidator.java

> 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
>  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
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


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


[jira] Updated: (TAPESTRY-219) Upload component validation

Posted by "Markus Wiederkehr (JIRA)" <ta...@jakarta.apache.org>.
     [ http://issues.apache.org/jira/browse/TAPESTRY-219?page=history ]

Markus Wiederkehr updated TAPESTRY-219:
---------------------------------------

    Attachment: RequiredUploadValidator.java

> 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
>  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
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


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


[jira] Resolved: (TAPESTRY-219) Upload component validation

Posted by "Paul Ferraro (JIRA)" <ta...@jakarta.apache.org>.
     [ 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: tapestry-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org


[jira] Closed: (TAPESTRY-219) Upload component validation

Posted by "Paul Ferraro (JIRA)" <ta...@jakarta.apache.org>.
     [ http://issues.apache.org/jira/browse/TAPESTRY-219?page=all ]
     
Paul Ferraro closed TAPESTRY-219:
---------------------------------

    Assign To: Paul Ferraro

Changed status from resolved to closed.

> 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
>     Assignee: Paul Ferraro
>      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: tapestry-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org