You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by rsi610 <ra...@lntinfotech.com> on 2014/07/17 10:01:33 UTC

Use
I have a link having text Like 

" Do this Do that . Click here to open pdf "

Out of this i need 'Click here" to be a href , on click of which opens a new
wicket page .


Can someone help me with this ? 


--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Use-a-href-onclick-to-open-a-new-wicket-page-tp4666635.html
Sent from the Users forum mailing list archive at Nabble.com.

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


Re: Use Posted by Martin Grigorov <mg...@apache.org>.
<span>Do this Do that . Click <a wicket:id="theLink">here</a> to open
pdf</span>

in Java:
ResourceLink theLink = new ResourceLink("theLink", new
ByteArrayResource(pdfAsBytes));

This is Wicket 1.5+.
You will have to find out how ResourceLink works in 1.3.5.

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov


On Thu, Jul 17, 2014 at 11:01 AM, rsi610 <ra...@lntinfotech.com> wrote:

> I have a link having text Like
>
> " Do this Do that . Click here to open pdf "
>
> Out of this i need 'Click here" to be a href , on click of which opens a
> new
> wicket page .
>
>
> Can someone help me with this ?
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Use-a-href-onclick-to-open-a-new-wicket-page-tp4666635.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>