Howard posted a work around for this previously. [ tapestry-Feature Requests-609726 ] Define JavaScript validation trigger
>As a workaround, could you put JavaScript on your "cancel" button to set >the form's onsubmit event handler to null before submitting? Regards Malcolm >From: Jason Owens <[EMAIL PROTECTED]> >To: <[EMAIL PROTECTED]> >Subject: Re: [Tapestry-developer] Unable to validate Forms >Date: Sun, 22 Sep 2002 17:10:38 -0700 > >I second that notion! The problem I found was that there was no way to >properly cancel a form (using a Submit) - since the field ALWAYS tried to >validate the empty value. Both alternatives, using a DirectLink to cancel >or filling in the field with a bogus value, really aren't very user >friendly. > >-jason > >On Sunday, September 22, 2002, at 03:50 PM, Luis Neves wrote: > >>Is it possible to make the property clientScriptingEnabled >>false by default? >> >>Thanks, >> >>Luis >> >> >>----- Original Message ----- >>From: Howard M. Lewis Ship >>To: [EMAIL PROTECTED] >>Sent: Sunday, September 22, 2002 10:38 PM >>Subject: Re: [Tapestry-developer] Unable to validate Forms >> >> >>Validation now produces client side validation in JavaScript and requires >>a >>Body component. >> >>Or you can set the clientValidation property of the validators to false. >>----- Original Message ----- >>From: Luis Neves >>To: [EMAIL PROTECTED] >>Sent: Sunday, September 22, 2002 12:28 PM >>Subject: [Tapestry-developer] Unable to validate Forms >> >> >> >> >>Did something drastic chaged between 2.1 and 2.2 in the way Tapestry does >>form >>validation? >> >>I'm banging my head against the wall with this one. Is it >>now necessary to have a Shell component on a page to make >>the validation work? It wasn't necessary before. >> >>I send 3 files in attachement (EditAccount.page, >>EditAccount.html and EditAccount.java). Can someone tell me >>what I'm doing wrong? >> >>Thanks in advance, >> >>Luis Neves >> >>The error: >> >>net.sf.tapestry.RequestCycleException >> >>component: petshop.presentation.code.EditAccount@1f99eea[EditAccount] >> >>java.lang.NullPointerException >> >>Stack Trace: >>net.sf.tapestry.valid.BaseValidator.processValidatorScript(BaseValidato >>r.jav >>a:269) >>net.sf.tapestry.valid.StringValidator.renderValidatorContribution(Strin >>gVali >>dator.java:178) >>net.sf.tapestry.valid.ValidField.beforeCloseTag(ValidField.java:211) >>net.sf.tapestry.form.AbstractTextField.renderComponent(AbstractTextFiel >>d.jav >>a:122) >>net.sf.tapestry.valid.ValidField.renderComponent(ValidField.java:186) >>net.sf.tapestry.AbstractComponent.render(AbstractComponent.java:891) >>net.sf.tapestry.AbstractComponent.renderBody(AbstractComponent.java:665 ) >>net.sf.tapestry.form.Form.renderComponent(Form.java:325) >>net.sf.tapestry.AbstractComponent.render(AbstractComponent.java:891) >>net.sf.tapestry.BaseComponent.renderComponent(BaseComponent.java:460) >>net.sf.tapestry.AbstractComponent.render(AbstractComponent.java:891) >>net.sf.tapestry.AbstractPage.renderPage(AbstractPage.java:303) >>net.sf.tapestry.engine.RequestCycle.renderPage(RequestCycle.java:413) >>net.sf.tapestry.engine.AbstractEngine.renderResponse(AbstractEngine.jav >>a:621 >>) >>net.sf.tapestry.engine.DirectService.service(DirectService.java:156) >>net.sf.tapestry.engine.AbstractEngine.service(AbstractEngine.java:746) >>net.sf.tapestry.ApplicationServlet.doService(ApplicationServlet.java:17 5) >>net.sf.tapestry.ApplicationServlet.doGet(ApplicationServlet.java:144) >>javax.servlet.http.HttpServlet.service(HttpServlet.java:126) >>javax.servlet.http.HttpServlet.service(HttpServlet.java:103) >>com.caucho.server.http.FilterChainServlet.doFilter(FilterChainServlet.j >>ava:9 >>6) >>com.caucho.http.filter.GzipFilter.doFilter(GzipFilter.java:104) >>com.caucho.server.http.FilterChainFilter.doFilter(FilterChainFilter.jav >>a:88) >>com.caucho.server.http.Invocation.service(Invocation.java:312) >>com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:221) >>com.caucho.server.http.HttpRequest.handleConnection(HttpRequest.java:16 3) >>com.caucho.server.TcpConnection.run(TcpConnection.java:137) >>java.lang.Thread.run(Thread.java:536) >> >> >> >>------------------------------------------------------- >>This sf.net email is sponsored by:ThinkGeek >>Welcome to geek heaven. >>http://thinkgeek.com/sf >>_______________________________________________ >>Tapestry-developer mailing list >>[EMAIL PROTECTED] >>https://lists.sourceforge.net/lists/listinfo/tapestry-developer >> > > > >------------------------------------------------------- >This sf.net email is sponsored by:ThinkGeek >Welcome to geek heaven. >http://thinkgeek.com/sf >_______________________________________________ >Tapestry-developer mailing list >[EMAIL PROTECTED] >https://lists.sourceforge.net/lists/listinfo/tapestry-developer _________________________________________________________________ Join the world�s largest e-mail service with MSN Hotmail. http://www.hotmail.com ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Tapestry-developer mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/tapestry-developer
