Hi Sebastiaan, Can't wait to see what you come-up with after the weekend full of grunt work, i have just posted a few design pointers, in case they make any sense to you. I have not yet opened the PageNavigation.java file but I will shortly if an acceptable solution does not surface timely, I don't see a technical challenge here, it is just a matter of putting in some sweat.
Thanks.. Sebastiaan van Erk wrote: > > I have exactly the same issue, and was thinking of writing a special > PageNavigation to do the job for me. Many times the only relevant state > is the page number (and possibly the filter used). > > The use case (which I think occurs very often) is a list of comments in > a guestbook or blog, or the list of products in shop, etc... The list > will change only very infrequently (item added or removed, in the case > of blogs, possibly only at the end). Users however want to paste links > to each other via IM, and they certainly don't want the page to expire > on them (prev on a guestbook page suddenly says Page Expired? - users > won't understand, and personally I'd think it's a poor implementation if > that happened to me). > > The current PageNavigation does not seem very easy to modify > unfortunately. Overriding it to return other links is a possible, but I > saw lots of logic in the default links (PagingNavigationLink and > PaginagNavigationIncrementLink) it returns (which are subclasses of > Link). If you want to make them subclasses of BookMarkablePageLink then > you have to copy paste a lot of functionality. :-( > > Anyway, I'll be looking into this probably this weekend, and if I get > something working I'll post it to the list. Any suggestions as to the > best approach are welcome though. :-) > > Regards, > Sebastiaan > > Johan Karlberg wrote: >> The page versions will not be bookmarkable since they rely on serverside >> state that obviosuly cannot be retained forever, nor shared with another >> session. To make a basepage boomarkable, make our navigation links >> bookmarkable. (there is a BookmarkableLink in the API), if you want >> pages with state to be bookmarkable, the relevant state needs to be >> encoded in the URL and passed with PageParameters I believe. >> >> Johan >> >> chickabee wrote: >>> Yes, Now the urls are like: >>> https://lilo:8443/whisky/app/plist/.1.2 >>> https://lilo:8443/whisky/app/plist/.1.3 ...etc...these are much >>> better than >>> earlier. thx. >>> >>> However, they are not bookmarkable, if I start the new browser and >>> point the >>> folloing url: >>> https://lilo:8443/whisky/app/plist/.1.3 >>> >>> It always takes me to the first page, How do i make these navigated >>> urls bookmarkable as well? >>> >>> thanks, >>> >>> >>> Johan Karlberg wrote: >>>> In your application class's init method, mount the page with an >>>> appropriate URL strategy. I have mounts like these in my current code. >>>> >>>> mount(new HybridUrlCodingStrategy("/plist", PlistPage.class)); >>>> >>>> Johan >>>> >>>> chickabee wrote: >>>>> I have the nice url: >>>>> https://lilo:8443/whisky/app/plist/ >>>>> >>>>> When I go to the next page using the page navigator then the url >>>>> becomes: >>>>> https://lilo:8443/whisky/app/?wicket:interface=:16:1::: >>>>> >>>>> When I go to next page again then the url becomes: >>>>> https://lilo:8443/whisky/app/?wicket:interface=:16:2::: >>>>> >>>>> How do I make these Page Navigated Urls Nicer, for example: >>>>> https://lilo:8443/whisky/app/plist/page/1 >>>>> https://lilo:8443/whisky/app/plist/page/2 >>>>> >>>>> Any pointer in right direction is appreciated, Thanks in advance. >>>> --------------------------------------------------------------------- >>>> 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] >> > > > -- View this message in context: http://www.nabble.com/PageNavigator-Vs-Nice-Url-tf4421682.html#a12613803 Sent from the Wicket - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
