Furthermore, any page you want to have indexable and bookmarkable should be bookmarkable pages anyway.
Using bookmarkable pages like that makes that you have a much less nice programming paradigm. It's almost like model 2 then. But without the XML files :) Eelco On 10/10/06, Matej Knopp <[EMAIL PROTECTED]> wrote: > Paging navigator is useful in situations, when you don't care that much > about url (e.g. intranet applications with complex user interface). > > For internet applications, where you do care (at least for certain > parts) about URLs, you have to make an effort to achieve the urls you need. > > The problem with bookmarkable urls is that every time you click on one, > new page instance is created. So if you have e.g. a member variable in > old page, the variable value won't be available in new page instance. > > Therefore paging navigator doesn't use bookmarkable urls. > > It should not be difficult to modify PagingNavigator to use bookmarkable > urls. > > -Matej > > Korbinian Bachl wrote: > > Hi Matej, > > > > > >> Well, for browsing products i wouldn't use PagingNavigator in > >> a first place. > > > > ok, what else would you use? - i mean a PagingNavigator and a DataView seems > > to me as its made for beeing a product-category browser (as you have e.g. 30 > > toycars and want only 16 max items per page) > > > >> Of course it is prossible to have such product browser in > >> wicket, even with nice urls. > >> > >> class ProductsPage extends WebPage > >> { > >> public ProductsPage(PageParameters parameters) > >> { > >> // this is just an example, you'd probably > >> // need something bit more sophisticated :) > >> int currentPage = parameters.getInt("page"); > >> add(new BookmarkablePageLink("prev", new > >> PageParameters("page=" + (currentPage-1))); > >> add(new BookmarkablePageLink("next", new > >> PageParameters("page=" + (currentPage+1))); > >> > >> } > >> > >> } > >> > >> so if you mount products page to "/products", you can get > >> urls like /products/page/1, products/page/2 ... > > > > ok, so if I understand this right, it would be enough to modify the > > PagingNavigator to use BookmarkablePageLink with the parameters ? If this is > > so, why doesnt the PagingNavigator provide this functionality by itself? or > > might this run into other problems? > > > > Any help is really appreciated, > > > > Regards > > > > Korbinian > > > >> -Matej > >> > >> Korbinian Bachl wrote: > >>> Hi Matej, > >>> > >>> this is a big problem. I can live with not beeing able to > >> have Tabbed > >>> Panels but imagine a onlinestore where you can browse the > >> products but > >>> the url is not bookmarkable. That just wouldnt work for the > >> users as > >>> well as all search engines ! > >>> > >>> Ajax is also not a solution as google & co dont care about that! > >>> > >>> Dont you know any (even theorethical) possibility to have URLs like > >>> /products/page/2 for pagination ? i mean that component must use a > >>> parameter to call it and this one just has to be passed... is this > >>> behaviour going to change in Wicket 2 ??? or are nice URLs > >> there a half-done-feature, too ? > >>> Regards > >>> > >>> > >>> > >>> > >>>> -----Ursprüngliche Nachricht----- > >>>> Von: [EMAIL PROTECTED] > >>>> [mailto:[EMAIL PROTECTED] Im Auftrag von > >>>> Matej Knopp > >>>> Gesendet: Dienstag, 10. Oktober 2006 13:49 > >>>> An: wicket-user@lists.sourceforge.net > >>>> Betreff: Re: [Wicket-user] NiceURL and PagingNavigator > >>>> > >>>> There is a simple answer for your question: You can't. > >>>> > >>>> It's due to how wicket works. Since Wicket manages your > >> application > >>>> state and takes care of the urls for you, you can't alter them > >>>> significantly. > >>>> > >>>> If you need tabbed panel like functionality while having > >> nice urls, > >>>> you have to have different pages and simply use bookmarkable links > >>>> for every page. > >>>> > >>>> Paging navigator's url could be little nicer if we didn't disable > >>>> redirect, e.g. ?wicket:interface=:2:: . > >>>> > >>>> Alternatively you can use ajax paging navigator (and ajax tabbed > >>>> panel), which would case the url to stay unchanged. > >>>> > >>>> -Matej > >>>> > >>>> > >>>> Korbinian Bachl wrote: > >>>>> I extend the question further: How can i have a nice URL > >> and use a > >>>>> TabbedPanel component??? > >>>>> > >>>>> Regards > >>>>> > >>>>> > >>>> -------------------------------------------------------------- > >>>> ---------- > >>>>> *Von:* [EMAIL PROTECTED] > >>>>> [mailto:[EMAIL PROTECTED] *Im > >>>> Auftrag von > >>>>> *Korbinian Bachl > >>>>> *Gesendet:* Dienstag, 10. Oktober 2006 12:01 > >>>>> *An:* wicket-user@lists.sourceforge.net > >>>>> *Betreff:* [Wicket-user] NiceURL and PagingNavigator > >>>>> > >>>>> Hi, > >>>>> > >>>>> i have a page, call it products, and i implement a > >>>> Paging Navigator > >>>>> there, as its not good to have mor than e.g. 10 > >>>> products on page at > >>>>> same time. > >>>>> > >>>>> I then mount the products via > >>>> mountBookmarkablePage("/products", > >>>>> Product.class); > >>>>> > >>>>> by executing it all works at first, but when using a > >>>> link from the > >>>>> paging navigation the URL changes to > >>>>> > >> ?wicket:interface=:2:pagination:navigation:1:pageLink:1:ILinkListener > >>>>> instead of showing a nice /products/page/2 or sth like that. > >>>>> > >>>>> How can i achive this behavior? > >>>>> > >>>>> Regards, > >>>>> > >>>>> Korbinian > >>>>> > >>>>> > >>>>> > >>>>> > >> --------------------------------------------------------------------- > >>>> - > >>>>> -- > >>>>> > >>>>> > >> --------------------------------------------------------------------- > >>>> - > >>>>> --- Take Surveys. Earn Cash. Influence the Future of IT Join > >>>>> SourceForge.net's Techsay panel and you'll get the chance > >> to share > >>>>> your opinions on IT & business topics through brief > >> surveys -- and > >>>>> earn cash > >>>>> > >> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DE > >>>> V > >>>>> DEV > >>>>> > >>>>> > >>>>> > >> --------------------------------------------------------------------- > >>>> - > >>>>> -- > >>>>> > >>>>> _______________________________________________ > >>>>> Wicket-user mailing list > >>>>> Wicket-user@lists.sourceforge.net > >>>>> https://lists.sourceforge.net/lists/listinfo/wicket-user > >>>> -------------------------------------------------------------- > >>>> ----------- > >>>> Take Surveys. Earn Cash. Influence the Future of IT Join > >>>> SourceForge.net's Techsay panel and you'll get the chance to share > >>>> your opinions on IT & business topics through brief surveys -- and > >>>> earn cash > >>>> http://www.techsay.com/default.php?page=join.php&p=sourceforge > >>> &CID=DEVDEV > >>>> _______________________________________________ > >>>> Wicket-user mailing list > >>>> Wicket-user@lists.sourceforge.net > >>>> https://lists.sourceforge.net/lists/listinfo/wicket-user > >>>> > >>> > >>> > >> ---------------------------------------------------------------------- > >>> --- Take Surveys. Earn Cash. Influence the Future of IT Join > >>> SourceForge.net's Techsay panel and you'll get the chance to share > >>> your opinions on IT & business topics through brief surveys -- and > >>> earn cash > >>> > >> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEV > >>> DEV _______________________________________________ > >>> Wicket-user mailing list > >>> Wicket-user@lists.sourceforge.net > >>> https://lists.sourceforge.net/lists/listinfo/wicket-user > >>> > >> > >> -------------------------------------------------------------- > >> ----------- > >> Take Surveys. Earn Cash. Influence the Future of IT Join > >> SourceForge.net's Techsay panel and you'll get the chance to > >> share your opinions on IT & business topics through brief > >> surveys -- and earn cash > >> http://www.techsay.com/default.php?page=join.php&p=sourceforge > > &CID=DEVDEV > >> _______________________________________________ > >> Wicket-user mailing list > >> Wicket-user@lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/wicket-user > >> > > > > > > ------------------------------------------------------------------------- > > Take Surveys. Earn Cash. Influence the Future of IT > > Join SourceForge.net's Techsay panel and you'll get the chance to share your > > opinions on IT & business topics through brief surveys -- and earn cash > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > _______________________________________________ > > Wicket-user mailing list > > Wicket-user@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user