Hi everybody,
AFAIK it is not possible to have a variable nice URL for a page without
using PageParameters, right?
If I am right: shouldn't it be possible?
Perhaps I'm missing the point or not knowing the internals good enough
(probably both ;-), but what I imagine is to map parts of the URL to
properties of the Page (or Models).
Why? I want to have pretty URLs, but I feel that not *every* view option
should be carried around through PageParameters, for this reason, I am
currently constructing a new page with every request (just for the URL's
sake) with the param I want to see in the URL + having the page's state
(view options - which shall not appear in the URL) saved to the session.
Example: I think it would be cool to be able to do something like this:
FriendListPage page = new FriendListPage();
page.setUser("myUsername");
page.setSorting("asc");
response.setRedirect(page);
and have a resulting URL like
/user/myUsername
while the sorting is not stored in the URL.
and later (on the page itself - when the user wants to switch sorting):
FriendlyPage.this.setSorting("desc");
setResponsePage(FriendlyPage.this);
Would that be feasible?
If there's another way to do it, I would be happy if someone could point it
out to me...
Thanks a lot :)
--
View this message in context:
http://www.nabble.com/Pretty-URLs-depending-on-a-Page%27s-state-%28not-params%29-tp18957325p18957325.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]