Hi Martin,

thanks - if the click is on a DIV element instead of a link, how can I add to 
the response a JS that the response should be opened in a new window? 

Chris

> Am 03.05.2015 um 21:15 schrieb Martin Grigorov <mgrigo...@apache.org>:
> 
> Hi,
> 
> Add target="_blank" in the HTML.
> In Java make sure you use ContentDisposition=INLINE.
> 
> Martin Grigorov
> Wicket Training and Consulting
> https://twitter.com/mtgrigorov
> 
> On Sun, May 3, 2015 at 2:42 PM, Chris <chris...@gmx.at> wrote:
> 
>> Hi all,
>> 
>> How is it possible to add a tag target=_blank to a resource link serving a
>> pdf so that a click on this resource link opens a new browser window?
>> Following code does not work:l ink.add(new AttributeAppender("onclick",
>> new Model("alert('This is my JS script');"), ";"));
>> 
>> Thanks Chris
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>> 
>> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to