Why do you need a Link component for it if you are going to do nothing
on server side? Cant you just use WebMarkupContainer if you happen to
need generating JavaScipt on server side? E.g.
<a wicket:id="bla" href="javascript:void(0)" onclick="">Bla</a>
WebMarkupContainer bla = new WebMarkupContainer("bla")
bla.add(new AttributeModifier("onclick","Whatever JavaScript");
?
Regards,
Ernesto
On Wed, Dec 1, 2010 at 12:04 PM, Josh Kamau <[email protected]> wrote:
> Hello there;
>
> I would like to create a wicket link (it has a client side and a serverside
> component) that only executes a javascript code but never sends any requests
> to the server, is it possible. Am thinking of
> adding a javascript function that returns false , and on serverside
> implementation, i just put nothing to be executed. It smells like a hack
> though. Is there a way of doing this? hope the question is clear .
>
> Regards.
> Josh.
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]