Re: What replaces Wicket 1.4 AbortException in Wicket 6.x?

2012-11-19 Thread Kees van Dieren
Found the solution for it. Basically it comes to this: On the place where binary content needs to be returned, use something like this: @Override protected void onSubmit() { throw new ReplaceHandlerException(new IRequestHandler() { @Override public void re

Re: What replaces Wicket 1.4 AbortException in Wicket 6.x?

2012-11-19 Thread Kees van Dieren
Found something that might help: org.apache.wicket.markup.html.link.DownloadLink.onClick() Will look at this, some tips still welcome :) 2012/11/19 Kees van Dieren > Hi, > > We have some code that returns zip output (e.g. downloads a file) in an > onsubmit of a wicket form. > > We used to do t

What replaces Wicket 1.4 AbortException in Wicket 6.x?

2012-11-19 Thread Kees van Dieren
Hi, We have some code that returns zip output (e.g. downloads a file) in an onsubmit of a wicket form. We used to do this (with Wicket 1.4): Get the WebResponse Fill it with the ZIP contents throw new AbortException(); The ZIP contents to be returned depends on the contents filled in by the us