As far as the <em>, just call
setAfterDisabledLink(final String afterDisabledLink)
and
setBeforeDisabledLink(final String beforeDisabledLink)
to override the markup for a disabled link.
Do it like this inside your overridden PagingNavigator:
new PagingNavigator(null, null) {
private static final long serialVersionUID = 1L;
// this is the important part:
@Override
protected Link newPagingNavigationLink(String id, IPageable
pageable, int pageNumber) {
Link link = super.newPagingNavigationLink(id, pageable,
pageNumber);
link.setBeforeDisabledLink("<my markup>");
link.setAfterDisabledLink("<my markup>");
return link;
}
};
--
Jeremy Thomerson
http://www.wickettraining.com
On Sat, May 17, 2008 at 5:52 AM, Mathias P.W Nilsson <[EMAIL PROTECTED]>
wrote:
>
> Hi!
>
> I have subclassed PagingNavigator to delete the last and first element of
> the pager. Now I need some way of setVisible( false ) on prev and next if
> it
> is the first or last page. How can this be done.
>
> Altso. the current page is renderered <em>. Is it possible to have a
> current_page or something like that?
> --
> View this message in context:
> http://www.nabble.com/Controlling-PagingNavigation-tp17290391p17290391.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]
>
>