[ 
https://issues.apache.org/jira/browse/WICKET-2876?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

cleverpig updated WICKET-2876:
------------------------------

    Attachment: code.zip

this is source code

> bookmarkable paging navigator
> -----------------------------
>
>                 Key: WICKET-2876
>                 URL: https://issues.apache.org/jira/browse/WICKET-2876
>             Project: Wicket
>          Issue Type: Improvement
>          Components: wicket
>         Environment: web dev environment: wicket1.4.7 jdk1.6 tomcat6.0 
> system environment: Windows xp
>            Reporter: cleverpig
>         Attachments: code.zip
>
>
> Maybe we should not do the same thing to reinvent the wheel.
> After a morning of thinking and programming, I wrote a few simple
> restful navigator implement!
> Here are main 4 classes:
> 1.BookmarkablePagingNavigator
> 2.BookmarkablePagingNavigation
> 3.BookmarkablePagingNavigationLink
> 4.BookmarkablePagingNavigationIncrementLink
> Core idea is to override PagingNavigator and PagingNavigation classes'
> newPagingNavigationLink and newPagingNavigationIncrementLink methods.
> BookmarkablePagingNavigationLink extends from PagingNavigationLink.
> BookmarkablePagingNavigationLink's work depends on CharSequence getURL
> () method:
> protected CharSequence getURL () (
>       if (getPopupSettings ()! = null)
>            throw new IllegalStateException ("You cannot specify popup
> settings and a page map");
>        PageParameters parameters = getPageParameters ();
>        if (getPopupSettings ()! = null)
>            return urlFor (getPopupSettings (). getPageMap (this),
> getPageClass (), parameters);
>        else
>            return urlFor (getPageClass (), parameters);
> )
> I'm so glad to give my gift:I put these classes as attachment with
> this mail,please share it~
> TO FIX: it can not handle the search bar of the parameters or other
> parameters of DataTable Headers(such as sort param).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to