You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by mg...@apache.org on 2014/11/03 14:27:26 UTC

[1/2] git commit: Revert the old ApacheLicenceHeaderTest to make Clirr happy. Introduce a copy in src/test.

Repository: wicket
Updated Branches:
  refs/heads/wicket-6.x b4d770c02 -> bb5a7e842


Revert the old ApacheLicenceHeaderTest to make Clirr happy. Introduce a copy in src/test.


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

Branch: refs/heads/wicket-6.x
Commit: 0f463a8cd00e2f67175650c863a3482d2d9f7baa
Parents: b4d770c
Author: Martin Tzvetanov Grigorov <mg...@apache.org>
Authored: Mon Nov 3 15:26:12 2014 +0200
Committer: Martin Tzvetanov Grigorov <mg...@apache.org>
Committed: Mon Nov 3 15:26:12 2014 +0200

----------------------------------------------------------------------
 .../apache/wicket/util/io/BOMInputStream.java   |  4 +-
 .../util/license/ApacheLicenceHeaderTest.java   | 76 ++++++++++++++++++++
 .../util/license/ApacheLicenceHeaderTest.java   | 76 --------------------
 .../WicketUtilApacheLicenceHeaderTest.java      | 76 ++++++++++++++++++++
 4 files changed, 154 insertions(+), 78 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/wicket/blob/0f463a8c/wicket-util/src/main/java/org/apache/wicket/util/io/BOMInputStream.java
----------------------------------------------------------------------
diff --git a/wicket-util/src/main/java/org/apache/wicket/util/io/BOMInputStream.java b/wicket-util/src/main/java/org/apache/wicket/util/io/BOMInputStream.java
index b870278..075dc89 100644
--- a/wicket-util/src/main/java/org/apache/wicket/util/io/BOMInputStream.java
+++ b/wicket-util/src/main/java/org/apache/wicket/util/io/BOMInputStream.java
@@ -5,9 +5,9 @@
  * The ASF licenses this file to You under the Apache License, Version 2.0
  * (the "License"); you may not use this file except in compliance with
  * the License.  You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

http://git-wip-us.apache.org/repos/asf/wicket/blob/0f463a8c/wicket-util/src/main/java/org/apache/wicket/util/license/ApacheLicenceHeaderTest.java
----------------------------------------------------------------------
diff --git a/wicket-util/src/main/java/org/apache/wicket/util/license/ApacheLicenceHeaderTest.java b/wicket-util/src/main/java/org/apache/wicket/util/license/ApacheLicenceHeaderTest.java
new file mode 100644
index 0000000..36034cc
--- /dev/null
+++ b/wicket-util/src/main/java/org/apache/wicket/util/license/ApacheLicenceHeaderTest.java
@@ -0,0 +1,76 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.wicket.util.license;
+
+/**
+ * Test that the license headers are in place in this project. The tests are run from
+ * {@link org.apache.wicket.util.license.ApacheLicenseHeaderTestCase}, but you can add project specific tests here if needed.
+ * 
+ * @author Frank Bille Jensen (frankbille)
+ */
+public class ApacheLicenceHeaderTest extends ApacheLicenseHeaderTestCase
+{
+	/**
+	 * Construct.
+	 */
+	public ApacheLicenceHeaderTest()
+	{
+		// addHeaders = true;
+
+		/*
+		 * See NOTICE.txt
+		 */
+		htmlIgnore.add("src/main/java/org/apache/wicket/util/diff");
+
+		xmlPrologIgnore.add("src/main/java/org/apache/wicket/util/diff");
+
+		/*
+		 * ASL1.1. Taken from Maven JRCS. See NOTICE.txt
+		 */
+		javaIgnore.add("src/main/java/org/apache/wicket/util/diff/AddDelta.java");
+		javaIgnore.add("src/main/java/org/apache/wicket/util/diff/ChangeDelta.java");
+		javaIgnore.add("src/main/java/org/apache/wicket/util/diff/Chunk.java");
+		javaIgnore.add("src/main/java/org/apache/wicket/util/diff/DeleteDelta.java");
+		javaIgnore.add("src/main/java/org/apache/wicket/util/diff/Delta.java");
+		javaIgnore.add("src/main/java/org/apache/wicket/util/diff/Diff.java");
+		javaIgnore.add("src/main/java/org/apache/wicket/util/diff/DiffAlgorithm.java");
+		javaIgnore.add("src/main/java/org/apache/wicket/util/diff/DifferentiationFailedException.java");
+		javaIgnore.add("src/main/java/org/apache/wicket/util/diff/DiffException.java");
+		javaIgnore.add("src/main/java/org/apache/wicket/util/diff/PatchFailedException.java");
+		javaIgnore.add("src/main/java/org/apache/wicket/util/diff/Revision.java");
+		javaIgnore.add("src/main/java/org/apache/wicket/util/diff/RevisionVisitor.java");
+		javaIgnore.add("src/main/java/org/apache/wicket/util/diff/ToString.java");
+		javaIgnore.add("src/main/java/org/apache/wicket/util/diff/myers/DiffNode.java");
+		javaIgnore.add("src/main/java/org/apache/wicket/util/diff/myers/MyersDiff.java");
+		javaIgnore.add("src/main/java/org/apache/wicket/util/diff/myers/PathNode.java");
+		javaIgnore.add("src/main/java/org/apache/wicket/util/diff/myers/Snake.java");
+
+		javaScriptIgnore.add("src/site/xdoc/onestat.js");
+
+		/*
+		 * .js in test is very test specific and a license header would confuse and make it unclear
+		 * what the test is about.
+		 */
+		javaScriptIgnore.add("src/test/java");
+
+		/*
+		 * See NOTICE.txt
+		 */
+		javaScriptIgnore.add("src/main/java/org/apache/wicket/ajax/wicket-ajax-debug-drag.js");
+		javaScriptIgnore.add("src/main/java/org/apache/wicket/markup/html/form/upload/MultiFileUploadField.js");
+	}
+}

http://git-wip-us.apache.org/repos/asf/wicket/blob/0f463a8c/wicket-util/src/test/java/org/apache/wicket/util/license/ApacheLicenceHeaderTest.java
----------------------------------------------------------------------
diff --git a/wicket-util/src/test/java/org/apache/wicket/util/license/ApacheLicenceHeaderTest.java b/wicket-util/src/test/java/org/apache/wicket/util/license/ApacheLicenceHeaderTest.java
deleted file mode 100644
index 0a243c0..0000000
--- a/wicket-util/src/test/java/org/apache/wicket/util/license/ApacheLicenceHeaderTest.java
+++ /dev/null
@@ -1,76 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.wicket.util.license;
-
-/**
- * Test that the license headers are in place in this project. The tests are run from
- * {@link ApacheLicenseHeaderTestCase}, but you can add project specific tests here if needed.
- * 
- * @author Frank Bille Jensen (frankbille)
- */
-public class ApacheLicenceHeaderTest extends ApacheLicenseHeaderTestCase
-{
-	/**
-	 * Construct.
-	 */
-	public ApacheLicenceHeaderTest()
-	{
-		// addHeaders = true;
-
-		/*
-		 * See NOTICE.txt
-		 */
-		htmlIgnore.add("src/main/java/org/apache/wicket/util/diff");
-
-		xmlPrologIgnore.add("src/main/java/org/apache/wicket/util/diff");
-
-		/*
-		 * ASL1.1. Taken from Maven JRCS. See NOTICE.txt
-		 */
-		javaIgnore.add("src/main/java/org/apache/wicket/util/diff/AddDelta.java");
-		javaIgnore.add("src/main/java/org/apache/wicket/util/diff/ChangeDelta.java");
-		javaIgnore.add("src/main/java/org/apache/wicket/util/diff/Chunk.java");
-		javaIgnore.add("src/main/java/org/apache/wicket/util/diff/DeleteDelta.java");
-		javaIgnore.add("src/main/java/org/apache/wicket/util/diff/Delta.java");
-		javaIgnore.add("src/main/java/org/apache/wicket/util/diff/Diff.java");
-		javaIgnore.add("src/main/java/org/apache/wicket/util/diff/DiffAlgorithm.java");
-		javaIgnore.add("src/main/java/org/apache/wicket/util/diff/DifferentiationFailedException.java");
-		javaIgnore.add("src/main/java/org/apache/wicket/util/diff/DiffException.java");
-		javaIgnore.add("src/main/java/org/apache/wicket/util/diff/PatchFailedException.java");
-		javaIgnore.add("src/main/java/org/apache/wicket/util/diff/Revision.java");
-		javaIgnore.add("src/main/java/org/apache/wicket/util/diff/RevisionVisitor.java");
-		javaIgnore.add("src/main/java/org/apache/wicket/util/diff/ToString.java");
-		javaIgnore.add("src/main/java/org/apache/wicket/util/diff/myers/DiffNode.java");
-		javaIgnore.add("src/main/java/org/apache/wicket/util/diff/myers/MyersDiff.java");
-		javaIgnore.add("src/main/java/org/apache/wicket/util/diff/myers/PathNode.java");
-		javaIgnore.add("src/main/java/org/apache/wicket/util/diff/myers/Snake.java");
-
-		javaScriptIgnore.add("src/site/xdoc/onestat.js");
-
-		/*
-		 * .js in test is very test specific and a license header would confuse and make it unclear
-		 * what the test is about.
-		 */
-		javaScriptIgnore.add("src/test/java");
-
-		/*
-		 * See NOTICE.txt
-		 */
-		javaScriptIgnore.add("src/main/java/org/apache/wicket/ajax/wicket-ajax-debug-drag.js");
-		javaScriptIgnore.add("src/main/java/org/apache/wicket/markup/html/form/upload/MultiFileUploadField.js");
-	}
-}

http://git-wip-us.apache.org/repos/asf/wicket/blob/0f463a8c/wicket-util/src/test/java/org/apache/wicket/util/license/WicketUtilApacheLicenceHeaderTest.java
----------------------------------------------------------------------
diff --git a/wicket-util/src/test/java/org/apache/wicket/util/license/WicketUtilApacheLicenceHeaderTest.java b/wicket-util/src/test/java/org/apache/wicket/util/license/WicketUtilApacheLicenceHeaderTest.java
new file mode 100644
index 0000000..743cdf4
--- /dev/null
+++ b/wicket-util/src/test/java/org/apache/wicket/util/license/WicketUtilApacheLicenceHeaderTest.java
@@ -0,0 +1,76 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.wicket.util.license;
+
+/**
+ * Test that the license headers are in place in this project. The tests are run from
+ * {@link ApacheLicenseHeaderTestCase}, but you can add project specific tests here if needed.
+ * 
+ * @author Frank Bille Jensen (frankbille)
+ */
+public class WicketUtilApacheLicenceHeaderTest extends ApacheLicenseHeaderTestCase
+{
+	/**
+	 * Construct.
+	 */
+	public WicketUtilApacheLicenceHeaderTest()
+	{
+		// addHeaders = true;
+
+		/*
+		 * See NOTICE.txt
+		 */
+		htmlIgnore.add("src/main/java/org/apache/wicket/util/diff");
+
+		xmlPrologIgnore.add("src/main/java/org/apache/wicket/util/diff");
+
+		/*
+		 * ASL1.1. Taken from Maven JRCS. See NOTICE.txt
+		 */
+		javaIgnore.add("src/main/java/org/apache/wicket/util/diff/AddDelta.java");
+		javaIgnore.add("src/main/java/org/apache/wicket/util/diff/ChangeDelta.java");
+		javaIgnore.add("src/main/java/org/apache/wicket/util/diff/Chunk.java");
+		javaIgnore.add("src/main/java/org/apache/wicket/util/diff/DeleteDelta.java");
+		javaIgnore.add("src/main/java/org/apache/wicket/util/diff/Delta.java");
+		javaIgnore.add("src/main/java/org/apache/wicket/util/diff/Diff.java");
+		javaIgnore.add("src/main/java/org/apache/wicket/util/diff/DiffAlgorithm.java");
+		javaIgnore.add("src/main/java/org/apache/wicket/util/diff/DifferentiationFailedException.java");
+		javaIgnore.add("src/main/java/org/apache/wicket/util/diff/DiffException.java");
+		javaIgnore.add("src/main/java/org/apache/wicket/util/diff/PatchFailedException.java");
+		javaIgnore.add("src/main/java/org/apache/wicket/util/diff/Revision.java");
+		javaIgnore.add("src/main/java/org/apache/wicket/util/diff/RevisionVisitor.java");
+		javaIgnore.add("src/main/java/org/apache/wicket/util/diff/ToString.java");
+		javaIgnore.add("src/main/java/org/apache/wicket/util/diff/myers/DiffNode.java");
+		javaIgnore.add("src/main/java/org/apache/wicket/util/diff/myers/MyersDiff.java");
+		javaIgnore.add("src/main/java/org/apache/wicket/util/diff/myers/PathNode.java");
+		javaIgnore.add("src/main/java/org/apache/wicket/util/diff/myers/Snake.java");
+
+		javaScriptIgnore.add("src/site/xdoc/onestat.js");
+
+		/*
+		 * .js in test is very test specific and a license header would confuse and make it unclear
+		 * what the test is about.
+		 */
+		javaScriptIgnore.add("src/test/java");
+
+		/*
+		 * See NOTICE.txt
+		 */
+		javaScriptIgnore.add("src/main/java/org/apache/wicket/ajax/wicket-ajax-debug-drag.js");
+		javaScriptIgnore.add("src/main/java/org/apache/wicket/markup/html/form/upload/MultiFileUploadField.js");
+	}
+}


[2/2] git commit: WICKET-5746 Fire an event once all JS event listeners are registered

Posted by mg...@apache.org.
WICKET-5746 Fire an event once all JS event listeners are registered

Fire Wicket.Event.Topic.AJAX_HANDLERS_BOUND event once all Wicket.Ajax.ajax() calls are executed


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

Branch: refs/heads/wicket-6.x
Commit: bb5a7e842ed396a883de4797f733985c1c0c26d0
Parents: 0f463a8
Author: Martin Tzvetanov Grigorov <mg...@apache.org>
Authored: Mon Nov 3 15:26:51 2014 +0200
Committer: Martin Tzvetanov Grigorov <mg...@apache.org>
Committed: Mon Nov 3 15:26:51 2014 +0200

----------------------------------------------------------------------
 .../java/org/apache/wicket/ajax/res/js/wicket-event-jquery.js     | 3 ++-
 .../java/org/apache/wicket/markup/head/ResourceAggregator.java    | 1 +
 .../test/java/org/apache/wicket/TestDetachPageExpectedResult.html | 1 +
 .../java/org/apache/wicket/ajax/AjaxBehaviorEnabled_expected.html | 1 +
 .../apache/wicket/ajax/AjaxHeaderContributionPage2_expected.html  | 1 +
 .../apache/wicket/ajax/AjaxHeaderContributionPage_expected.html   | 1 +
 .../java/org/apache/wicket/ajax/DomReadyOrderPage_expected.html   | 1 +
 .../apache/wicket/ajax/form/AjaxFormSubmitTestPage_expected.html  | 1 +
 .../wicket/ajax/form/OnChangeAjaxBehaviorTestPage_expected.html   | 1 +
 .../ajax/markup/html/ajaxLink/AjaxLinkPageExpectedResult.html     | 1 +
 .../html/ajaxLink/AjaxLinkWithBorderPageExpectedResult.html       | 1 +
 .../ajax/markup/html/ajaxLink/AjaxPage2_ExpectedResult.html       | 1 +
 .../wicket/markup/html/basic/SimplePageExpectedResult_13.html     | 1 +
 .../markup/html/border/HideableBorderPage_ExpectedResult.html     | 1 +
 .../wicket/markup/html/panel/InlinePanelPageExpectedResult_7.html | 1 +
 .../wicket/markup/html/panel/InlinePanelPageExpectedResult_8.html | 1 +
 .../resource/aggregator/ResourceAggregatorTest1Page_results.html  | 1 +
 .../resource/aggregator/ResourceAggregatorTest2Page_results.html  | 1 +
 .../wicket/extensions/yui/calendar/DatesPage1_ExpectedResult.html | 1 +
 19 files changed, 20 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/wicket/blob/bb5a7e84/wicket-core/src/main/java/org/apache/wicket/ajax/res/js/wicket-event-jquery.js
----------------------------------------------------------------------
diff --git a/wicket-core/src/main/java/org/apache/wicket/ajax/res/js/wicket-event-jquery.js b/wicket-core/src/main/java/org/apache/wicket/ajax/res/js/wicket-event-jquery.js
index f0b48b4..ca37a13 100644
--- a/wicket-core/src/main/java/org/apache/wicket/ajax/res/js/wicket-event-jquery.js
+++ b/wicket-core/src/main/java/org/apache/wicket/ajax/res/js/wicket-event-jquery.js
@@ -324,7 +324,8 @@
 				AJAX_CALL_SUCCESS      : '/ajax/call/success',
 				AJAX_CALL_COMPLETE     : '/ajax/call/complete',
 				AJAX_CALL_AFTER        : '/ajax/call/after',
-				AJAX_CALL_FAILURE      : '/ajax/call/failure'
+				AJAX_CALL_FAILURE      : '/ajax/call/failure',
+				AJAX_HANDLERS_BOUND    : '/ajax/handlers/bound'
 			}
 		}
 	});

http://git-wip-us.apache.org/repos/asf/wicket/blob/bb5a7e84/wicket-core/src/main/java/org/apache/wicket/markup/head/ResourceAggregator.java
----------------------------------------------------------------------
diff --git a/wicket-core/src/main/java/org/apache/wicket/markup/head/ResourceAggregator.java b/wicket-core/src/main/java/org/apache/wicket/markup/head/ResourceAggregator.java
index a48f68f..67e80a9 100644
--- a/wicket-core/src/main/java/org/apache/wicket/markup/head/ResourceAggregator.java
+++ b/wicket-core/src/main/java/org/apache/wicket/markup/head/ResourceAggregator.java
@@ -325,6 +325,7 @@ public class ResourceAggregator extends DecoratingHeaderResponse
 		}
 		if (combinedScript.length() > 0)
 		{
+			combinedScript.append("\nWicket.Event.publish(Wicket.Event.Topic.AJAX_HANDLERS_BOUND);");
 			getRealResponse().render(
 				OnDomReadyHeaderItem.forScript(combinedScript.append('\n').toString()));
 		}

http://git-wip-us.apache.org/repos/asf/wicket/blob/bb5a7e84/wicket-core/src/test/java/org/apache/wicket/TestDetachPageExpectedResult.html
----------------------------------------------------------------------
diff --git a/wicket-core/src/test/java/org/apache/wicket/TestDetachPageExpectedResult.html b/wicket-core/src/test/java/org/apache/wicket/TestDetachPageExpectedResult.html
index 725685a..d94aefc 100644
--- a/wicket-core/src/test/java/org/apache/wicket/TestDetachPageExpectedResult.html
+++ b/wicket-core/src/test/java/org/apache/wicket/TestDetachPageExpectedResult.html
@@ -17,6 +17,7 @@ Wicket.Ajax.baseUrl="wicket/bookmarkable/org.apache.wicket.TestDetachPage?0";
 /*<![CDATA[*/
 Wicket.Event.add(window, "domready", function(event) { 
 Wicket.Ajax.ajax({"u":"./org.apache.wicket.TestDetachPage?0-1.IBehaviorListener.0-comp","e":"click","c":"comp1"});;
+Wicket.Event.publish(Wicket.Event.Topic.AJAX_HANDLERS_BOUND);
 ;});
 /*]]>*/
 </script>

http://git-wip-us.apache.org/repos/asf/wicket/blob/bb5a7e84/wicket-core/src/test/java/org/apache/wicket/ajax/AjaxBehaviorEnabled_expected.html
----------------------------------------------------------------------
diff --git a/wicket-core/src/test/java/org/apache/wicket/ajax/AjaxBehaviorEnabled_expected.html b/wicket-core/src/test/java/org/apache/wicket/ajax/AjaxBehaviorEnabled_expected.html
index 51684c3..00fb0a3 100644
--- a/wicket-core/src/test/java/org/apache/wicket/ajax/AjaxBehaviorEnabled_expected.html
+++ b/wicket-core/src/test/java/org/apache/wicket/ajax/AjaxBehaviorEnabled_expected.html
@@ -21,6 +21,7 @@ Wicket.Ajax.baseUrl="wicket/bookmarkable/org.apache.wicket.ajax.AjaxBehaviorEnab
 /*<![CDATA[*/
 Wicket.Event.add(window, "domready", function(event) { 
 Wicket.Ajax.ajax({"u":"./org.apache.wicket.ajax.AjaxBehaviorEnabledPage?0-1.IBehaviorListener.0-enabled","e":"click","c":"enabled1"});;
+Wicket.Event.publish(Wicket.Event.Topic.AJAX_HANDLERS_BOUND);
 ;});
 /*]]>*/
 </script>

http://git-wip-us.apache.org/repos/asf/wicket/blob/bb5a7e84/wicket-core/src/test/java/org/apache/wicket/ajax/AjaxHeaderContributionPage2_expected.html
----------------------------------------------------------------------
diff --git a/wicket-core/src/test/java/org/apache/wicket/ajax/AjaxHeaderContributionPage2_expected.html b/wicket-core/src/test/java/org/apache/wicket/ajax/AjaxHeaderContributionPage2_expected.html
index ba8a259..7eac222 100644
--- a/wicket-core/src/test/java/org/apache/wicket/ajax/AjaxHeaderContributionPage2_expected.html
+++ b/wicket-core/src/test/java/org/apache/wicket/ajax/AjaxHeaderContributionPage2_expected.html
@@ -25,6 +25,7 @@ Wicket.Event.add(window, "domready", function(event) {
 domReady();;
 domReadyB();;
 Wicket.Ajax.ajax({"u":"./org.apache.wicket.ajax.AjaxHeaderContributionPage2?0-1.IBehaviorListener.0-link","e":"click","c":"link1"});;
+Wicket.Event.publish(Wicket.Event.Topic.AJAX_HANDLERS_BOUND);
 ;});
 /*]]>*/
 </script>

http://git-wip-us.apache.org/repos/asf/wicket/blob/bb5a7e84/wicket-core/src/test/java/org/apache/wicket/ajax/AjaxHeaderContributionPage_expected.html
----------------------------------------------------------------------
diff --git a/wicket-core/src/test/java/org/apache/wicket/ajax/AjaxHeaderContributionPage_expected.html b/wicket-core/src/test/java/org/apache/wicket/ajax/AjaxHeaderContributionPage_expected.html
index 2c89f83..f6b63c8 100644
--- a/wicket-core/src/test/java/org/apache/wicket/ajax/AjaxHeaderContributionPage_expected.html
+++ b/wicket-core/src/test/java/org/apache/wicket/ajax/AjaxHeaderContributionPage_expected.html
@@ -21,6 +21,7 @@ Wicket.Ajax.baseUrl="wicket/bookmarkable/org.apache.wicket.ajax.AjaxHeaderContri
 Wicket.Event.add(window, "domready", function(event) { 
 domReady();;
 Wicket.Ajax.ajax({"u":"./org.apache.wicket.ajax.AjaxHeaderContributionPage?0-1.IBehaviorListener.0-link","e":"click","c":"link1"});;
+Wicket.Event.publish(Wicket.Event.Topic.AJAX_HANDLERS_BOUND);
 ;});
 /*]]>*/
 </script>

http://git-wip-us.apache.org/repos/asf/wicket/blob/bb5a7e84/wicket-core/src/test/java/org/apache/wicket/ajax/DomReadyOrderPage_expected.html
----------------------------------------------------------------------
diff --git a/wicket-core/src/test/java/org/apache/wicket/ajax/DomReadyOrderPage_expected.html b/wicket-core/src/test/java/org/apache/wicket/ajax/DomReadyOrderPage_expected.html
index 67c9259..9fa0314 100644
--- a/wicket-core/src/test/java/org/apache/wicket/ajax/DomReadyOrderPage_expected.html
+++ b/wicket-core/src/test/java/org/apache/wicket/ajax/DomReadyOrderPage_expected.html
@@ -19,6 +19,7 @@ Wicket.Event.add(window, "domready", function(event) {
 Wicket.Ajax.ajax({"u":"./org.apache.wicket.ajax.DomReadyOrderPage?0-1.IBehaviorListener.0-test","e":"click","c":"test1"});;
 test1();;
 test2();;
+Wicket.Event.publish(Wicket.Event.Topic.AJAX_HANDLERS_BOUND);
 ;});
 /*]]>*/
 </script>

http://git-wip-us.apache.org/repos/asf/wicket/blob/bb5a7e84/wicket-core/src/test/java/org/apache/wicket/ajax/form/AjaxFormSubmitTestPage_expected.html
----------------------------------------------------------------------
diff --git a/wicket-core/src/test/java/org/apache/wicket/ajax/form/AjaxFormSubmitTestPage_expected.html b/wicket-core/src/test/java/org/apache/wicket/ajax/form/AjaxFormSubmitTestPage_expected.html
index d187a06..3b43370 100644
--- a/wicket-core/src/test/java/org/apache/wicket/ajax/form/AjaxFormSubmitTestPage_expected.html
+++ b/wicket-core/src/test/java/org/apache/wicket/ajax/form/AjaxFormSubmitTestPage_expected.html
@@ -17,6 +17,7 @@ Wicket.Ajax.baseUrl="wicket/bookmarkable/org.apache.wicket.ajax.form.AjaxFormSub
 /*<![CDATA[*/
 Wicket.Event.add(window, "domready", function(event) { 
 Wicket.Ajax.ajax({"f":"form1","u":"./org.apache.wicket.ajax.form.AjaxFormSubmitTestPage?0-1.IBehaviorListener.0-form-submit","e":"click","c":"submit2","sc":"p::submit","m":"POST"});;
+Wicket.Event.publish(Wicket.Event.Topic.AJAX_HANDLERS_BOUND);
 ;});
 /*]]>*/
 </script>

http://git-wip-us.apache.org/repos/asf/wicket/blob/bb5a7e84/wicket-core/src/test/java/org/apache/wicket/ajax/form/OnChangeAjaxBehaviorTestPage_expected.html
----------------------------------------------------------------------
diff --git a/wicket-core/src/test/java/org/apache/wicket/ajax/form/OnChangeAjaxBehaviorTestPage_expected.html b/wicket-core/src/test/java/org/apache/wicket/ajax/form/OnChangeAjaxBehaviorTestPage_expected.html
index 9cca96d..2754fad 100644
--- a/wicket-core/src/test/java/org/apache/wicket/ajax/form/OnChangeAjaxBehaviorTestPage_expected.html
+++ b/wicket-core/src/test/java/org/apache/wicket/ajax/form/OnChangeAjaxBehaviorTestPage_expected.html
@@ -18,6 +18,7 @@ Wicket.Ajax.baseUrl="wicket/bookmarkable/org.apache.wicket.ajax.form.OnChangeAja
 Wicket.Event.add(window, "domready", function(event) { 
 Wicket.Ajax.ajax({"u":"./org.apache.wicket.ajax.form.OnChangeAjaxBehaviorTestPage?0-1.IBehaviorListener.0-form-field","e":"inputchange change","c":"field1","ad":true,"m":"POST"});;
 Wicket.Ajax.ajax({"u":"./org.apache.wicket.ajax.form.OnChangeAjaxBehaviorTestPage?0-1.IBehaviorListener.0-form-dropDown","e":"change","c":"dropDown2","ad":true,"m":"POST"});;
+Wicket.Event.publish(Wicket.Event.Topic.AJAX_HANDLERS_BOUND);
 ;});
 /*]]>*/
 </script>

http://git-wip-us.apache.org/repos/asf/wicket/blob/bb5a7e84/wicket-core/src/test/java/org/apache/wicket/ajax/markup/html/ajaxLink/AjaxLinkPageExpectedResult.html
----------------------------------------------------------------------
diff --git a/wicket-core/src/test/java/org/apache/wicket/ajax/markup/html/ajaxLink/AjaxLinkPageExpectedResult.html b/wicket-core/src/test/java/org/apache/wicket/ajax/markup/html/ajaxLink/AjaxLinkPageExpectedResult.html
index 1ff2a34..9e2d233 100644
--- a/wicket-core/src/test/java/org/apache/wicket/ajax/markup/html/ajaxLink/AjaxLinkPageExpectedResult.html
+++ b/wicket-core/src/test/java/org/apache/wicket/ajax/markup/html/ajaxLink/AjaxLinkPageExpectedResult.html
@@ -17,6 +17,7 @@ Wicket.Ajax.baseUrl="wicket/bookmarkable/org.apache.wicket.ajax.markup.html.ajax
 /*<![CDATA[*/
 Wicket.Event.add(window, "domready", function(event) { 
 Wicket.Ajax.ajax({"u":"./org.apache.wicket.ajax.markup.html.ajaxLink.AjaxLinkPage?0-1.IBehaviorListener.0-ajaxLink","e":"click","c":"ajaxLink1"});;
+Wicket.Event.publish(Wicket.Event.Topic.AJAX_HANDLERS_BOUND);
 ;});
 /*]]>*/
 </script>

http://git-wip-us.apache.org/repos/asf/wicket/blob/bb5a7e84/wicket-core/src/test/java/org/apache/wicket/ajax/markup/html/ajaxLink/AjaxLinkWithBorderPageExpectedResult.html
----------------------------------------------------------------------
diff --git a/wicket-core/src/test/java/org/apache/wicket/ajax/markup/html/ajaxLink/AjaxLinkWithBorderPageExpectedResult.html b/wicket-core/src/test/java/org/apache/wicket/ajax/markup/html/ajaxLink/AjaxLinkWithBorderPageExpectedResult.html
index eb3464f..4703e5e 100644
--- a/wicket-core/src/test/java/org/apache/wicket/ajax/markup/html/ajaxLink/AjaxLinkWithBorderPageExpectedResult.html
+++ b/wicket-core/src/test/java/org/apache/wicket/ajax/markup/html/ajaxLink/AjaxLinkWithBorderPageExpectedResult.html
@@ -17,6 +17,7 @@ Wicket.Ajax.baseUrl="wicket/bookmarkable/org.apache.wicket.ajax.markup.html.ajax
 /*<![CDATA[*/
 Wicket.Event.add(window, "domready", function(event) { 
 Wicket.Ajax.ajax({"u":"./org.apache.wicket.ajax.markup.html.ajaxLink.AjaxLinkWithBorderPage?0-1.IBehaviorListener.0-border-border_body-ajaxLink","e":"click","c":"ajaxLink1"});;
+Wicket.Event.publish(Wicket.Event.Topic.AJAX_HANDLERS_BOUND);
 ;});
 /*]]>*/
 </script>

http://git-wip-us.apache.org/repos/asf/wicket/blob/bb5a7e84/wicket-core/src/test/java/org/apache/wicket/ajax/markup/html/ajaxLink/AjaxPage2_ExpectedResult.html
----------------------------------------------------------------------
diff --git a/wicket-core/src/test/java/org/apache/wicket/ajax/markup/html/ajaxLink/AjaxPage2_ExpectedResult.html b/wicket-core/src/test/java/org/apache/wicket/ajax/markup/html/ajaxLink/AjaxPage2_ExpectedResult.html
index 38a6af6..9d86162 100644
--- a/wicket-core/src/test/java/org/apache/wicket/ajax/markup/html/ajaxLink/AjaxPage2_ExpectedResult.html
+++ b/wicket-core/src/test/java/org/apache/wicket/ajax/markup/html/ajaxLink/AjaxPage2_ExpectedResult.html
@@ -17,6 +17,7 @@ Wicket.Ajax.baseUrl="wicket/bookmarkable/org.apache.wicket.ajax.markup.html.ajax
 /*<![CDATA[*/
 Wicket.Event.add(window, "domready", function(event) { 
 Wicket.Ajax.ajax({"u":"./org.apache.wicket.ajax.markup.html.ajaxLink.AjaxPage2?0-1.IBehaviorListener.0-pageLayout-pageLayout_body-ajaxLink","e":"click","c":"ajaxLink1"});;
+Wicket.Event.publish(Wicket.Event.Topic.AJAX_HANDLERS_BOUND);
 ;});
 /*]]>*/
 </script>

http://git-wip-us.apache.org/repos/asf/wicket/blob/bb5a7e84/wicket-core/src/test/java/org/apache/wicket/markup/html/basic/SimplePageExpectedResult_13.html
----------------------------------------------------------------------
diff --git a/wicket-core/src/test/java/org/apache/wicket/markup/html/basic/SimplePageExpectedResult_13.html b/wicket-core/src/test/java/org/apache/wicket/markup/html/basic/SimplePageExpectedResult_13.html
index d2661bd..fb32d8a 100644
--- a/wicket-core/src/test/java/org/apache/wicket/markup/html/basic/SimplePageExpectedResult_13.html
+++ b/wicket-core/src/test/java/org/apache/wicket/markup/html/basic/SimplePageExpectedResult_13.html
@@ -21,6 +21,7 @@ Wicket.Ajax.baseUrl="wicket/bookmarkable/org.apache.wicket.markup.html.basic.Sim
 /*<![CDATA[*/
 Wicket.Event.add(window, "domready", function(event) { 
 Wicket.Ajax.ajax({"u":"./org.apache.wicket.markup.html.basic.SimplePage_13?0-1.IBehaviorListener.0-html","e":"click","c":"html1"});;
+Wicket.Event.publish(Wicket.Event.Topic.AJAX_HANDLERS_BOUND);
 ;});
 /*]]>*/
 </script>

http://git-wip-us.apache.org/repos/asf/wicket/blob/bb5a7e84/wicket-core/src/test/java/org/apache/wicket/markup/html/border/HideableBorderPage_ExpectedResult.html
----------------------------------------------------------------------
diff --git a/wicket-core/src/test/java/org/apache/wicket/markup/html/border/HideableBorderPage_ExpectedResult.html b/wicket-core/src/test/java/org/apache/wicket/markup/html/border/HideableBorderPage_ExpectedResult.html
index ee47d86..4b811da 100644
--- a/wicket-core/src/test/java/org/apache/wicket/markup/html/border/HideableBorderPage_ExpectedResult.html
+++ b/wicket-core/src/test/java/org/apache/wicket/markup/html/border/HideableBorderPage_ExpectedResult.html
@@ -17,6 +17,7 @@ Wicket.Ajax.baseUrl="wicket/bookmarkable/org.apache.wicket.markup.html.border.Hi
 /*<![CDATA[*/
 Wicket.Event.add(window, "domready", function(event) { 
 Wicket.Ajax.ajax({"u":"./org.apache.wicket.markup.html.border.HideableBorderPage?0-1.IBehaviorListener.0-hideable-hideLink","e":"click","c":"hideLink1"});;
+Wicket.Event.publish(Wicket.Event.Topic.AJAX_HANDLERS_BOUND);
 ;});
 /*]]>*/
 </script>

http://git-wip-us.apache.org/repos/asf/wicket/blob/bb5a7e84/wicket-core/src/test/java/org/apache/wicket/markup/html/panel/InlinePanelPageExpectedResult_7.html
----------------------------------------------------------------------
diff --git a/wicket-core/src/test/java/org/apache/wicket/markup/html/panel/InlinePanelPageExpectedResult_7.html b/wicket-core/src/test/java/org/apache/wicket/markup/html/panel/InlinePanelPageExpectedResult_7.html
index a404946..cfe5690 100644
--- a/wicket-core/src/test/java/org/apache/wicket/markup/html/panel/InlinePanelPageExpectedResult_7.html
+++ b/wicket-core/src/test/java/org/apache/wicket/markup/html/panel/InlinePanelPageExpectedResult_7.html
@@ -17,6 +17,7 @@ Wicket.Ajax.baseUrl="wicket/bookmarkable/org.apache.wicket.markup.html.panel.Inl
 /*<![CDATA[*/
 Wicket.Event.add(window, "domready", function(event) { 
 Wicket.Ajax.ajax({"u":"./org.apache.wicket.markup.html.panel.InlinePanelPage_7?0-1.IBehaviorListener.0-provider-ajaxRefresh","e":"click","c":"ajaxRefresh1"});;
+Wicket.Event.publish(Wicket.Event.Topic.AJAX_HANDLERS_BOUND);
 ;});
 /*]]>*/
 </script>

http://git-wip-us.apache.org/repos/asf/wicket/blob/bb5a7e84/wicket-core/src/test/java/org/apache/wicket/markup/html/panel/InlinePanelPageExpectedResult_8.html
----------------------------------------------------------------------
diff --git a/wicket-core/src/test/java/org/apache/wicket/markup/html/panel/InlinePanelPageExpectedResult_8.html b/wicket-core/src/test/java/org/apache/wicket/markup/html/panel/InlinePanelPageExpectedResult_8.html
index e17c5cb..d7dfd54 100644
--- a/wicket-core/src/test/java/org/apache/wicket/markup/html/panel/InlinePanelPageExpectedResult_8.html
+++ b/wicket-core/src/test/java/org/apache/wicket/markup/html/panel/InlinePanelPageExpectedResult_8.html
@@ -17,6 +17,7 @@ Wicket.Ajax.baseUrl="wicket/bookmarkable/org.apache.wicket.markup.html.panel.Inl
 /*<![CDATA[*/
 Wicket.Event.add(window, "domready", function(event) { 
 Wicket.Ajax.ajax({"u":"./org.apache.wicket.markup.html.panel.InlinePanelPage_8?0-1.IBehaviorListener.0-add","e":"click","c":"add1"});;
+Wicket.Event.publish(Wicket.Event.Topic.AJAX_HANDLERS_BOUND);
 ;});
 /*]]>*/
 </script>

http://git-wip-us.apache.org/repos/asf/wicket/blob/bb5a7e84/wicket-core/src/test/java/org/apache/wicket/resource/aggregator/ResourceAggregatorTest1Page_results.html
----------------------------------------------------------------------
diff --git a/wicket-core/src/test/java/org/apache/wicket/resource/aggregator/ResourceAggregatorTest1Page_results.html b/wicket-core/src/test/java/org/apache/wicket/resource/aggregator/ResourceAggregatorTest1Page_results.html
index 22761a9..c2d9f5e 100644
--- a/wicket-core/src/test/java/org/apache/wicket/resource/aggregator/ResourceAggregatorTest1Page_results.html
+++ b/wicket-core/src/test/java/org/apache/wicket/resource/aggregator/ResourceAggregatorTest1Page_results.html
@@ -9,6 +9,7 @@
 /*<![CDATA[*/
 Wicket.Event.add(window, "domready", function(event) { 
 alert('Hello World!');;
+Wicket.Event.publish(Wicket.Event.Topic.AJAX_HANDLERS_BOUND);
 ;});
 /*]]>*/
 </script>

http://git-wip-us.apache.org/repos/asf/wicket/blob/bb5a7e84/wicket-core/src/test/java/org/apache/wicket/resource/aggregator/ResourceAggregatorTest2Page_results.html
----------------------------------------------------------------------
diff --git a/wicket-core/src/test/java/org/apache/wicket/resource/aggregator/ResourceAggregatorTest2Page_results.html b/wicket-core/src/test/java/org/apache/wicket/resource/aggregator/ResourceAggregatorTest2Page_results.html
index 87b6c7e..4478274 100644
--- a/wicket-core/src/test/java/org/apache/wicket/resource/aggregator/ResourceAggregatorTest2Page_results.html
+++ b/wicket-core/src/test/java/org/apache/wicket/resource/aggregator/ResourceAggregatorTest2Page_results.html
@@ -10,6 +10,7 @@
 /*<![CDATA[*/
 Wicket.Event.add(window, "domready", function(event) { 
 alert('Hello World!');;
+Wicket.Event.publish(Wicket.Event.Topic.AJAX_HANDLERS_BOUND);
 ;});
 /*]]>*/
 </script>

http://git-wip-us.apache.org/repos/asf/wicket/blob/bb5a7e84/wicket-datetime/src/test/java/org/apache/wicket/extensions/yui/calendar/DatesPage1_ExpectedResult.html
----------------------------------------------------------------------
diff --git a/wicket-datetime/src/test/java/org/apache/wicket/extensions/yui/calendar/DatesPage1_ExpectedResult.html b/wicket-datetime/src/test/java/org/apache/wicket/extensions/yui/calendar/DatesPage1_ExpectedResult.html
index 7ac678f..51add5d 100644
--- a/wicket-datetime/src/test/java/org/apache/wicket/extensions/yui/calendar/DatesPage1_ExpectedResult.html
+++ b/wicket-datetime/src/test/java/org/apache/wicket/extensions/yui/calendar/DatesPage1_ExpectedResult.html
@@ -99,6 +99,7 @@ Wicket.DateTimeInit.CalendarAdd(function() {
 	
 });
 ;
+Wicket.Event.publish(Wicket.Event.Topic.AJAX_HANDLERS_BOUND);
 ;});
 /*]]>*/
 </script>