Re: how to display a BookmarkableLink so it can't be clicked

2009-03-31 Thread Gabriel Bucher
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

Re: how to display a BookmarkableLink so it can't be clicked

2009-03-31 Thread Stephen Swinsburg
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

how to display a BookmarkableLink so it can't be clicked

2009-03-30 Thread Jason Novotny
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

Re: how to display a BookmarkableLink so it can't be clicked

2009-03-30 Thread David Leangen
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