Re: How to append an # anchor to an href?

2011-02-04 Thread norckon

Hi,

I'm having the exact same problem; I want an #anchor added to the URL my
Link generates, but after clicking the Link, the user is redirected to the
mount URL (with version number, '/mypage.0.2'), loosing the anchor.

Since this topic is last replied to in 2007, are there any new solutions for
this problem? My application uses the ONE_PASS_RENDER strategy and
link.setRedirect(false) doesn't help.

Thanks,
Pepijn
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-append-an-anchor-to-an-href-tp1845378p3260138.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: How to append an # anchor to an href?

2007-08-02 Thread Jesse Barnum
That is definitely on the right track - overriding appendAnchor does  
successfully add the #myAnchor suffix to the Link URL. However, I am  
realizing that clicking on the link is doing an immediate redirect to  
another page.


Here is the URL from page1, with the #ScreenCapture link successfully  
added:


http://localhost:8080/ScriptMaster/sm? 
wicket:interface=wicket-1:1:up::ILinkListener#ScreenCapture


Clicking on it takes me to that URL, but does an immediate redirect  
to this URL:


http://localhost:8080/ScriptMaster/sm?wicket:interface=wicket-1:2::

This discards the named anchor. Is this normal behavior? What can I  
do about this?


--Jesse Barnum, President, 360Works
http://www.360works.com
(770) 234-9293


On Aug 2, 2007, at 12:20 AM, Eelco Hillenius wrote:




You can override Link#appendAnchor. Also, note that href=#myAnchor
automatically gets picked up and appended to the URL.

Eelco

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]