You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Jason Novotny <no...@gridsphere.org> on 2009/03/31 02:34:47 UTC
how to display a BookmarkableLink so it can't be clicked
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-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: how to display a BookmarkableLink so it can't be clicked
Posted by David Leangen <wi...@leangen.net>.
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-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 display a BookmarkableLink so it can't be clicked
Posted by Stephen Swinsburg <s....@lancaster.ac.uk>.
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-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>> !DSPAM:49d1654f323021219918801!
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
Re: how to display a BookmarkableLink so it can't be clicked
Posted by Gabriel Bucher <ga...@razor.ch>.
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-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
> !DSPAM:49d1654f323021219918801!
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: how to display a BookmarkableLink so it can't be clicked
Posted by Anton Veretennikov <an...@gmail.com>.
Are you speaking about href value as a "link text"?
On Tue, Mar 31, 2009 at 8:41 AM, Igor Vaynberg <ig...@gmail.com> wrote:
> override isenabled
>
> -igor
>
> On Mon, Mar 30, 2009 at 5:34 PM, Jason Novotny <no...@gridsphere.org> 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-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
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: how to display a BookmarkableLink so it can't be clicked
Posted by Igor Vaynberg <ig...@gmail.com>.
override isenabled
-igor
On Mon, Mar 30, 2009 at 5:34 PM, Jason Novotny <no...@gridsphere.org> 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-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