I think it will be easily achievable by adding one more constructor to
PageNavigator which can take the starting page param:

Exising:
add(new PagingNavigator("navigator", gridView));

Proposed:
add(new PagingNavigator("navigator", gridView, startPage));

This startPage can be extracted from PageParameters. If the startPage is
null then start form the beginning otherwise set the start page to this
values in the PageNavigator.

Above,  in conjuction with a new PageNavigatorUrlCodingStrategy which can
convert session page ids  into to universally bookmarkable page ids will
provide the desired solution. 

Anyone more thoughts??



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#a12613697
Sent from the Wicket - User mailing list archive at Nabble.com.


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

Reply via email to