Feature Requests item #1483158, was opened at 2006-05-06 22:50
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=684978&aid=1483158&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: None
Group: 1.2
Status: Open
Priority: 5
Submitted By: Benjamin Hawkes-Lewis (webben)
Assigned to: Nobody/Anonymous (nobody)
Summary: Bookmarkable URLs with parameters in a query string
Initial Comment:
It should be possible for Wicket to make "bookmarkable"
links that store parameters in the traditional query
string rather than trying to shoehorn complex
parameters into the hierarchy of the URL path.
The way to accomplish this with the least alteration to
the existing codebase is to subclass
BookmarkableRequestTargetUrlCodingStrategy with a
QueryStringRequestTargetUrlCodingStrategy which handles
appending and decoding the query parameters. This
would allow developers to continue to use the
BookmarkableLink class to insert links, and specify how
they wish parameters to be formatted at mount time.
This example demonstrates how a path could be mounted
with QueryStringRequestTargetUrlCodingStrategy within
the init method of a class implementing WebApplication:
mount("/admin/productmanagement", new
QueryStringRequestTargetUrlCodingStrategy("/admin/productmanagement",
admin.ProductManagement.class));
I've attached
QueryStringRequestTargetUrlCodingStrategy.java, which
includes Javadocs. It should be possible to drop this
into the existing Wicket 1.2-rc3 source and it should
"just work" (fingers crossed).
In the fullness of time, it would be good to add a
convenience method in WebApplication analogous to the
current mountBookmarkablePage method, but for mounting
query string-type URLs, so that the mount path does not
have to be typed out twice as in my example above.
Please note that URLs with query strings are every bit
as "bookmarkable" as URLs with parameters jammed into
the hierarchical path. Their major disadvantage is that
they are less search engine-friendly, but indexability
is not always a priority.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=684978&aid=1483158&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