why is this so hard?
class mypagingnavigator extends pagingnavigator {
protected Link<Object> newPagingNavigationIncrementLink(... final
pageable, final increment {
return new PagingNavigationIncrementLink(id, pageable, increment) {
isvisible() {
if (increment==-1) {
return pageable.getcurrentpage()>0;
} else {
return pageable.getcurrentpage()<pageable.getpagecount()-1;
}
}
}
}
}
-igor
On Mon, May 19, 2008 at 4:08 PM, Mathias P.W Nilsson
<[EMAIL PROTECTED]> wrote:
>
> I still can't find a way to hide the prev and/or the next on a certain
> condition.
>
> If the first page is showed I want to hide the prev. And if there are no
> more pages I want to hide the next. Anyone that has done this?
> --
> View this message in context:
> http://www.nabble.com/Controlling-PagingNavigation-tp17290391p17330081.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]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]