ok,I'd created a improvement issue:
https://issues.apache.org/jira/browse/WICKET-2876

2010/5/17 Igor Vaynberg <[email protected]>:
> please attach your code to a jira issue so it doesnt get lost.
>
> -igor
>
> 2010/5/14 cleverpig <[email protected]>:
>> hi,everybody!
>>
>> 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).
>>
>>
>> 2010/5/14 cleverpig <[email protected]>:
>>> thanks,igor!
>>>
>>> but where can I find out this bookmarkable paging navigator?
>>> I only get 
>>> it:http://apache-wicket.1842946.n4.nabble.com/PageNavigator-Vs-Nice-Url-td1848271.html#a1848272
>>> but that is a old track about nice url and paging navigator,including
>>> a lot discuss without final result.
>>>
>>> 2010/5/13 Igor Vaynberg <[email protected]>:
>>>> if you use a bookmarkable paging navigator then even the default
>>>> mounting strategy will work. you can probably find one by searching
>>>> the list.
>>>>
>>>> -igor
>>>>
>>>> On Thu, May 13, 2010 at 12:56 AM, cleverpig <[email protected]> 
>>>> wrote:
>>>>> hi,everybody!
>>>>>
>>>>> I checked a variety url coding strategies, but did not find one that
>>>>> is very appropriate when using datatable and navigator in page.
>>>>>
>>>>> HybridUrlCodingStrategy might also be, but it can not display the page
>>>>> parameter in url, can not be true bookmarkable.
>>>>> And the version number int its url will make the user confused.
>>>>>
>>>>> I look forward to using MixedParamUrlCodingStrategy, which may need to
>>>>> find out navigation links parameter name in the navigator,such
>>>>> as:first,next,etc!
>>>>>
>>>>> Not sure we have a better solution, please guide me~
>>>>>
>>>>> --
>>>>> cleverpig(Dan)
>>>>> Location: Beijing
>>>>> Address: Room 4018,No.A2 South Avenue Fuxingmen Beijing,P.R.China
>>>>> Zipcode: 100031
>>>>> MSN: [email protected]
>>>>> QQ: 149291732
>>>>> Skype: cleverpigatmatrix
>>>>> Facebook ID:cleverpig
>>>>> Blog: cleverpig.name/dan/
>>>>> Tags: del.icio.us/cleverpig
>>>>> Twitter: twitter.com/cleverpig
>>>>> 新浪微博: t.sina.com.cn/cleverpig
>>>>> Organization: www.beijing-open-party.org
>>>>> or...@facebook: http://www.facebook.com/group.php?gid=8159558294
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> 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]
>>>>
>>>>
>>>
>>>
>>>
>>> --
>>> cleverpig(Dan)
>>> Location: Beijing
>>> Address: Room 4018,No.A2 South Avenue Fuxingmen Beijing,P.R.China
>>> Zipcode: 100031
>>> MSN: [email protected]
>>> QQ: 149291732
>>> Skype: cleverpigatmatrix
>>> Facebook ID:cleverpig
>>> Blog: cleverpig.name/dan/
>>> Tags: del.icio.us/cleverpig
>>> Twitter: twitter.com/cleverpig
>>> 新浪微博: t.sina.com.cn/cleverpig
>>> Organization: www.beijing-open-party.org
>>> or...@facebook: http://www.facebook.com/group.php?gid=8159558294
>>>
>>
>>
>>
>> --
>> cleverpig(Dan)
>> Location: Beijing
>> Address: Room 4018,No.A2 South Avenue Fuxingmen Beijing,P.R.China
>> Zipcode: 100031
>> MSN: [email protected]
>> QQ: 149291732
>> Skype: cleverpigatmatrix
>> Facebook ID:cleverpig
>> Blog: cleverpig.name/dan/
>> Tags: del.icio.us/cleverpig
>> Twitter: twitter.com/cleverpig
>> 新浪微博: t.sina.com.cn/cleverpig
>> Organization: www.beijing-open-party.org
>> or...@facebook: http://www.facebook.com/group.php?gid=8159558294
>>
>>
>> ---------------------------------------------------------------------
>> 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]
>
>



-- 
cleverpig(Dan)
Location: Beijing
Address: Room 4018,No.A2 South Avenue Fuxingmen Beijing,P.R.China
Zipcode: 100031
MSN: [email protected]
QQ: 149291732
Skype: cleverpigatmatrix
Facebook ID:cleverpig
Blog: cleverpig.name/dan/
Tags: del.icio.us/cleverpig
Twitter: twitter.com/cleverpig
新浪微博: t.sina.com.cn/cleverpig
Organization: www.beijing-open-party.org
or...@facebook: http://www.facebook.com/group.php?gid=8159558294

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to