Bugs item #1488156, was opened at 2006-05-14 00:04
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=684975&aid=1488156&group_id=119783

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: core
Group: 1.2
Status: Open
Resolution: None
Priority: 5
Submitted By: sakiss (sakiss)
Assigned to: Nobody/Anonymous (nobody)
Summary: Wrong relative urls on bookmarkable page in next version

Initial Comment:
When the bookmarkable page is displayed first time, the
 urls from html templates are relative to the page
mount path. 
(eg mount path /app/menu means href="../images" points
to /contextPath/images).
But the urls generated for wicket links pointing to the
same page contain only contextPath, thus the relative
url from html template points to different location
than in first version ! (eg href="../images" now points
to /images.

The solution is that
BookmarkablePageRequestTargetUrlCodingStrategy must
match not only IBookmarkablePageRequestTarget, but even 
IListenerInterfaceRequestTarget and properly encode it.
Decoding currently works.

saki

PS: I hope I did not mess up the explanation to much.
Attached is
BookmarkablePageRequestTargetUrlCodingStrategy which
works for me... Handling of
IListenerInterfaceRequestTarget encoding is copied from
WebRequestCodingStrategy        public final String
encode(final RequestCycle requestCycle, final
IRequestTarget requestTarget). Some refactoring is
needed ...


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=684975&aid=1488156&group_id=119783


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-develop

Reply via email to