You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Karl-Heinz Golz <ka...@t-online.de> on 2013/03/28 16:44:55 UTC
how to log an External Link
hello,
I need a link to outside of my wicket application and I'am using an
ExternalLink for that. That works well.
Now I would like to write a log message when a user clicks on that link.
Their is no onClick() and I can't figure out, how to achieve that.
Suggestions are very welcome.
Thanks in advance
Karl
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: how to log an External Link
Posted by Karl-Heinz Golz <ka...@t-online.de>.
Hi Dan,
many thanks, works well.
/Karl
Am 28.03.2013 16:48, schrieb Dan Retzlaff:
> An external link by definition does not make a request to your Wicket
> application. The user simply bounces off to the given URL. Consider using a
> normal Link, and throwing RedirectToUrlException in its onClick.
>
> On Thu, Mar 28, 2013 at 9:44 AM, Karl-Heinz Golz <
> karl-heinz.golz@t-online.de> wrote:
>
>> hello,
>>
>> I need a link to outside of my wicket application and I'am using an
>> ExternalLink for that. That works well.
>>
>> Now I would like to write a log message when a user clicks on that link.
>> Their is no onClick() and I can't figure out, how to achieve that.
>>
>> Suggestions are very welcome.
>>
>> Thanks in advance
>> Karl
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: how to log an External Link
Posted by Dan Retzlaff <dr...@gmail.com>.
An external link by definition does not make a request to your Wicket
application. The user simply bounces off to the given URL. Consider using a
normal Link, and throwing RedirectToUrlException in its onClick.
On Thu, Mar 28, 2013 at 9:44 AM, Karl-Heinz Golz <
karl-heinz.golz@t-online.de> wrote:
> hello,
>
> I need a link to outside of my wicket application and I'am using an
> ExternalLink for that. That works well.
>
> Now I would like to write a log message when a user clicks on that link.
> Their is no onClick() and I can't figure out, how to achieve that.
>
> Suggestions are very welcome.
>
> Thanks in advance
> Karl
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>