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: [email protected]
> >> 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:* [email protected]
> >>> *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
> >>> [email protected]
> >>> 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
> >> [email protected]
> >> 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
> > [email protected]
> > 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
> [email protected]
> 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
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user