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]

Reply via email to