or you can simply roll your own class since building a < > navigator should
be pretty trivial.
-igor
On 5/15/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
class mynav extends ajaxpagingnavigator {
newnavigation(...) {
// hide the 1 2 3 4
return super.newnavigation(..).setvisible(false);
}
newpagingnavigationlink(..) {
//hide first last
return super.newpagingnavigationlink (..).setvisible(False);
}
}
thats all you want right? you will be left with only < >
-igor
On 5/15/07, Tremelune < [EMAIL PROTECTED]> wrote:
>
>
> The overview of my goal is to replace "<< < 1 2 3 4 > >>" with "prev
> next". I
> can't see how it can be done through subclassing, so I'm rolling my own
> Panel, similar to PagingNavigator (but with a new template).
>
> I'm trying to get AJAX pagination working, and I have--without custom
> stuff.
> If I use AjaxPagingNavigator, everything works fine:
>
> <pre>
> public Home() {
> PageableListView topDogs = new SongListView("topDogs", dogs, 10);
>
> WebMarkupContainer container = new
> WebMarkupContainer("topDogsBlock");
> container.setOutputMarkupId(true);
>
> container.add(topDogs);
> container.add(new AjaxPagingNavigator("pager", topDogs));
>
> //Add container to main page
> add(container);
> }
> </pre>
>
> Now, the weird thing is, if I copy the source code from
> AjaxPagingNavigator,
> create a new class in my own source tree, and use that completely
> identical
> class (except for package), it does NOT work. I have to click links
> twice,
> and it refreshes the whole page. The Wicket AJAX debugger says some
> error
> 500 or some such.
>
> Do I have to register behavior with custom classes or what? Line for
> line,
> it's the same code, but one works, the other does not. There has to be
> something I'm missing.
> --
> View this message in context:
http://www.nabble.com/AjaxPagingNavigator-doesn%27t-work-as-%22custom%22-class-tf3760248.html#a10628431
>
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Wicket-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user