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
Just curious: How can you return javascript code? / Without javaScriptSupport?
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
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
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