Re: Cannot clear validation errors when form onSuccess returns a StreamResponse

2017-09-04 Thread Thiago H. de Paula Figueiredo
You could just have something like window.location = Pretty hacky, even working. On Mon, Sep 4, 2017 at 10:37 AM, Svein-Erik Løken wrote: > Just curious: How can you return javascript code? / Without > javaScriptSupport? > > > -- Thiago

RE: Cannot clear validation errors when form onSuccess returns a StreamResponse

2017-09-04 Thread Svein-Erik Løken
Just curious: How can you return javascript code? / Without javaScriptSupport?

Re: Cannot clear validation errors when form onSuccess returns a StreamResponse

2017-09-04 Thread Thiago H. de Paula Figueiredo
rn new AttachmentStreamResponse(stream, "TrackSegmentsExport.gpx"); > > > > > > > From: Thiago H de Paula Figueiredo [via Apache Tapestry Mailing List > Archives] [mailto:ml+s1045711n5733608...@n5.nabble.com] > Sent: mandag 4. september 2017 13:48 > To: Svein

RE: Cannot clear validation errors when form onSuccess returns a StreamResponse

2017-09-04 Thread Svein-Erik Løken
ream, "TrackSegmentsExport.gpx"); From: Thiago H de Paula Figueiredo [via Apache Tapestry Mailing List Archives] [mailto:ml+s1045711n5733608...@n5.nabble.com] Sent: mandag 4. september 2017 13:48 To: Svein-Erik Løken Subject: Re: Cannot clear validation errors when form onSuccess retu

Re: Cannot clear validation errors when form onSuccess returns a StreamResponse

2017-09-04 Thread Thiago H. de Paula Figueiredo
Hi! This is due to HTTP, not Tapestry itself: you cannot have two different responses to the same request. So, you either rerender the page to clear the errors (which calling form.clearErrors() is actually doing, even if you cannot see the results) or returns a binary download (StreamResponse), bu