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]> wrote:
>
> hey all, i am trying to use the onValidate method to verify an uploaded file
> but am getting an npe on the UploadedFile.
>
> Even just trying to record error on form period does nothing as well.  Am I
> using the onValidate/recordError incorrectly?
>
> @Component
> private Form form;
> private UploadedFile up;
>
> public void onValidate() {
>    // form.recordError("an error");
>    if(!web.getFileName().endsWith(".ssi")) {
>           form.recordError("wrong ext error");
>    }
>
> }
> --
> View this message in context: 
> http://www.nabble.com/onValidate-NPE-tp17024869p17024869.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-- 
--
TheDailyTube.com. Sign up and get the best new videos on the internet
delivered fresh to your inbox.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to