Re: Input Stream DownloadLink

2016-01-05 Thread Martin Grigorov
Hi, Thanks for sharing your component with us! In the "about" section you use LoadableDetachableModel that returns InputStream. For single use this would work fine, but if you try to use this model second time in the same request then it may fail depending on the type of the InputStream because y

Re: Input Stream DownloadLink

2016-01-05 Thread Štefan Šimík
Hi Martin, I found it very useful and really appreciate you contribution. I think it is definitely worth of effort, if something very similar does not already exist in wicket distribution. In that case, it would be great source of inspiration for new pull-request into wicket. Simple, short and cle

Input Stream DownloadLink

2016-01-05 Thread Martin Spielmann
Hello all, I just published a small version of a download link which enables you to serve any data coming from an InputStream for download. https://github.com/pingunaut/wicket-stream-download-example I used that one in multiple projects now, so I thought it could be interesting for other peopl

Re: Response already commited - Wicket or server?

2016-01-05 Thread Martin Grigorov
Hi, This exception means that before the redirect there was a ServletWebResponse#write(byte[]) or ServletWebResponse#write(CharSequence) to the servlet response. Either put breakpoints in these methods or override them to add some logging to see what happens. Martin Grigorov Wicket Training and C

Response already commited - Wicket or server?

2016-01-05 Thread niestroj
Hi, i have a problem on one client. The problem is weird. I'm getting an exception like the below *java.lang.IllegalStateException: UT010019: Response already commited* when downloading an Excel file generated by a model in a DownloadLink. But not all Excel files trigger this Exception. Only those