You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Seven Corners <se...@gmail.com> on 2009/07/28 19:40:25 UTC

Disable LinkTree iconLink

I have a LinkTree wherein I need to disable the links on certain nodes.  It
was easy to disable the contentLink but I haven't been able to figure out
how to disable the iconLink.  My links are BookmarkablePageLinks, but
iconLink is not a proper link; rather it appears that it's a <td> element
with an onclick handler, that contains an <img> element that has no
surrounding anchor or onclick handlers.  While nothing happens on my
disabled icons when you click the mouse, the mouse still transforms into a
link mouse (a hand instead of a pointer), and I'd like to prevent that.

Short of cheating and tweaking the style to set the pointer, I don't know
how to really disable the thing.

Any ideas?

Re: Disable LinkTree iconLink

Posted by Matej Knopp <ma...@gmail.com>.
Both links are created in LinkIconPanel. You can subclass it or
replace it by your own class (it's really a tiny class) and disable
the links there.

-Matej

On Tue, Jul 28, 2009 at 7:40 PM, Seven Corners<se...@gmail.com> wrote:
> I have a LinkTree wherein I need to disable the links on certain nodes.  It
> was easy to disable the contentLink but I haven't been able to figure out
> how to disable the iconLink.  My links are BookmarkablePageLinks, but
> iconLink is not a proper link; rather it appears that it's a <td> element
> with an onclick handler, that contains an <img> element that has no
> surrounding anchor or onclick handlers.  While nothing happens on my
> disabled icons when you click the mouse, the mouse still transforms into a
> link mouse (a hand instead of a pointer), and I'd like to prevent that.
>
> Short of cheating and tweaking the style to set the pointer, I don't know
> how to really disable the thing.
>
> Any ideas?
>

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