You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Pi Trash <pt...@web.de> on 2009/07/11 20:07:00 UTC

Link from inside of svg to an anchor in TabbedPanel

I am using Wicket 1.4 and the Adobe SVG Viewer Applet.

I have a TabbedPanel inside of a Panel inside a Page.

Inside of the TabbedPanel there is the SvgViewerApplet that displays my SVG-Image.

 

My URL is dynamic and looks something like this:

http://localhost:8082/?wicket:interface=:2:content:contentPanel:tabNavigationPanel:tabs-container:tabs:2:link::ILinkListener::

 

I want to link from inside my svg to an anchor in my TabbedPanel, the correct target-url have to be something like this:

 

http://localhost:8082/?wicket:interface=:2:content:contentPanel:tabNavigationPanel:tabs-container:tabs:2:link::ILinkListener::#id100

 

But when I click the link my browser opens this url:

 

http://localhost:8082/#id100

 

Potential solutions to this problem, I already thought about, are:

 

1.) Using JavaScript [ECMA-Script] inside of my SVG to read out the current, dynamic url and generate a dynamic url as link target.

Problem: My SVG-ECMAScript runs inside of an applet and doesn't have direct access to the browser-environment (At least I think so, correct me if I'm wrong).

 

2.) Persuade wicket to use Bookmarkable Links, so the Wicket-URL ends with an "/".

Problem: I am using tabs. I think that makes problems, because the URL-Mapping works only on pages?!

 

Do you have more, other ideas?

How would you solve this problem?

 

Thank you for your help!

________________________________________________________________
Neu: WEB.DE Doppel-FLAT mit Internet-Flatrate + Telefon-Flatrate
für nur 19,99 Euro/mtl.!* http://produkte.web.de/go/02/


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