Here's an example of how I extend paging navigator:
/**
* Overridden to make links invisible.
*/
@Override
protected Link newPagingNavigationLink(String id, IPageable
pageable, int pageNumber) {
Link l = super.newPagingNavigationLink(id, pageable, pageNumber);
// we don't want first/last links..
l.setVisible(false);
return l;
}
as you see, I call l.setVisible(false) to make the first/last links
invisible. You should also provide markup with your extended navigator
(for example, my class is SimplePagingNavigator and I have a
corresponding SimplePagingNavigator.html) and you can change < and > to
prev and next within your new markup . You should copy the original
PagingNavigator.html from wicket source, rename it and modify it for
yourself.
hth,
SerkanC
eyalbenamram wrote:
Hi
I need to have a PagingNavigator that has only the "next" and "previous"
links visible,
and in addition, to change their looks from "<" to "prev" and from ">" to
"next"
Can you please add code? I searched the forum and found some messy stuff
that didn't work..
Thaks, Eyal.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]