Actually I meant to suggest that your response go ahead and render the
previous BreadcrumbPanel, and include JavaScript that HTTP redirects the
user to your resource (essentially "window.location=<resource URL>"). The
UX is different than you describe since the user will be looking at the
previous panel during the download.

The problem is that without a solution like AJAX polling, AFAIK there's no
way to monitor download progress from your webpage, and hence trigger the
redirect after it completes. The download happens in total isolation from
your page's JavaScript environment.

Dan

On Wed, Mar 21, 2012 at 5:42 PM, jchappelle <[email protected]> wrote:

> When you say "Can you initiate the download *after* your redirect?" I'm
> guessing you mean this:
>
> List<IBreadCrumbParticipant> participants =
> crumbModel.allBreadCrumbParticipants();
> crumbModel.setActive(participants.get(participants.size() - 2));
> getRequestCycle().scheduleRequestHandlerAfterCurrent(target);
>
> I have tried this and it doesn't work either.
>
> The ajax idea is a good idea although I would use that as a last resort. I
> was hoping that their was a cleaner way that doesn't generate a lot of
> traffic to the server. I wonder if I could create an IRequestHandler that
> holds a reference to two other IRequestHandlers. The first being the
> streaming zip file, the second being one that updates the breadcrumb model
> and refreshes via ajax. I don't know exactly how to implement that second
> one though.
>
> Thanks for the help.
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Streaming-a-zip-file-then-going-back-to-previous-BreadCrumbPanel-tp4493168p4494225.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to