You probably want to check out DownloadLink
http://people.apache.org/~tobrien/wicket/apidocs/org/apache/wicket/marku
p/html/link/DownloadLink.html


-Clay

-----Original Message-----
From: yadubi [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 27, 2007 3:14 AM
To: users@wicket.apache.org
Subject: What kind of link could I use?


Hi,

I have a following link which creates a pop-up window and shows the
content
of the referenced pdf in it
(anchors removed):
href="/generated/page_1.pdf" target="_blank">Page 1

However, I am unable to achieve the same result with Wicket. I use the
following code:
                
PopupSettings popupSettings = new PopupSettings();
popupSettings.setTarget( "/generated/page_1.pdf" );
   // popupSettings.setTarget( null );
Link myLink = new Link("theLink")
{
        @Override public void onClick() {
          //mothing to do
        }                       
};
myLink.setPopupSettings( popupSettings );
add( myLink );

In the html page, I have 'href="#" wicket:id="theLink">Page 1'.
When I click on the link, the code executes, but with no pop-up.
However,
when the target is set to null, at least a new window opens.

Thanks for suggestions.

-- 
View this message in context:
http://www.nabble.com/What-kind-of-link-could-I-use--tf4880340.html#a139
66504
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to