Hi Tim

My preference would be that it checks both conditions - ie ensure there is a filename and that it is a valid file (>0 bytes). This seems sensible to me.

thanks

Ghoot

On 24 Apr 2006, at 23:59, Tim Fennell (JIRA) wrote:

    [ http://mc4j.org/jira/browse/STS-180?page=comments#action_10303 ]

Tim Fennell commented on STS-180:
---------------------------------

This is simply an overisght and should be fairly easy to fix. My only question would be what would you consider as passing required validation? Simply that a file name was supplied, or that the file was greater than 0 bytes in length?

File Tag Validation failure
---------------------------

         Key: STS-180
         URL: http://mc4j.org/jira/browse/STS-180
     Project: Stripes
        Type: Bug

  Components: Validation
    Versions: Release 1.2.2, Release 1.3
    Reporter: Ghoot Emaho
    Assignee: Tim Fennell


Adding required=true via the Validate annotation for a FileBean attribute results in the validation ALWAYS failing even when a valid file has been selected.
This results in being unable to force the user to select a file...
e.g.
@Validate(required=true)
private FileBean newAttachment;

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://mc4j.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira



-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel? cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development







-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development

Reply via email to