You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by chickabee <ja...@gmail.com> on 2007/09/11 12:38:43 UTC
PageNavigator Vs Nice Url
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.
--
View this message in context: http://www.nabble.com/PageNavigator-Vs-Nice-Url-tf4421682.html#a12611952
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: PageNavigator Vs Nice Url
Posted by "C. Bergström" <cb...@netsyncro.com>.
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?
Something is getting mixed up here, but the eventual answer is you
probably want to look into pageparameters
./C
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: PageNavigator Vs Nice Url
Posted by chickabee <ja...@gmail.com>.
>I like the simple "just set the start page" idea. However why would need
>a special coding strategy? You have to already retrieve the page number
>manually from the params in your example, so why not just modify
>PagingNavigator to make bookmarkable page links.
Yes, I agree on that, You are right that the PageNavigator can itself
create the navigable urls.
Thanks....
Sebastiaan van Erk wrote:
>
> Hi,
>
> chickabee wrote:
>> 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??
>
> I like the simple "just set the start page" idea. However why would need
> a special coding strategy? You have to already retrieve the page number
> manually from the params in your example, so why not just modify
> PagingNavigator to make bookmarkable page links.
>
> Then you just use the standard bookmarkable page if you want pretty
> urls, though I'd personally use the HybridUrlCodingStrategy to use the
> session page if it can be found, and otherwise reconstruct the page to a
> good approximation using the page parameters...
>
> 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: users-unsubscribe@wicket.apache.org
>>>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>>>
>>>>>
>>>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>
>>>
>>>
>>
>
>
>
--
View this message in context: http://www.nabble.com/PageNavigator-Vs-Nice-Url-tf4421682.html#a12614975
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: PageNavigator Vs Nice Url
Posted by Sebastiaan van Erk <se...@sebster.com>.
Hi,
chickabee wrote:
> 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??
I like the simple "just set the start page" idea. However why would need
a special coding strategy? You have to already retrieve the page number
manually from the params in your example, so why not just modify
PagingNavigator to make bookmarkable page links.
Then you just use the standard bookmarkable page if you want pretty
urls, though I'd personally use the HybridUrlCodingStrategy to use the
session page if it can be found, and otherwise reconstruct the page to a
good approximation using the page parameters...
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: users-unsubscribe@wicket.apache.org
>>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>>
>>>>
>>>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>>
>
Re: PageNavigator Vs Nice Url
Posted by chickabee <ja...@gmail.com>.
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: users-unsubscribe@wicket.apache.org
>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>
>>>
>>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
>
--
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: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: PageNavigator Vs Nice Url
Posted by chickabee <ja...@gmail.com>.
>Besides, the paging navigator itself is quite non-interesting to
>bookmark. How often have you bookmarked a page from a search result in
>google? Why is it important to be able to bookmark page 21 of your
>product catalogue? How will that help if the sorting changes? Or if 20
>new products are added to your catalogue?
Agreed that this is not the absolute requirement but it is a nice to have
feature. And under some situations this is a must have feature, <use
case>Think you want to send the page no 230 of a catalog website to your
friend over IM, what he gets is the link to the first page and then let him
sweat while clicking to navigate to the page 230, won't it be nicer if he
gets page 230 as soon as he clicks the link.</use case>
If this navigation link is good for a day that justifies this feature in
wicket. All urls will expire eventually.
There may be more reasons to have this feature, perhaps...
Martijn Dashorst wrote:
>
> When you embark on your bookmarkable paging navigator remember that
> you have to take into account 2 or 3 navigators on a page, how do you
> keep them apart? Or how do you encode sorting? URL state is a really
> tricky thing.
>
> Besides, the paging navigator itself is quite non-interesting to
> bookmark. How often have you bookmarked a page from a search result in
> google? Why is it important to be able to bookmark page 21 of your
> product catalogue? How will that help if the sorting changes? Or if 20
> new products are added to your catalogue?
>
> Make sure the results in your listview are bookmarkable.
>
> Martijn
>
> On 9/11/07, Sebastiaan van Erk <se...@sebster.com> 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: users-unsubscribe@wicket.apache.org
>> >>> For additional commands, e-mail: users-help@wicket.apache.org
>> >>>
>> >>>
>> >>>
>> >>
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> > For additional commands, e-mail: users-help@wicket.apache.org
>> >
>>
>>
>
>
> --
> Buy Wicket in Action: http://manning.com/dashorst
> Apache Wicket 1.3.0-beta3 is released
> Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta3/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/PageNavigator-Vs-Nice-Url-tf4421682.html#a12614666
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: PageNavigator Vs Nice Url
Posted by Sebastiaan van Erk <se...@sebster.com>.
Hi Martijn,
Thanks for the tips.
Martijn Dashorst wrote:
> When you embark on your bookmarkable paging navigator remember that
> you have to take into account 2 or 3 navigators on a page, how do you
> keep them apart? Or how do you encode sorting? URL state is a really
> tricky thing.
This is indeed the trickiest part of the whole endeavor. There will need
to be a way to specify which state is relevant and how to map it to
parameters. It's not that difficult though: generally the method
parameters passed to the DAO to retrieve the list are all that is
necessary to recreate the list (albeit not exactly).
> Besides, the paging navigator itself is quite non-interesting to
> bookmark. How often have you bookmarked a page from a search result in
> google? Why is it important to be able to bookmark page 21 of your
> product catalogue? How will that help if the sorting changes? Or if 20
> new products are added to your catalogue?
Well I agree with you that it's totally uninteresting to bookmark
(though in your WIA book you use a bookmark to the second page of the
google search results for wicket yourself ;-)))).
But bookmarking the page is totally beside the point. There are 2 issues
that I want to address:
1) being able to communicate the link to a friend ("hey look at this!")
2) not having pages expire when they don't have to ("I just went to have
lunch, then went to the next page of comments, and the site crashed!").
In many cases it is justified to have a page expire, but in many cases I
think it's more important that the page "just works" than to be able to
reproduce exactly the correct page again. (In fact, in many cases this
trade-off is already made anyway, because even WITHIN the session if you
go to the next page it may be different than expected due the 20 new
products in the catalogue).
> Make sure the results in your listview are bookmarkable.
I don't quite understand what you mean here. For example, in a
guestbook, you want the individual comments to be bookmarkable? That is
certainly a good idea, but are you suggesting that it then jumps to
whatever page contains that comment, or that I create a special "single
comment" page to view it? Because the latter would have little to do
with a paging navigation component, it would be part of the item markup.
Kind regards,
Sebastiaan
>
> Martijn
>
> On 9/11/07, Sebastiaan van Erk <se...@sebster.com> 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: users-unsubscribe@wicket.apache.org
>>>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>>>
>>>>>
>>>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>
>>
>
>
Re: PageNavigator Vs Nice Url
Posted by Rüdiger Schulz <ru...@googlemail.com>.
2007/9/11, Martijn Dashorst <ma...@gmail.com>:
>
> Besides, the paging navigator itself is quite non-interesting to
> bookmark. How often have you bookmarked a page from a search result in
> google? Why is it important to be able to bookmark page 21 of your
> product catalogue? How will that help if the sorting changes? Or if 20
> new products are added to your catalogue?
>
Being bookmarkable also means it can be indexed by the google bot. When
going through search results or sortable lists, that may exactly NOT what
you want to have.
But when you use a PagingNavigator just to go through a large DataView (like
a product catalog), it would be very nice to have a bookmarkable paging
component for that.
--
greetings from Berlin,
Rüdiger Schulz
www.2rue.de
Re: PageNavigator Vs Nice Url
Posted by Martijn Dashorst <ma...@gmail.com>.
When you embark on your bookmarkable paging navigator remember that
you have to take into account 2 or 3 navigators on a page, how do you
keep them apart? Or how do you encode sorting? URL state is a really
tricky thing.
Besides, the paging navigator itself is quite non-interesting to
bookmark. How often have you bookmarked a page from a search result in
google? Why is it important to be able to bookmark page 21 of your
product catalogue? How will that help if the sorting changes? Or if 20
new products are added to your catalogue?
Make sure the results in your listview are bookmarkable.
Martijn
On 9/11/07, Sebastiaan van Erk <se...@sebster.com> 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: users-unsubscribe@wicket.apache.org
> >>> For additional commands, e-mail: users-help@wicket.apache.org
> >>>
> >>>
> >>>
> >>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > For additional commands, e-mail: users-help@wicket.apache.org
> >
>
>
--
Buy Wicket in Action: http://manning.com/dashorst
Apache Wicket 1.3.0-beta3 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta3/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: PageNavigator Vs Nice Url
Posted by chickabee <ja...@gmail.com>.
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: users-unsubscribe@wicket.apache.org
>>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>>
>>>>
>>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>
>
>
--
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: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: PageNavigator Vs Nice Url
Posted by Sebastiaan van Erk <se...@sebster.com>.
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: users-unsubscribe@wicket.apache.org
>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>
>>>
>>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
Re: PageNavigator Vs Nice Url
Posted by Johan Karlberg <jo...@geardo.se>.
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: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: PageNavigator Vs Nice Url
Posted by chickabee <ja...@gmail.com>.
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: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/PageNavigator-Vs-Nice-Url-tf4421682.html#a12612664
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: PageNavigator Vs Nice Url
Posted by Johan Karlberg <jo...@geardo.se>.
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: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org