Re: onValidate NPE

2008-05-02 Thread zack1403
Actually client-side validation works for me with files. I am testing if the file is of a certain extension so I always make sure I am uploading files. I guess Ill pull down the source and debug it. Thanks for the help. Zack Hmm... are you testing not uploading a file? because if there is no

Re: onValidate NPE

2008-05-02 Thread Josh Canfield
Hmm... are you testing not uploading a file? because if there is no file uploaded then the UploadFile object will be null. You should make sure you handle that case because I don't believe the javascript validation will work on a file upload field. You might want to grab the source for the upload

Re: onValidate NPE

2008-05-02 Thread zack1403
Your example is very incomplete and thus hard to debug. What version of tapestry are you using? I'm guessing that the "web" in your method is supposed to be "up"? Do you have proper getter/setter methods for your uploadfile? Josh On Fri, May 2, 2008 at 11:05 AM, zack1403 <[EMAIL PROTECTED]> w

Re: onValidate NPE

2008-05-02 Thread Josh Canfield
Your example is very incomplete and thus hard to debug. What version of tapestry are you using? I'm guessing that the "web" in your method is supposed to be "up"? Do you have proper getter/setter methods for your uploadfile? Josh On Fri, May 2, 2008 at 11:05 AM, zack1403 <[EMAIL PROTECTED]> wrot