You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by kn...@apache.org on 2006/10/12 12:19:39 UTC
svn commit: r463183 -
/incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/ajax/markup/html/navigation/paging/AjaxPagingNavigationBehavior.java
Author: knopp
Date: Thu Oct 12 03:19:36 2006
New Revision: 463183
URL: http://svn.apache.org/viewvc?view=rev&rev=463183
Log:
render onclick only if component is enabled
Modified:
incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/ajax/markup/html/navigation/paging/AjaxPagingNavigationBehavior.java
Modified: incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/ajax/markup/html/navigation/paging/AjaxPagingNavigationBehavior.java
URL: http://svn.apache.org/viewvc/incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/ajax/markup/html/navigation/paging/AjaxPagingNavigationBehavior.java?view=diff&rev=463183&r1=463182&r2=463183
==============================================================================
--- incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/ajax/markup/html/navigation/paging/AjaxPagingNavigationBehavior.java (original)
+++ incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/ajax/markup/html/navigation/paging/AjaxPagingNavigationBehavior.java Thu Oct 12 03:19:36 2006
@@ -25,6 +25,7 @@
import wicket.ajax.IAjaxCallDecorator;
import wicket.ajax.calldecorator.CancelEventIfNoAjaxDecorator;
import wicket.ajax.markup.html.IAjaxLink;
+import wicket.markup.ComponentTag;
import wicket.markup.html.navigation.paging.IPageable;
/**
@@ -105,4 +106,14 @@
return new CancelEventIfNoAjaxDecorator();
}
+ /**
+ * @see wicket.ajax.AjaxEventBehavior#onComponentTag(wicket.markup.ComponentTag)
+ */
+ protected void onComponentTag(ComponentTag tag)
+ {
+ if (getComponent().isEnabled() && getComponent().isEnableAllowed())
+ {
+ super.onComponentTag(tag);
+ }
+ }
}