Re: Ajax and Validation

2013-11-01 Thread Dmitry Gusev
I know this thread is too old, but I still have this same issue in T5.3.7. Since @PageDetached is no longer works, here is how I managed to fix this for my form: @Inject private Heartbeat heartbeat; public void onSubmit() { if (request.isXHR()) { //

Re: Ajax and Validation

2011-06-13 Thread Kartweel
It still gave me issues when submitting a form with an error then submitting it valid, then it would bring up the old values and clobber the real values (after saving I default back to different data in the form). So I ammended it to @PageDetached void clearValidationTracker() {

Re: Ajax and Validation

2011-06-13 Thread Kartweel
Hi, I've had major issues with this because the ValidationTracker also reloads old field values which in a non-ajax scenario is great, but in an ajax scenario has caused it to clobber the proper field values. It has caused many headaches and I think it really should be handled [better] by default

Re: Ajax and Validation

2010-12-22 Thread raulmt
Thiago, I'm not saying to change the behaviour of the flash persistence. What I mean is to change the way the Form uses this. For example, the Form could have two properties: one with @Persist(PersistenceConstants.FLASH) and one without it, and access the correct one through a private method. If t

Re: Ajax and Validation

2010-12-21 Thread Thiago H. de Paula Figueiredo
Changing the current behavior of the flash persistence can lead to many hard-to-detect backward compatibility problems. I think a good solution for this specific scenario is to set the message property to null in a @PageDetached method. Maybe a better solution is to create other persistence

Re: Ajax and Validation

2010-12-21 Thread raulmt
Today I found the same problem: persist flash doesn't behave well for an Ajax request, because the error can be shown two times if you refresh the page (first one with the form ajax response and second one if you refresh the page). Maybe when processing the request, if it is an Ajax request, the v

Re: Ajax and Validation

2009-09-01 Thread Michael Gentry
Hi Geoffrey (and others), Did you ever figure out a workaround for this issue? I have: ... Enter E-mail Address And when I record e-mail address problems in the form, the t:errors never renders (unless I reload the page as you said). At this point, I'll eith

Re: Ajax and Validation

2009-04-22 Thread Geoffrey Wiseman
On Wed, Apr 22, 2009 at 7:04 PM, Joost Schouten (mailing lists) < joost...@jsportal.com> wrote: > On Thu, Apr 23, 2009 at 8:38 AM, Geoffrey Wiseman > wrote: > > I wasn't sure if Tapestry did any magic under the covers to work with > > server-side validation and ajax form submits. I did a quick e

Re: Ajax and Validation

2009-04-22 Thread Joost Schouten (mailing lists)
On Thu, Apr 23, 2009 at 8:38 AM, Geoffrey Wiseman wrote: > I wasn't sure if Tapestry did any magic under the covers to work with > server-side validation and ajax form submits.  I did a quick experiment and > it doesn't seem to: > >   - Create a form, give it a zone to do ajax submit. >   - Create