use .setEnabled(false)
cheers
gabriel
Jason Novotny wrote:
Hi,
I have a case where if some condition is met I don't want a link to be
clickable... but I want it to display the link text (so overriding
isVisible() is not an option). Any ideas on the most elegant approach?
Thanks, Jason
As suggested, you need .setEnabled(false) to disable your link.
This will add em tags around the link though, so if you don't want
this, or want a different tag, do this in your Application.class
/* a component that is disabled by Wicket will normally have em
surrounding it. This makes it
Hi,
I have a case where if some condition is met I don't want a link to be
clickable... but I want it to display the link text (so overriding
isVisible() is not an option). Any ideas on the most elegant approach?
Thanks, Jason
isEnabled()
Cheers,
=David
On Mar 31, 2009, at 9:34 AM, Jason Novotny wrote:
Hi,
I have a case where if some condition is met I don't want a link to
be clickable... but I want it to display the link text (so
overriding isVisible() is not an option). Any ideas on the most
elegant