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

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


!DSPAM:49d1654f323021219918801!




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



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 null */

getMarkupSettings().setDefaultBeforeDisabledLink(null);
getMarkupSettings().setDefaultAfterDisabledLink(null);



cheers,
Steve

On 31/03/2009, at 1:39 AM, Gabriel Bucher wrote:


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
-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org
!DSPAM:49d1654f323021219918801!



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





smime.p7s
Description: S/MIME cryptographic signature


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

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



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 approach?


Thanks, Jason

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




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