You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by iv...@apache.org on 2012/02/14 21:25:54 UTC

git commit: fix target.add(page)

Updated Branches:
  refs/heads/wicket-1.5.x 4a3a4a62f -> 44d861387


fix target.add(page)


Project: http://git-wip-us.apache.org/repos/asf/wicket/repo
Commit: http://git-wip-us.apache.org/repos/asf/wicket/commit/44d86138
Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/44d86138
Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/44d86138

Branch: refs/heads/wicket-1.5.x
Commit: 44d861387db0bf133c06f0a955a7d461c7f66ea5
Parents: 4a3a4a6
Author: Igor Vaynberg <iv...@apache.org>
Authored: Tue Feb 14 12:25:48 2012 -0800
Committer: Igor Vaynberg <iv...@apache.org>
Committed: Tue Feb 14 12:25:48 2012 -0800

----------------------------------------------------------------------
 .../org/apache/wicket/ajax/AjaxRequestTarget.java  |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/wicket/blob/44d86138/wicket-core/src/main/java/org/apache/wicket/ajax/AjaxRequestTarget.java
----------------------------------------------------------------------
diff --git a/wicket-core/src/main/java/org/apache/wicket/ajax/AjaxRequestTarget.java b/wicket-core/src/main/java/org/apache/wicket/ajax/AjaxRequestTarget.java
index ad807fc..22e5146 100644
--- a/wicket-core/src/main/java/org/apache/wicket/ajax/AjaxRequestTarget.java
+++ b/wicket-core/src/main/java/org/apache/wicket/ajax/AjaxRequestTarget.java
@@ -401,7 +401,7 @@ public class AjaxRequestTarget implements IPageRequestHandler, ILoggableRequestH
 		{
 			Args.notNull(component, "component");
 
-			if (component.getOutputMarkupId() == false)
+			if (component.getOutputMarkupId() == false && !(component instanceof Page))
 			{
 				throw new IllegalArgumentException(
 					"cannot update component that does not have setOutputMarkupId property set to true. Component: " +