Re: Bookmarkable PagingNavigation
Yes, thanks I have read that post serveral times! Finally managed to get the thing working. Not pretty parsing the pageing parameters and adding the page but it works. Thanks! -- View this message in context: http://www.nabble.com/Bookmarkable-PagingNavigation-tp19382751p19389690.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Bookmarkable PagingNavigation
Well if it's pretty or not depends on your point of view. If you want to make the thing stateless, there's no other option but passing the values by means of GET or POST parameters ... if you wish google to index each site then GET is the way to go ... Mathias P.W Nilsson wrote: Yes, thanks I have read that post serveral times! Finally managed to get the thing working. Not pretty parsing the pageing parameters and adding the page but it works. Thanks! - Michael Sparer http://talk-on-tech.blogspot.com -- View this message in context: http://www.nabble.com/Bookmarkable-PagingNavigation-tp19382751p19390152.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Bookmarkable PagingNavigation
You have to reimplement something, so yes the links thatv are generated must be bookmarkable if you want sessieless paging On 9/9/08, Mathias P.W Nilsson [EMAIL PROTECTED] wrote: I've read some post on forum users wanting to use Bookmarkable page links in their PagingNavigation. Now, I'm one of them :) Google spider can index my wicket application using my PagingNavigation. Has anyone come up with an idé on solving this? Any pointers on how to achieve without having to reimplement PagingNavigationLink, PagingNavigationLinkIncrementLink? -- View this message in context: http://www.nabble.com/Bookmarkable-PagingNavigation-tp19382751p19382751.html Sent from the Wicket - User mailing list archive at Nabble.com. - 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]
Re: Bookmarkable PagingNavigation
The IPageable setCurrentPage() must be set when requesting PageParameters, any suggestions? This is what I have in mind. For every newPagingNavigationIncrementLink append the page parameters and the correct page number. -- View this message in context: http://www.nabble.com/Bookmarkable-PagingNavigation-tp19382751p19384054.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Bookmarkable PagingNavigation
The pageable.setCurrentPage(getPageNumber()); is set in the onClick method of a PagingNavigationIncrementLink or PagingNavigationLink. How can I set the currentPage when using BookmarkableLink? -- View this message in context: http://www.nabble.com/Bookmarkable-PagingNavigation-tp19382751p19384458.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Bookmarkable PagingNavigation
You will most likely end up using a BookmarkablePageLink which will construct a new page Then in the constructor of the page, you will have code similar to: public YourPage(PageParameters params) { super(params); int page = 1; try { page = params.getInt(page); } catch(Exception ex) { // no-op } // obviously cols / provider / rows come from somewhere not shown in this example IPageable pageable = new DataTable(table, cols, provider, rows); pageable.setCurrentPage(page); PagingNavigation nav = new PagingNavigation(nav, pageable ); } Hope this helps -- Jeremy Thomerson http://www.wickettraining.com On Mon, Sep 8, 2008 at 8:39 PM, Mathias P.W Nilsson [EMAIL PROTECTED]wrote: The pageable.setCurrentPage(getPageNumber()); is set in the onClick method of a PagingNavigationIncrementLink or PagingNavigationLink. How can I set the currentPage when using BookmarkableLink? -- View this message in context: http://www.nabble.com/Bookmarkable-PagingNavigation-tp19382751p19384458.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]