Re: Display PDF in new tab

2017-02-27 Thread Martin Grigorov
Hi, Also see ResourceLink and DownloadLink components. Since you want to show the file in the browser you will have to set the Content-Disposition response header to 'INLINE'. You talk about form submit, so you may need to use (Ajax)SubmitLink with target="_blank" on its or a Button but then the

Re: Display PDF in new tab

2017-02-27 Thread Ernesto Reinaldo Barreiro
if your link point to the generated resource e.g. /resources/mypdf?id= and you add target="_blank" that should be do it. See http://wicketinaction.com/2011/07/wicket-1-5-mounting-resources/ On Mon, Feb 27, 2017 at 9:56 PM, SeldonCrisis wrote: > Hey guys, I'm pretty new to Wicket and need

Display PDF in new tab

2017-02-27 Thread SeldonCrisis
Hey guys, I'm pretty new to Wicket and need some help. I've read through the forums and found this question answered twice, but I'm still confused. I want to display a PDF in a new tab after having clicked a button (in the onSubmit event). How do I go about doing this? So far I understand that I mu