Disable LinkTree iconLink

2009-07-28 Thread Seven Corners
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

2009-07-28 Thread Matej Knopp
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 Cornersseven.cor...@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-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org