Author: ivaynberg
Date: Tue Sep 22 23:50:18 2009
New Revision: 817907
URL: http://svn.apache.org/viewvc?rev=817907&view=rev
Log:
WICKET-2461
Issue: WICKET-2461
Modified:
wicket/branches/wicket-1.4.x/wicket/src/main/java/org/apache/wicket/ajax/markup/html/navigation/paging/AjaxPagingNavigationBehavior.java
Modified:
wicket/branches/wicket-1.4.x/wicket/src/main/java/org/apache/wicket/ajax/markup/html/navigation/paging/AjaxPagingNavigationBehavior.java
URL:
http://svn.apache.org/viewvc/wicket/branches/wicket-1.4.x/wicket/src/main/java/org/apache/wicket/ajax/markup/html/navigation/paging/AjaxPagingNavigationBehavior.java?rev=817907&r1=817906&r2=817907&view=diff
==============================================================================
---
wicket/branches/wicket-1.4.x/wicket/src/main/java/org/apache/wicket/ajax/markup/html/navigation/paging/AjaxPagingNavigationBehavior.java
(original)
+++
wicket/branches/wicket-1.4.x/wicket/src/main/java/org/apache/wicket/ajax/markup/html/navigation/paging/AjaxPagingNavigationBehavior.java
Tue Sep 22 23:50:18 2009
@@ -17,7 +17,6 @@
package org.apache.wicket.ajax.markup.html.navigation.paging;
import org.apache.wicket.Component;
-import org.apache.wicket.WicketRuntimeException;
import org.apache.wicket.ajax.AjaxEventBehavior;
import org.apache.wicket.ajax.AjaxRequestTarget;
import org.apache.wicket.ajax.IAjaxCallDecorator;
@@ -77,14 +76,13 @@
// find the PagingNavigator parent of this link
AjaxPagingNavigator navigator =
((Component)owner).findParent(AjaxPagingNavigator.class);
- if (navigator == null)
+
+ // if this is embedded inside a navigator
+ if (navigator != null)
{
- throw new WicketRuntimeException(
- "Unable to find AjaxPagingNavigator component
in hierarchy starting from " + owner);
+ // tell the PagingNavigator to update the IPageable
+ navigator.onAjaxEvent(target);
}
-
- // tell the PagingNavigator to update the IPageable
- navigator.onAjaxEvent(target);
}
/**