Ivoneta,
> MyAjaxPagingNavigator extends from my own PagingNavigator subclass.
> But I have a problem my own class doesn't work...If I clicked to next
> page, the entire page is refresh,
because AjaxPagingNavigationBehavior call onAjaxEvent() only if Navigator
class is AjaxPagingNavigator.class.
I add 'onclick' behavior as below, it seems work fine.
--------
@Override
protected Link<?> newPagingNavigationIncrementLink(String id, IPageable
pageable, int increment) {
AjaxPagingNavigationIncrementLink link = new
AjaxPagingNavigationIncrementLink(id, pageable, increment);
link.add(new MyAjaxBehavior(link, pageable, "onclick") {
@Override
protected void onEvent(AjaxRequestTarget target) {
....
navigator.onAjaxEvent(target);
}
});
return link;
}
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/AjaxPagingNavigation-change-style-tp2297188p3086566.html
Sent from the Users forum mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]