You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by ad...@apache.org on 2014/02/15 15:23:20 UTC

svn commit: r1568637 [3/4] - in /wicket/common/site/trunk/_site/guide/guide: ./ pages/ src/docs/guide/ src/docs/guide/resources/

Modified: wicket/common/site/trunk/_site/guide/guide/pages/security_3.html
URL: http://svn.apache.org/viewvc/wicket/common/site/trunk/_site/guide/guide/pages/security_3.html?rev=1568637&r1=1568636&r2=1568637&view=diff
==============================================================================
--- wicket/common/site/trunk/_site/guide/guide/pages/security_3.html (original)
+++ wicket/common/site/trunk/_site/guide/guide/pages/security_3.html Sat Feb 15 14:23:16 2014
@@ -212,7 +212,7 @@ function addJsClass() {
 <div id="footer">
     
 Copyright &copy; 2013-2014 — <a href="http://www.apache.org/" target="_blank">The Apache Software Foundation</a> 
-                      — <b style="color:#E8590A !important;">(Generated on: 2014-02-14)</b>
+                      — <b style="color:#E8590A !important;">(Generated on: 2014-02-15)</b>
 
     
 </div>

Modified: wicket/common/site/trunk/_site/guide/guide/pages/security_4.html
URL: http://svn.apache.org/viewvc/wicket/common/site/trunk/_site/guide/guide/pages/security_4.html?rev=1568637&r1=1568636&r2=1568637&view=diff
==============================================================================
--- wicket/common/site/trunk/_site/guide/guide/pages/security_4.html (original)
+++ wicket/common/site/trunk/_site/guide/guide/pages/security_4.html Sat Feb 15 14:23:16 2014
@@ -208,7 +208,7 @@ function addJsClass() {
 <div id="footer">
     
 Copyright &copy; 2013-2014 — <a href="http://www.apache.org/" target="_blank">The Apache Software Foundation</a> 
-                      — <b style="color:#E8590A !important;">(Generated on: 2014-02-14)</b>
+                      — <b style="color:#E8590A !important;">(Generated on: 2014-02-15)</b>
 
     
 </div>

Modified: wicket/common/site/trunk/_site/guide/guide/pages/security_5.html
URL: http://svn.apache.org/viewvc/wicket/common/site/trunk/_site/guide/guide/pages/security_5.html?rev=1568637&r1=1568636&r2=1568637&view=diff
==============================================================================
--- wicket/common/site/trunk/_site/guide/guide/pages/security_5.html (original)
+++ wicket/common/site/trunk/_site/guide/guide/pages/security_5.html Sat Feb 15 14:23:16 2014
@@ -189,7 +189,7 @@ function addJsClass() {
 <div id="footer">
     
 Copyright &copy; 2013-2014 — <a href="http://www.apache.org/" target="_blank">The Apache Software Foundation</a> 
-                      — <b style="color:#E8590A !important;">(Generated on: 2014-02-14)</b>
+                      — <b style="color:#E8590A !important;">(Generated on: 2014-02-15)</b>
 
     
 </div>

Modified: wicket/common/site/trunk/_site/guide/guide/pages/testing_1.html
URL: http://svn.apache.org/viewvc/wicket/common/site/trunk/_site/guide/guide/pages/testing_1.html?rev=1568637&r1=1568636&r2=1568637&view=diff
==============================================================================
--- wicket/common/site/trunk/_site/guide/guide/pages/testing_1.html (original)
+++ wicket/common/site/trunk/_site/guide/guide/pages/testing_1.html Sat Feb 15 14:23:16 2014
@@ -319,7 +319,7 @@ After a test method has been executed, w
 <div id="footer">
     
 Copyright &copy; 2013-2014 — <a href="http://www.apache.org/" target="_blank">The Apache Software Foundation</a> 
-                      — <b style="color:#E8590A !important;">(Generated on: 2014-02-14)</b>
+                      — <b style="color:#E8590A !important;">(Generated on: 2014-02-15)</b>
 
     
 </div>

Modified: wicket/common/site/trunk/_site/guide/guide/pages/testing_2.html
URL: http://svn.apache.org/viewvc/wicket/common/site/trunk/_site/guide/guide/pages/testing_2.html?rev=1568637&r1=1568636&r2=1568637&view=diff
==============================================================================
--- wicket/common/site/trunk/_site/guide/guide/pages/testing_2.html (original)
+++ wicket/common/site/trunk/_site/guide/guide/pages/testing_2.html Sat Feb 15 14:23:16 2014
@@ -239,7 +239,7 @@ formTester.submit(<span class="java&#45;
 <div id="footer">
     
 Copyright &copy; 2013-2014 — <a href="http://www.apache.org/" target="_blank">The Apache Software Foundation</a> 
-                      — <b style="color:#E8590A !important;">(Generated on: 2014-02-14)</b>
+                      — <b style="color:#E8590A !important;">(Generated on: 2014-02-15)</b>
 
     
 </div>

Modified: wicket/common/site/trunk/_site/guide/guide/pages/testing_3.html
URL: http://svn.apache.org/viewvc/wicket/common/site/trunk/_site/guide/guide/pages/testing_3.html?rev=1568637&r1=1568636&r2=1568637&view=diff
==============================================================================
--- wicket/common/site/trunk/_site/guide/guide/pages/testing_3.html (original)
+++ wicket/common/site/trunk/_site/guide/guide/pages/testing_3.html Sat Feb 15 14:23:16 2014
@@ -214,7 +214,7 @@ function addJsClass() {
 <div id="footer">
     
 Copyright &copy; 2013-2014 — <a href="http://www.apache.org/" target="_blank">The Apache Software Foundation</a> 
-                      — <b style="color:#E8590A !important;">(Generated on: 2014-02-14)</b>
+                      — <b style="color:#E8590A !important;">(Generated on: 2014-02-15)</b>
 
     
 </div>

Modified: wicket/common/site/trunk/_site/guide/guide/pages/testing_4.html
URL: http://svn.apache.org/viewvc/wicket/common/site/trunk/_site/guide/guide/pages/testing_4.html?rev=1568637&r1=1568636&r2=1568637&view=diff
==============================================================================
--- wicket/common/site/trunk/_site/guide/guide/pages/testing_4.html (original)
+++ wicket/common/site/trunk/_site/guide/guide/pages/testing_4.html Sat Feb 15 14:23:16 2014
@@ -189,7 +189,7 @@ function addJsClass() {
 <div id="footer">
     
 Copyright &copy; 2013-2014 — <a href="http://www.apache.org/" target="_blank">The Apache Software Foundation</a> 
-                      — <b style="color:#E8590A !important;">(Generated on: 2014-02-14)</b>
+                      — <b style="color:#E8590A !important;">(Generated on: 2014-02-15)</b>
 
     
 </div>

Modified: wicket/common/site/trunk/_site/guide/guide/pages/testingspring_1.html
URL: http://svn.apache.org/viewvc/wicket/common/site/trunk/_site/guide/guide/pages/testingspring_1.html?rev=1568637&r1=1568636&r2=1568637&view=diff
==============================================================================
--- wicket/common/site/trunk/_site/guide/guide/pages/testingspring_1.html (original)
+++ wicket/common/site/trunk/_site/guide/guide/pages/testingspring_1.html Sat Feb 15 14:23:16 2014
@@ -233,7 +233,7 @@ function addJsClass() {
 <div id="footer">
     
 Copyright &copy; 2013-2014 — <a href="http://www.apache.org/" target="_blank">The Apache Software Foundation</a> 
-                      — <b style="color:#E8590A !important;">(Generated on: 2014-02-14)</b>
+                      — <b style="color:#E8590A !important;">(Generated on: 2014-02-15)</b>
 
     
 </div>

Modified: wicket/common/site/trunk/_site/guide/guide/pages/testingspring_2.html
URL: http://svn.apache.org/viewvc/wicket/common/site/trunk/_site/guide/guide/pages/testingspring_2.html?rev=1568637&r1=1568636&r2=1568637&view=diff
==============================================================================
--- wicket/common/site/trunk/_site/guide/guide/pages/testingspring_2.html (original)
+++ wicket/common/site/trunk/_site/guide/guide/pages/testingspring_2.html Sat Feb 15 14:23:16 2014
@@ -250,7 +250,7 @@ function addJsClass() {
 <div id="footer">
     
 Copyright &copy; 2013-2014 — <a href="http://www.apache.org/" target="_blank">The Apache Software Foundation</a> 
-                      — <b style="color:#E8590A !important;">(Generated on: 2014-02-14)</b>
+                      — <b style="color:#E8590A !important;">(Generated on: 2014-02-15)</b>
 
     
 </div>

Modified: wicket/common/site/trunk/_site/guide/guide/pages/testingspring_3.html
URL: http://svn.apache.org/viewvc/wicket/common/site/trunk/_site/guide/guide/pages/testingspring_3.html?rev=1568637&r1=1568636&r2=1568637&view=diff
==============================================================================
--- wicket/common/site/trunk/_site/guide/guide/pages/testingspring_3.html (original)
+++ wicket/common/site/trunk/_site/guide/guide/pages/testingspring_3.html Sat Feb 15 14:23:16 2014
@@ -189,7 +189,7 @@ function addJsClass() {
 <div id="footer">
     
 Copyright &copy; 2013-2014 — <a href="http://www.apache.org/" target="_blank">The Apache Software Foundation</a> 
-                      — <b style="color:#E8590A !important;">(Generated on: 2014-02-14)</b>
+                      — <b style="color:#E8590A !important;">(Generated on: 2014-02-15)</b>
 
     
 </div>

Modified: wicket/common/site/trunk/_site/guide/guide/pages/urls_1.html
URL: http://svn.apache.org/viewvc/wicket/common/site/trunk/_site/guide/guide/pages/urls_1.html?rev=1568637&r1=1568636&r2=1568637&view=diff
==============================================================================
--- wicket/common/site/trunk/_site/guide/guide/pages/urls_1.html (original)
+++ wicket/common/site/trunk/_site/guide/guide/pages/urls_1.html Sat Feb 15 14:23:16 2014
@@ -215,7 +215,7 @@ pageParameters.get(1);</pre></div><p cla
 <div id="footer">
     
 Copyright &copy; 2013-2014 — <a href="http://www.apache.org/" target="_blank">The Apache Software Foundation</a> 
-                      — <b style="color:#E8590A !important;">(Generated on: 2014-02-14)</b>
+                      — <b style="color:#E8590A !important;">(Generated on: 2014-02-15)</b>
 
     
 </div>

Modified: wicket/common/site/trunk/_site/guide/guide/pages/urls_2.html
URL: http://svn.apache.org/viewvc/wicket/common/site/trunk/_site/guide/guide/pages/urls_2.html?rev=1568637&r1=1568636&r2=1568637&view=diff
==============================================================================
--- wicket/common/site/trunk/_site/guide/guide/pages/urls_2.html (original)
+++ wicket/common/site/trunk/_site/guide/guide/pages/urls_2.html Sat Feb 15 14:23:16 2014
@@ -189,7 +189,7 @@ function addJsClass() {
 <div id="footer">
     
 Copyright &copy; 2013-2014 — <a href="http://www.apache.org/" target="_blank">The Apache Software Foundation</a> 
-                      — <b style="color:#E8590A !important;">(Generated on: 2014-02-14)</b>
+                      — <b style="color:#E8590A !important;">(Generated on: 2014-02-15)</b>
 
     
 </div>

Modified: wicket/common/site/trunk/_site/guide/guide/pages/urls_3.html
URL: http://svn.apache.org/viewvc/wicket/common/site/trunk/_site/guide/guide/pages/urls_3.html?rev=1568637&r1=1568636&r2=1568637&view=diff
==============================================================================
--- wicket/common/site/trunk/_site/guide/guide/pages/urls_3.html (original)
+++ wicket/common/site/trunk/_site/guide/guide/pages/urls_3.html Sat Feb 15 14:23:16 2014
@@ -225,7 +225,7 @@ function addJsClass() {
 <div id="footer">
     
 Copyright &copy; 2013-2014 — <a href="http://www.apache.org/" target="_blank">The Apache Software Foundation</a> 
-                      — <b style="color:#E8590A !important;">(Generated on: 2014-02-14)</b>
+                      — <b style="color:#E8590A !important;">(Generated on: 2014-02-15)</b>
 
     
 </div>

Modified: wicket/common/site/trunk/_site/guide/guide/pages/urls_4.html
URL: http://svn.apache.org/viewvc/wicket/common/site/trunk/_site/guide/guide/pages/urls_4.html?rev=1568637&r1=1568636&r2=1568637&view=diff
==============================================================================
--- wicket/common/site/trunk/_site/guide/guide/pages/urls_4.html (original)
+++ wicket/common/site/trunk/_site/guide/guide/pages/urls_4.html Sat Feb 15 14:23:16 2014
@@ -196,7 +196,7 @@ add(<span class="java&#45;keyword">new</
 <div id="footer">
     
 Copyright &copy; 2013-2014 — <a href="http://www.apache.org/" target="_blank">The Apache Software Foundation</a> 
-                      — <b style="color:#E8590A !important;">(Generated on: 2014-02-14)</b>
+                      — <b style="color:#E8590A !important;">(Generated on: 2014-02-15)</b>
 
     
 </div>

Modified: wicket/common/site/trunk/_site/guide/guide/pages/urls_5.html
URL: http://svn.apache.org/viewvc/wicket/common/site/trunk/_site/guide/guide/pages/urls_5.html?rev=1568637&r1=1568636&r2=1568637&view=diff
==============================================================================
--- wicket/common/site/trunk/_site/guide/guide/pages/urls_5.html (original)
+++ wicket/common/site/trunk/_site/guide/guide/pages/urls_5.html Sat Feb 15 14:23:16 2014
@@ -201,7 +201,7 @@ function addJsClass() {
 <div id="footer">
     
 Copyright &copy; 2013-2014 — <a href="http://www.apache.org/" target="_blank">The Apache Software Foundation</a> 
-                      — <b style="color:#E8590A !important;">(Generated on: 2014-02-14)</b>
+                      — <b style="color:#E8590A !important;">(Generated on: 2014-02-15)</b>
 
     
 </div>

Modified: wicket/common/site/trunk/_site/guide/guide/pages/urls_6.html
URL: http://svn.apache.org/viewvc/wicket/common/site/trunk/_site/guide/guide/pages/urls_6.html?rev=1568637&r1=1568636&r2=1568637&view=diff
==============================================================================
--- wicket/common/site/trunk/_site/guide/guide/pages/urls_6.html (original)
+++ wicket/common/site/trunk/_site/guide/guide/pages/urls_6.html Sat Feb 15 14:23:16 2014
@@ -230,7 +230,7 @@ setResponsePage(MountedPageWithPlacehold
 <div id="footer">
     
 Copyright &copy; 2013-2014 — <a href="http://www.apache.org/" target="_blank">The Apache Software Foundation</a> 
-                      — <b style="color:#E8590A !important;">(Generated on: 2014-02-14)</b>
+                      — <b style="color:#E8590A !important;">(Generated on: 2014-02-15)</b>
 
     
 </div>

Modified: wicket/common/site/trunk/_site/guide/guide/pages/urls_7.html
URL: http://svn.apache.org/viewvc/wicket/common/site/trunk/_site/guide/guide/pages/urls_7.html?rev=1568637&r1=1568636&r2=1568637&view=diff
==============================================================================
--- wicket/common/site/trunk/_site/guide/guide/pages/urls_7.html (original)
+++ wicket/common/site/trunk/_site/guide/guide/pages/urls_7.html Sat Feb 15 14:23:16 2014
@@ -189,7 +189,7 @@ function addJsClass() {
 <div id="footer">
     
 Copyright &copy; 2013-2014 — <a href="http://www.apache.org/" target="_blank">The Apache Software Foundation</a> 
-                      — <b style="color:#E8590A !important;">(Generated on: 2014-02-14)</b>
+                      — <b style="color:#E8590A !important;">(Generated on: 2014-02-15)</b>
 
     
 </div>

Modified: wicket/common/site/trunk/_site/guide/guide/pages/versioningCaching_1.html
URL: http://svn.apache.org/viewvc/wicket/common/site/trunk/_site/guide/guide/pages/versioningCaching_1.html?rev=1568637&r1=1568636&r2=1568637&view=diff
==============================================================================
--- wicket/common/site/trunk/_site/guide/guide/pages/versioningCaching_1.html (original)
+++ wicket/common/site/trunk/_site/guide/guide/pages/versioningCaching_1.html Sat Feb 15 14:23:16 2014
@@ -191,7 +191,7 @@ Stateless pages are never versioned and 
 <div id="footer">
     
 Copyright &copy; 2013-2014 — <a href="http://www.apache.org/" target="_blank">The Apache Software Foundation</a> 
-                      — <b style="color:#E8590A !important;">(Generated on: 2014-02-14)</b>
+                      — <b style="color:#E8590A !important;">(Generated on: 2014-02-15)</b>
 
     
 </div>

Modified: wicket/common/site/trunk/_site/guide/guide/pages/versioningCaching_2.html
URL: http://svn.apache.org/viewvc/wicket/common/site/trunk/_site/guide/guide/pages/versioningCaching_2.html?rev=1568637&r1=1568636&r2=1568637&view=diff
==============================================================================
--- wicket/common/site/trunk/_site/guide/guide/pages/versioningCaching_2.html (original)
+++ wicket/common/site/trunk/_site/guide/guide/pages/versioningCaching_2.html Sat Feb 15 14:23:16 2014
@@ -233,7 +233,7 @@ For the second level cache we can use th
 <div id="footer">
     
 Copyright &copy; 2013-2014 — <a href="http://www.apache.org/" target="_blank">The Apache Software Foundation</a> 
-                      — <b style="color:#E8590A !important;">(Generated on: 2014-02-14)</b>
+                      — <b style="color:#E8590A !important;">(Generated on: 2014-02-15)</b>
 
     
 </div>

Modified: wicket/common/site/trunk/_site/guide/guide/pages/versioningCaching_3.html
URL: http://svn.apache.org/viewvc/wicket/common/site/trunk/_site/guide/guide/pages/versioningCaching_3.html?rev=1568637&r1=1568636&r2=1568637&view=diff
==============================================================================
--- wicket/common/site/trunk/_site/guide/guide/pages/versioningCaching_3.html (original)
+++ wicket/common/site/trunk/_site/guide/guide/pages/versioningCaching_3.html Sat Feb 15 14:23:16 2014
@@ -212,7 +212,7 @@ Page '&#60;page class&#62;' is not state
 <div id="footer">
     
 Copyright &copy; 2013-2014 — <a href="http://www.apache.org/" target="_blank">The Apache Software Foundation</a> 
-                      — <b style="color:#E8590A !important;">(Generated on: 2014-02-14)</b>
+                      — <b style="color:#E8590A !important;">(Generated on: 2014-02-15)</b>
 
     
 </div>

Modified: wicket/common/site/trunk/_site/guide/guide/pages/versioningCaching_4.html
URL: http://svn.apache.org/viewvc/wicket/common/site/trunk/_site/guide/guide/pages/versioningCaching_4.html?rev=1568637&r1=1568636&r2=1568637&view=diff
==============================================================================
--- wicket/common/site/trunk/_site/guide/guide/pages/versioningCaching_4.html (original)
+++ wicket/common/site/trunk/_site/guide/guide/pages/versioningCaching_4.html Sat Feb 15 14:23:16 2014
@@ -189,7 +189,7 @@ function addJsClass() {
 <div id="footer">
     
 Copyright &copy; 2013-2014 — <a href="http://www.apache.org/" target="_blank">The Apache Software Foundation</a> 
-                      — <b style="color:#E8590A !important;">(Generated on: 2014-02-14)</b>
+                      — <b style="color:#E8590A !important;">(Generated on: 2014-02-15)</b>
 
     
 </div>

Modified: wicket/common/site/trunk/_site/guide/guide/pages/whyLearn_1.html
URL: http://svn.apache.org/viewvc/wicket/common/site/trunk/_site/guide/guide/pages/whyLearn_1.html?rev=1568637&r1=1568636&r2=1568637&view=diff
==============================================================================
--- wicket/common/site/trunk/_site/guide/guide/pages/whyLearn_1.html (original)
+++ wicket/common/site/trunk/_site/guide/guide/pages/whyLearn_1.html Sat Feb 15 14:23:16 2014
@@ -190,7 +190,7 @@ However, none of these frameworks offers
 <div id="footer">
     
 Copyright &copy; 2013-2014 — <a href="http://www.apache.org/" target="_blank">The Apache Software Foundation</a> 
-                      — <b style="color:#E8590A !important;">(Generated on: 2014-02-14)</b>
+                      — <b style="color:#E8590A !important;">(Generated on: 2014-02-15)</b>
 
     
 </div>

Modified: wicket/common/site/trunk/_site/guide/guide/pages/whyLearn_2.html
URL: http://svn.apache.org/viewvc/wicket/common/site/trunk/_site/guide/guide/pages/whyLearn_2.html?rev=1568637&r1=1568636&r2=1568637&view=diff
==============================================================================
--- wicket/common/site/trunk/_site/guide/guide/pages/whyLearn_2.html (original)
+++ wicket/common/site/trunk/_site/guide/guide/pages/whyLearn_2.html Sat Feb 15 14:23:16 2014
@@ -196,7 +196,7 @@ This approach is very similar to what GU
 <div id="footer">
     
 Copyright &copy; 2013-2014 — <a href="http://www.apache.org/" target="_blank">The Apache Software Foundation</a> 
-                      — <b style="color:#E8590A !important;">(Generated on: 2014-02-14)</b>
+                      — <b style="color:#E8590A !important;">(Generated on: 2014-02-15)</b>
 
     
 </div>

Modified: wicket/common/site/trunk/_site/guide/guide/pages/whyLearn_3.html
URL: http://svn.apache.org/viewvc/wicket/common/site/trunk/_site/guide/guide/pages/whyLearn_3.html?rev=1568637&r1=1568636&r2=1568637&view=diff
==============================================================================
--- wicket/common/site/trunk/_site/guide/guide/pages/whyLearn_3.html (original)
+++ wicket/common/site/trunk/_site/guide/guide/pages/whyLearn_3.html Sat Feb 15 14:23:16 2014
@@ -195,7 +195,7 @@ Let's quickly review the main advantages
 <div id="footer">
     
 Copyright &copy; 2013-2014 — <a href="http://www.apache.org/" target="_blank">The Apache Software Foundation</a> 
-                      — <b style="color:#E8590A !important;">(Generated on: 2014-02-14)</b>
+                      — <b style="color:#E8590A !important;">(Generated on: 2014-02-15)</b>
 
     
 </div>

Modified: wicket/common/site/trunk/_site/guide/guide/pages/whyLearn_4.html
URL: http://svn.apache.org/viewvc/wicket/common/site/trunk/_site/guide/guide/pages/whyLearn_4.html?rev=1568637&r1=1568636&r2=1568637&view=diff
==============================================================================
--- wicket/common/site/trunk/_site/guide/guide/pages/whyLearn_4.html (original)
+++ wicket/common/site/trunk/_site/guide/guide/pages/whyLearn_4.html Sat Feb 15 14:23:16 2014
@@ -196,7 +196,7 @@ Wicket is not the only component oriente
 <div id="footer">
     
 Copyright &copy; 2013-2014 — <a href="http://www.apache.org/" target="_blank">The Apache Software Foundation</a> 
-                      — <b style="color:#E8590A !important;">(Generated on: 2014-02-14)</b>
+                      — <b style="color:#E8590A !important;">(Generated on: 2014-02-15)</b>
 
     
 </div>

Modified: wicket/common/site/trunk/_site/guide/guide/pages/wicketstuff_1.html
URL: http://svn.apache.org/viewvc/wicket/common/site/trunk/_site/guide/guide/pages/wicketstuff_1.html?rev=1568637&r1=1568636&r2=1568637&view=diff
==============================================================================
--- wicket/common/site/trunk/_site/guide/guide/pages/wicketstuff_1.html (original)
+++ wicket/common/site/trunk/_site/guide/guide/pages/wicketstuff_1.html Sat Feb 15 14:23:16 2014
@@ -194,7 +194,7 @@ Every WicketStuff module can be download
 <div id="footer">
     
 Copyright &copy; 2013-2014 — <a href="http://www.apache.org/" target="_blank">The Apache Software Foundation</a> 
-                      — <b style="color:#E8590A !important;">(Generated on: 2014-02-14)</b>
+                      — <b style="color:#E8590A !important;">(Generated on: 2014-02-15)</b>
 
     
 </div>

Modified: wicket/common/site/trunk/_site/guide/guide/pages/wicketstuff_2.html
URL: http://svn.apache.org/viewvc/wicket/common/site/trunk/_site/guide/guide/pages/wicketstuff_2.html?rev=1568637&r1=1568636&r2=1568637&view=diff
==============================================================================
--- wicket/common/site/trunk/_site/guide/guide/pages/wicketstuff_2.html (original)
+++ wicket/common/site/trunk/_site/guide/guide/pages/wicketstuff_2.html Sat Feb 15 14:23:16 2014
@@ -213,7 +213,7 @@ textArea.add(<span class="java&#45;keywo
 <div id="footer">
     
 Copyright &copy; 2013-2014 — <a href="http://www.apache.org/" target="_blank">The Apache Software Foundation</a> 
-                      — <b style="color:#E8590A !important;">(Generated on: 2014-02-14)</b>
+                      — <b style="color:#E8590A !important;">(Generated on: 2014-02-15)</b>
 
     
 </div>

Modified: wicket/common/site/trunk/_site/guide/guide/pages/wicketstuff_3.html
URL: http://svn.apache.org/viewvc/wicket/common/site/trunk/_site/guide/guide/pages/wicketstuff_3.html?rev=1568637&r1=1568636&r2=1568637&view=diff
==============================================================================
--- wicket/common/site/trunk/_site/guide/guide/pages/wicketstuff_3.html (original)
+++ wicket/common/site/trunk/_site/guide/guide/pages/wicketstuff_3.html Sat Feb 15 14:23:16 2014
@@ -204,7 +204,7 @@ function addJsClass() {
 <div id="footer">
     
 Copyright &copy; 2013-2014 — <a href="http://www.apache.org/" target="_blank">The Apache Software Foundation</a> 
-                      — <b style="color:#E8590A !important;">(Generated on: 2014-02-14)</b>
+                      — <b style="color:#E8590A !important;">(Generated on: 2014-02-15)</b>
 
     
 </div>

Modified: wicket/common/site/trunk/_site/guide/guide/pages/wicketstuff_4.html
URL: http://svn.apache.org/viewvc/wicket/common/site/trunk/_site/guide/guide/pages/wicketstuff_4.html?rev=1568637&r1=1568636&r2=1568637&view=diff
==============================================================================
--- wicket/common/site/trunk/_site/guide/guide/pages/wicketstuff_4.html (original)
+++ wicket/common/site/trunk/_site/guide/guide/pages/wicketstuff_4.html Sat Feb 15 14:23:16 2014
@@ -198,7 +198,7 @@ add(<span class="java&#45;keyword">new</
 <div id="footer">
     
 Copyright &copy; 2013-2014 — <a href="http://www.apache.org/" target="_blank">The Apache Software Foundation</a> 
-                      — <b style="color:#E8590A !important;">(Generated on: 2014-02-14)</b>
+                      — <b style="color:#E8590A !important;">(Generated on: 2014-02-15)</b>
 
     
 </div>

Modified: wicket/common/site/trunk/_site/guide/guide/pages/wicketstuff_5.html
URL: http://svn.apache.org/viewvc/wicket/common/site/trunk/_site/guide/guide/pages/wicketstuff_5.html?rev=1568637&r1=1568636&r2=1568637&view=diff
==============================================================================
--- wicket/common/site/trunk/_site/guide/guide/pages/wicketstuff_5.html (original)
+++ wicket/common/site/trunk/_site/guide/guide/pages/wicketstuff_5.html Sat Feb 15 14:23:16 2014
@@ -197,7 +197,7 @@ add(grid);</pre></div><p class="paragrap
 <div id="footer">
     
 Copyright &copy; 2013-2014 — <a href="http://www.apache.org/" target="_blank">The Apache Software Foundation</a> 
-                      — <b style="color:#E8590A !important;">(Generated on: 2014-02-14)</b>
+                      — <b style="color:#E8590A !important;">(Generated on: 2014-02-15)</b>
 
     
 </div>

Modified: wicket/common/site/trunk/_site/guide/guide/redirects.html
URL: http://svn.apache.org/viewvc/wicket/common/site/trunk/_site/guide/guide/redirects.html?rev=1568637&r1=1568636&r2=1568637&view=diff
==============================================================================
--- wicket/common/site/trunk/_site/guide/guide/redirects.html (original)
+++ wicket/common/site/trunk/_site/guide/guide/redirects.html Sat Feb 15 14:23:16 2014
@@ -224,7 +224,7 @@ Quite a few teams have already got stuck
 <div id="footer">
     
 Copyright &copy; 2013-2014 — <a href="http://www.apache.org/" target="_blank">The Apache Software Foundation</a> 
-                      — <b style="color:#E8590A !important;">(Generated on: 2014-02-14)</b>
+                      — <b style="color:#E8590A !important;">(Generated on: 2014-02-15)</b>
 
     
 </div>

Modified: wicket/common/site/trunk/_site/guide/guide/repeaters.html
URL: http://svn.apache.org/viewvc/wicket/common/site/trunk/_site/guide/guide/repeaters.html?rev=1568637&r1=1568636&r2=1568637&view=diff
==============================================================================
--- wicket/common/site/trunk/_site/guide/guide/repeaters.html (original)
+++ wicket/common/site/trunk/_site/guide/guide/repeaters.html Sat Feb 15 14:23:16 2014
@@ -348,7 +348,7 @@ Wicket provides also component PageableL
 <div id="footer">
     
 Copyright &copy; 2013-2014 — <a href="http://www.apache.org/" target="_blank">The Apache Software Foundation</a> 
-                      — <b style="color:#E8590A !important;">(Generated on: 2014-02-14)</b>
+                      — <b style="color:#E8590A !important;">(Generated on: 2014-02-15)</b>
 
     
 </div>

Modified: wicket/common/site/trunk/_site/guide/guide/requestProcessing.html
URL: http://svn.apache.org/viewvc/wicket/common/site/trunk/_site/guide/guide/requestProcessing.html?rev=1568637&r1=1568636&r2=1568637&view=diff
==============================================================================
--- wicket/common/site/trunk/_site/guide/guide/requestProcessing.html (original)
+++ wicket/common/site/trunk/_site/guide/guide/requestProcessing.html Sat Feb 15 14:23:16 2014
@@ -309,7 +309,7 @@ Remember that invalidateNow() will immed
 <div id="footer">
     
 Copyright &copy; 2013-2014 — <a href="http://www.apache.org/" target="_blank">The Apache Software Foundation</a> 
-                      — <b style="color:#E8590A !important;">(Generated on: 2014-02-14)</b>
+                      — <b style="color:#E8590A !important;">(Generated on: 2014-02-15)</b>
 
     
 </div>

Modified: wicket/common/site/trunk/_site/guide/guide/resources.html
URL: http://svn.apache.org/viewvc/wicket/common/site/trunk/_site/guide/guide/resources.html?rev=1568637&r1=1568636&r2=1568637&view=diff
==============================================================================
--- wicket/common/site/trunk/_site/guide/guide/resources.html (original)
+++ wicket/common/site/trunk/_site/guide/guide/resources.html Sat Feb 15 14:23:16 2014
@@ -177,19 +177,22 @@ function addJsClass() {
                     <div class="toc-item" style="margin-left:0px"><a href="#resources_6"><strong>15.6</strong><span>Aggregate multiple risources with resource bundles</span></a>
                     </div>
                     
-                    <div class="toc-item" style="margin-left:0px"><a href="#resources_7"><strong>15.7</strong><span>Custom resources</span></a>
+                    <div class="toc-item" style="margin-left:0px"><a href="#resources_7"><strong>15.7</strong><span>Put JavaScript inside page body</span></a>
                     </div>
                     
-                    <div class="toc-item" style="margin-left:0px"><a href="#resources_8"><strong>15.8</strong><span>Mounting resources</span></a>
+                    <div class="toc-item" style="margin-left:0px"><a href="#resources_8"><strong>15.8</strong><span>Custom resources</span></a>
                     </div>
                     
-                    <div class="toc-item" style="margin-left:0px"><a href="#resources_9"><strong>15.9</strong><span>Shared resources</span></a>
+                    <div class="toc-item" style="margin-left:0px"><a href="#resources_9"><strong>15.9</strong><span>Mounting resources</span></a>
                     </div>
                     
-                    <div class="toc-item" style="margin-left:0px"><a href="#resources_10"><strong>15.10</strong><span>Customizing resource loading</span></a>
+                    <div class="toc-item" style="margin-left:0px"><a href="#resources_10"><strong>15.10</strong><span>Shared resources</span></a>
                     </div>
                     
-                    <div class="toc-item" style="margin-left:0px"><a href="#resources_11"><strong>15.11</strong><span>Summary</span></a>
+                    <div class="toc-item" style="margin-left:0px"><a href="#resources_11"><strong>15.11</strong><span>Customizing resource loading</span></a>
+                    </div>
+                    
+                    <div class="toc-item" style="margin-left:0px"><a href="#resources_12"><strong>15.12</strong><span>Summary</span></a>
                     </div>
                     
                 </div>
@@ -281,7 +284,49 @@ A specific resource reference can not be
 
 
 
-<h2 id="resources_7">15.7 Custom resources</h2>
+<h2 id="resources_7">15.7 Put JavaScript inside page body</h2>
+Some web developers prefer to put their &#60;script&#62; tags at the end of page body instead of inside the &#60;header&#62; tags:<p class="paragraph"/><div class="code"><pre>&#60;html&#62;<p class="paragraph"/>&#60;header&#62;
+//no &#60;script&#62; tag here&#8230;
+&#60;/header&#62;<p class="paragraph"/>&#60;body&#62;
+&#8230;
+&#60;script&#62;
+//one or more &#60;script&#62; tags at the end of the body
+&#60;/script&#62; 
+&#60;/body&#62;
+&#60;/html&#62;</pre></div><p class="paragraph"/>
+In Wicket we can achieve this result providing a custom <code>IHeaderResponseDecorator</code> to a our application and using Wicket tag &#60;wicket:container/&#62; to indicate where we want to render our scripts inside the page. Interface <code>IHeaderResponseDecorator</code> defines method <code>IHeaderResponse decorate(IHeaderResponse response)</code> which allows to decorate or add funtionalities to Wicket <code>IHeaderResponse</code>. Our custom <code>IHeaderResponseDecorator</code> can be registered in the application with method <code>setHeaderResponseDecorator</code>. Anytime Wicket creates an instance of <code>IHeaderResponse</code>, it will call the registered <code>IHeaderResponseDecorator</code> to decorate the header response.<p class="paragraph"/>In the example project <code>ScriptInsideBody</code> we can find a custom <code>IHeaderResponseDecorator</code> that renders CSS into the usual &#60;head&#62; tag and put JavaScricpt header items into a specific container (tag 
 &#60;wicket:container/&#62;)
+Wicket already comes with class <code>JavaScriptFilteredIntoFooterHeaderResponse</code> which wraps a <code>IHeaderResponse</code> and renders in a given container all the instances of <code>JavaScriptHeaderItem</code>.
+The following code is taken from the Application class of the project:<p class="paragraph"/><div class="code"><pre>//&#8230;
+    @Override
+    <span class="java&#45;keyword">public</span> void init()
+    &#123;
+       setHeaderResponseDecorator(<span class="java&#45;keyword">new</span> JavaScriptToBucketResponseDecorator(<span class="java&#45;quote">"footer&#45;container"</span>));
+    &#125;<p class="paragraph"/>     /&#42;&#42;
+     &#42; Decorates an original IHeaderResponse and renders all javascript items
+     &#42; (JavaScriptHeaderItem), to a specific container in the page.
+     &#42;/
+    <span class="java&#45;keyword">static</span> class JavaScriptToBucketResponseDecorator <span class="java&#45;keyword">implements</span> IHeaderResponseDecorator 
+    &#123;<p class="paragraph"/>        <span class="java&#45;keyword">private</span> <span class="java&#45;object">String</span> bucketName;<p class="paragraph"/>        <span class="java&#45;keyword">public</span> JavaScriptToBucketResponseDecorator(<span class="java&#45;object">String</span> bucketName) &#123;
+            <span class="java&#45;keyword">this</span>.bucketName = bucketName;
+        &#125;<p class="paragraph"/>        @Override
+        <span class="java&#45;keyword">public</span> IHeaderResponse decorate(IHeaderResponse response) &#123;
+            <span class="java&#45;keyword">return</span> <span class="java&#45;keyword">new</span> JavaScriptFilteredIntoFooterHeaderResponse(response, bucketName);
+        &#125;<p class="paragraph"/>    &#125;</pre></div><p class="paragraph"/>As you can see in the code above the "bucket" that will contain JavaScript tags is called <code>"footer-container"</code>. To make a use of it the developer have to add a special component called <code>HeaderResponseContainer</code> in his page:<p class="paragraph"/><div class="code"><pre>add(<span class="java&#45;keyword">new</span> HeaderResponseContainer(<span class="java&#45;quote">"someId"</span>, <span class="java&#45;quote">"filterName"</span>));</pre></div><p class="paragraph"/>Please note that <code>HeaderResponseContainer</code>'s needs also a name for the corresponding header response's filter. The markup of our page will look like this:<p class="paragraph"/><div class="code"><pre>&#60;html&#62;<p class="paragraph"/>&#60;header&#62;
+//no &#60;script&#62; tag here&#8230;
+&#60;/header&#62;<p class="paragraph"/>&#60;body&#62;
+&#60;!&#45;&#45; here we will have our JavaScript tags &#45;&#45;&#62;
+&#60;wicket:container wicket:id=<span class="java&#45;quote">"someId"</span>/&#62; 
+&#60;/body&#62;
+&#60;/html&#62;</pre></div><p class="paragraph"/>The code of the home page is the following:<p class="paragraph"/><div class="code"><pre><span class="java&#45;keyword">public</span> HomePage(<span class="java&#45;keyword">final</span> PageParameters parameters) &#123;
+        <span class="java&#45;keyword">super</span>(parameters);<p class="paragraph"/>        add(<span class="java&#45;keyword">new</span> HeaderResponseContainer(<span class="java&#45;quote">"footer&#45;container"</span>, <span class="java&#45;quote">"footer&#45;container"</span>));
+    &#125;<p class="paragraph"/>    @Override
+    <span class="java&#45;keyword">public</span> void renderHead(IHeaderResponse response) &#123;
+        response.render(JavaScriptHeaderItem.forReference(<span class="java&#45;keyword">new</span> PackageResourceReference(getClass(),
+                <span class="java&#45;quote">"javasciptLibrary.js"</span>)));<p class="paragraph"/>        response.render(OnEventHeaderItem.forScript(<span class="java&#45;quote">"'logo'"</span>, <span class="java&#45;quote">"click"</span>, <span class="java&#45;quote">"alert('Clicked me!')"</span>));
+    &#125;</pre></div><p class="paragraph"/>Looking at the code above you can note that our page adds two script to the header section: the first is an instance of <code>JavaScriptHeaderItem</code> and will be rendered in the <code>HeaderResponseContainer</code> while the second will follow the usual behavior and will be rendered inside &#60;head&#62; tag.<p class="paragraph"/><p class="paragraph"/>
+
+
+<h2 id="resources_8">15.8 Custom resources</h2>
 <p class="paragraph"/>In Wicket the best way to add dynamic functionalities to our application (such as csv export, a pdf generated on the fly, etc...) is implementing a custom resource. In this paragraph as example of custom resource we will build a basic RSS feeds generator which can be used to publish feeds on our site (project CustomResourceMounting). Instead of generating a RSS feed by hand we will use Rome framework and its utility classes.<p class="paragraph"/>As hinted above in paragraph 13.1, class <code>AbstractResource</code> can be used as base class to implement new resources. This class defines abstract method <code>newResourceResponse</code> which is invoked when the resource is requested. The following is the code of our RSS feeds generator:<p class="paragraph"/><div class="code"><pre><span class="java&#45;keyword">public</span> class RSSProducerResource <span class="java&#45;keyword">extends</span> AbstractResource &#123;<p class="paragraph"/>  @Override
   <span class="java&#45;keyword">protected</span> ResourceResponse newResourceResponse(Attributes attributes) &#123;
     ResourceResponse resourceResponse = <span class="java&#45;keyword">new</span> ResourceResponse();
@@ -306,7 +351,7 @@ A specific resource reference can not be
 &#125;</pre></div><p class="paragraph"/>Method <code>newResourceResponse</code> returns an instance of <code>ResourceResponse</code> representing the response generated by the custom resource. Since RSS feeds are based on XML, in the code above we have set the type of the response to text/xml and the text encoding to utf-8.<p class="paragraph"/>To specify the content that will be returned by our resource we must also provide an implementation of inner class <code>WriteCallback</code> which is responsible for writing content data to response's output stream. In our project we used class SyndFeedOutput from Rome framework to write our feed to response. Method <code>getFeed()</code> is just an utility method that generates a sample RSS feed (which is an instance of interface <code>com.sun.syndication.feed.synd.SyndFeed</code>).<p class="paragraph"/>Now that we have our custom resource in place, we can use it in the home page of the project. The easiest way to make a resource available 
 to users is to expose it with link component <code>ResourceLink</code>:<p class="paragraph"/><div class="code"><pre>add(<span class="java&#45;keyword">new</span> ResourceLink(<span class="java&#45;quote">"rssLink"</span>, <span class="java&#45;keyword">new</span> RSSProducerResource()));</pre></div><p class="paragraph"/>In the next paragraphs we will see how to register a resource at application-level and how to mount it to an arbitrary URL.
 
 
-<h2 id="resources_8">15.8 Mounting resources</h2>
+<h2 id="resources_9">15.9 Mounting resources</h2>
 <p class="paragraph"/>Just like pages also resources can be mounted to a specific path. Class <code>WebApplication</code> provides method <code>mountResource</code> which is almost identical to <code>mountPage</code> seen in paragraph 8.6.1:<p class="paragraph"/><div class="code"><pre>@Override
 <span class="java&#45;keyword">public</span> void init() &#123;
   <span class="java&#45;keyword">super</span>.init();
@@ -332,7 +377,7 @@ A specific resource reference can not be
 &#125;</pre></div>
 
 
-<h2 id="resources_9">15.9 Shared resources</h2>
+<h2 id="resources_10">15.10 Shared resources</h2>
 <p class="paragraph"/>Resources can be added to a global registry in order to share them at application-level. Shared resources are identified by an application-scoped key and they can be easily retrieved at a later time using reference class <code>SharedResourceReference</code>. The global registry can be accessed with <code>Application</code>'s method <code>getSharedResources</code>. In the following excerpt of code (taken again from project <code>CustomResourceMounting</code>) we register an instance of our custom RSS feeds producer as application-shared resource:<p class="paragraph"/><div class="code"><pre>//init application's method
   @Override
   <span class="java&#45;keyword">public</span> void init()&#123;
@@ -346,7 +391,7 @@ Remember that we can get the URL of a re
 </blockquote>
 
 
-<h2 id="resources_10">15.10 Customizing resource loading</h2>
+<h2 id="resources_11">15.11 Customizing resource loading</h2>
 <p class="paragraph"/>Wicket loads application's resources delegating this task to a resource locator represented by interface <code>org.apache.wicket.core.util.resource.locator.IResourceStreamLocator</code>. To retrieve or modify the current resource locator we can use the getter and setter methods defined by setting interface <code>IResourceSettings</code>:<p class="paragraph"/><div class="code"><pre>//init application's method
   @Override
   <span class="java&#45;keyword">public</span> void init()&#123;   
@@ -364,7 +409,7 @@ By default, if resource files can not be
 </blockquote>
 
 
-<h2 id="resources_11">15.11 Summary</h2>
+<h2 id="resources_12">15.12 Summary</h2>
 In this chapter we have learnt how to manage resources with the built-in mechanism provided by Wicket. With this mechanism we handle resources from Java code and Wicket will automatically take care of generating a valid URL for them. We have also seen how resources can be bundled as package resources with a component that depends on them to make it self-contained.<p class="paragraph"/>Then, in the second part of the chapter, we have built a custom resource and we have learnt how to mount it to an arbitrary URL and how to make it globally available as shared resource.<p class="paragraph"/>Finally, in the last part of the paragraph we took a peek at the mechanism provided by the framework to customize the locations where the resource-lookup algorithm searches for resources. 
 
 
@@ -395,7 +440,7 @@ In this chapter we have learnt how to ma
 <div id="footer">
     
 Copyright &copy; 2013-2014 — <a href="http://www.apache.org/" target="_blank">The Apache Software Foundation</a> 
-                      — <b style="color:#E8590A !important;">(Generated on: 2014-02-14)</b>
+                      — <b style="color:#E8590A !important;">(Generated on: 2014-02-15)</b>
 
     
 </div>

Modified: wicket/common/site/trunk/_site/guide/guide/security.html
URL: http://svn.apache.org/viewvc/wicket/common/site/trunk/_site/guide/guide/security.html?rev=1568637&r1=1568636&r2=1568637&view=diff
==============================================================================
--- wicket/common/site/trunk/_site/guide/guide/security.html (original)
+++ wicket/common/site/trunk/_site/guide/guide/security.html Sat Feb 15 14:23:16 2014
@@ -457,7 +457,7 @@ Application class <code>AuthenticatedWeb
 <div id="footer">
     
 Copyright &copy; 2013-2014 — <a href="http://www.apache.org/" target="_blank">The Apache Software Foundation</a> 
-                      — <b style="color:#E8590A !important;">(Generated on: 2014-02-14)</b>
+                      — <b style="color:#E8590A !important;">(Generated on: 2014-02-15)</b>
 
     
 </div>

Modified: wicket/common/site/trunk/_site/guide/guide/single.html
URL: http://svn.apache.org/viewvc/wicket/common/site/trunk/_site/guide/guide/single.html?rev=1568637&r1=1568636&r2=1568637&view=diff
==============================================================================
--- wicket/common/site/trunk/_site/guide/guide/single.html (original)
+++ wicket/common/site/trunk/_site/guide/guide/single.html Sat Feb 15 14:23:16 2014
@@ -318,15 +318,17 @@ function addJsClass(el) {
                             
                             <div class="toc-item" style="margin-left:10px"><a href="#resources_6"><strong>15.6</strong><span>Aggregate multiple risources with resource bundles</span></a></div>
                             
-                            <div class="toc-item" style="margin-left:10px"><a href="#resources_7"><strong>15.7</strong><span>Custom resources</span></a></div>
+                            <div class="toc-item" style="margin-left:10px"><a href="#resources_7"><strong>15.7</strong><span>Put JavaScript inside page body</span></a></div>
                             
-                            <div class="toc-item" style="margin-left:10px"><a href="#resources_8"><strong>15.8</strong><span>Mounting resources</span></a></div>
+                            <div class="toc-item" style="margin-left:10px"><a href="#resources_8"><strong>15.8</strong><span>Custom resources</span></a></div>
                             
-                            <div class="toc-item" style="margin-left:10px"><a href="#resources_9"><strong>15.9</strong><span>Shared resources</span></a></div>
+                            <div class="toc-item" style="margin-left:10px"><a href="#resources_9"><strong>15.9</strong><span>Mounting resources</span></a></div>
                             
-                            <div class="toc-item" style="margin-left:10px"><a href="#resources_10"><strong>15.10</strong><span>Customizing resource loading</span></a></div>
+                            <div class="toc-item" style="margin-left:10px"><a href="#resources_10"><strong>15.10</strong><span>Shared resources</span></a></div>
                             
-                            <div class="toc-item" style="margin-left:10px"><a href="#resources_11"><strong>15.11</strong><span>Summary</span></a></div>
+                            <div class="toc-item" style="margin-left:10px"><a href="#resources_11"><strong>15.11</strong><span>Customizing resource loading</span></a></div>
+                            
+                            <div class="toc-item" style="margin-left:10px"><a href="#resources_12"><strong>15.12</strong><span>Summary</span></a></div>
                             
                             <div class="toc-item" style="margin-left:0px"><a href="#jsintegration"><strong>16</strong><span>An example of integration with JavaScript</span></a></div>
                             
@@ -2577,7 +2579,49 @@ A specific resource reference can not be
 
 
 
-<h2 id="resources_7">15.7 Custom resources</h2>
+<h2 id="resources_7">15.7 Put JavaScript inside page body</h2>
+Some web developers prefer to put their &#60;script&#62; tags at the end of page body instead of inside the &#60;header&#62; tags:<p class="paragraph"/><div class="code"><pre>&#60;html&#62;<p class="paragraph"/>&#60;header&#62;
+//no &#60;script&#62; tag here&#8230;
+&#60;/header&#62;<p class="paragraph"/>&#60;body&#62;
+&#8230;
+&#60;script&#62;
+//one or more &#60;script&#62; tags at the end of the body
+&#60;/script&#62; 
+&#60;/body&#62;
+&#60;/html&#62;</pre></div><p class="paragraph"/>
+In Wicket we can achieve this result providing a custom <code>IHeaderResponseDecorator</code> to a our application and using Wicket tag &#60;wicket:container/&#62; to indicate where we want to render our scripts inside the page. Interface <code>IHeaderResponseDecorator</code> defines method <code>IHeaderResponse decorate(IHeaderResponse response)</code> which allows to decorate or add funtionalities to Wicket <code>IHeaderResponse</code>. Our custom <code>IHeaderResponseDecorator</code> can be registered in the application with method <code>setHeaderResponseDecorator</code>. Anytime Wicket creates an instance of <code>IHeaderResponse</code>, it will call the registered <code>IHeaderResponseDecorator</code> to decorate the header response.<p class="paragraph"/>In the example project <code>ScriptInsideBody</code> we can find a custom <code>IHeaderResponseDecorator</code> that renders CSS into the usual &#60;head&#62; tag and put JavaScricpt header items into a specific container (tag 
 &#60;wicket:container/&#62;)
+Wicket already comes with class <code>JavaScriptFilteredIntoFooterHeaderResponse</code> which wraps a <code>IHeaderResponse</code> and renders in a given container all the instances of <code>JavaScriptHeaderItem</code>.
+The following code is taken from the Application class of the project:<p class="paragraph"/><div class="code"><pre>//&#8230;
+    @Override
+    <span class="java&#45;keyword">public</span> void init()
+    &#123;
+       setHeaderResponseDecorator(<span class="java&#45;keyword">new</span> JavaScriptToBucketResponseDecorator(<span class="java&#45;quote">"footer&#45;container"</span>));
+    &#125;<p class="paragraph"/>     /&#42;&#42;
+     &#42; Decorates an original IHeaderResponse and renders all javascript items
+     &#42; (JavaScriptHeaderItem), to a specific container in the page.
+     &#42;/
+    <span class="java&#45;keyword">static</span> class JavaScriptToBucketResponseDecorator <span class="java&#45;keyword">implements</span> IHeaderResponseDecorator 
+    &#123;<p class="paragraph"/>        <span class="java&#45;keyword">private</span> <span class="java&#45;object">String</span> bucketName;<p class="paragraph"/>        <span class="java&#45;keyword">public</span> JavaScriptToBucketResponseDecorator(<span class="java&#45;object">String</span> bucketName) &#123;
+            <span class="java&#45;keyword">this</span>.bucketName = bucketName;
+        &#125;<p class="paragraph"/>        @Override
+        <span class="java&#45;keyword">public</span> IHeaderResponse decorate(IHeaderResponse response) &#123;
+            <span class="java&#45;keyword">return</span> <span class="java&#45;keyword">new</span> JavaScriptFilteredIntoFooterHeaderResponse(response, bucketName);
+        &#125;<p class="paragraph"/>    &#125;</pre></div><p class="paragraph"/>As you can see in the code above the "bucket" that will contain JavaScript tags is called <code>"footer-container"</code>. To make a use of it the developer have to add a special component called <code>HeaderResponseContainer</code> in his page:<p class="paragraph"/><div class="code"><pre>add(<span class="java&#45;keyword">new</span> HeaderResponseContainer(<span class="java&#45;quote">"someId"</span>, <span class="java&#45;quote">"filterName"</span>));</pre></div><p class="paragraph"/>Please note that <code>HeaderResponseContainer</code>'s needs also a name for the corresponding header response's filter. The markup of our page will look like this:<p class="paragraph"/><div class="code"><pre>&#60;html&#62;<p class="paragraph"/>&#60;header&#62;
+//no &#60;script&#62; tag here&#8230;
+&#60;/header&#62;<p class="paragraph"/>&#60;body&#62;
+&#60;!&#45;&#45; here we will have our JavaScript tags &#45;&#45;&#62;
+&#60;wicket:container wicket:id=<span class="java&#45;quote">"someId"</span>/&#62; 
+&#60;/body&#62;
+&#60;/html&#62;</pre></div><p class="paragraph"/>The code of the home page is the following:<p class="paragraph"/><div class="code"><pre><span class="java&#45;keyword">public</span> HomePage(<span class="java&#45;keyword">final</span> PageParameters parameters) &#123;
+        <span class="java&#45;keyword">super</span>(parameters);<p class="paragraph"/>        add(<span class="java&#45;keyword">new</span> HeaderResponseContainer(<span class="java&#45;quote">"footer&#45;container"</span>, <span class="java&#45;quote">"footer&#45;container"</span>));
+    &#125;<p class="paragraph"/>    @Override
+    <span class="java&#45;keyword">public</span> void renderHead(IHeaderResponse response) &#123;
+        response.render(JavaScriptHeaderItem.forReference(<span class="java&#45;keyword">new</span> PackageResourceReference(getClass(),
+                <span class="java&#45;quote">"javasciptLibrary.js"</span>)));<p class="paragraph"/>        response.render(OnEventHeaderItem.forScript(<span class="java&#45;quote">"'logo'"</span>, <span class="java&#45;quote">"click"</span>, <span class="java&#45;quote">"alert('Clicked me!')"</span>));
+    &#125;</pre></div><p class="paragraph"/>Looking at the code above you can note that our page adds two script to the header section: the first is an instance of <code>JavaScriptHeaderItem</code> and will be rendered in the <code>HeaderResponseContainer</code> while the second will follow the usual behavior and will be rendered inside &#60;head&#62; tag.<p class="paragraph"/><p class="paragraph"/>
+
+
+<h2 id="resources_8">15.8 Custom resources</h2>
 <p class="paragraph"/>In Wicket the best way to add dynamic functionalities to our application (such as csv export, a pdf generated on the fly, etc...) is implementing a custom resource. In this paragraph as example of custom resource we will build a basic RSS feeds generator which can be used to publish feeds on our site (project CustomResourceMounting). Instead of generating a RSS feed by hand we will use Rome framework and its utility classes.<p class="paragraph"/>As hinted above in paragraph 13.1, class <code>AbstractResource</code> can be used as base class to implement new resources. This class defines abstract method <code>newResourceResponse</code> which is invoked when the resource is requested. The following is the code of our RSS feeds generator:<p class="paragraph"/><div class="code"><pre><span class="java&#45;keyword">public</span> class RSSProducerResource <span class="java&#45;keyword">extends</span> AbstractResource &#123;<p class="paragraph"/>  @Override
   <span class="java&#45;keyword">protected</span> ResourceResponse newResourceResponse(Attributes attributes) &#123;
     ResourceResponse resourceResponse = <span class="java&#45;keyword">new</span> ResourceResponse();
@@ -2602,7 +2646,7 @@ A specific resource reference can not be
 &#125;</pre></div><p class="paragraph"/>Method <code>newResourceResponse</code> returns an instance of <code>ResourceResponse</code> representing the response generated by the custom resource. Since RSS feeds are based on XML, in the code above we have set the type of the response to text/xml and the text encoding to utf-8.<p class="paragraph"/>To specify the content that will be returned by our resource we must also provide an implementation of inner class <code>WriteCallback</code> which is responsible for writing content data to response's output stream. In our project we used class SyndFeedOutput from Rome framework to write our feed to response. Method <code>getFeed()</code> is just an utility method that generates a sample RSS feed (which is an instance of interface <code>com.sun.syndication.feed.synd.SyndFeed</code>).<p class="paragraph"/>Now that we have our custom resource in place, we can use it in the home page of the project. The easiest way to make a resource available 
 to users is to expose it with link component <code>ResourceLink</code>:<p class="paragraph"/><div class="code"><pre>add(<span class="java&#45;keyword">new</span> ResourceLink(<span class="java&#45;quote">"rssLink"</span>, <span class="java&#45;keyword">new</span> RSSProducerResource()));</pre></div><p class="paragraph"/>In the next paragraphs we will see how to register a resource at application-level and how to mount it to an arbitrary URL.
 
 
-<h2 id="resources_8">15.8 Mounting resources</h2>
+<h2 id="resources_9">15.9 Mounting resources</h2>
 <p class="paragraph"/>Just like pages also resources can be mounted to a specific path. Class <code>WebApplication</code> provides method <code>mountResource</code> which is almost identical to <code>mountPage</code> seen in paragraph 8.6.1:<p class="paragraph"/><div class="code"><pre>@Override
 <span class="java&#45;keyword">public</span> void init() &#123;
   <span class="java&#45;keyword">super</span>.init();
@@ -2628,7 +2672,7 @@ A specific resource reference can not be
 &#125;</pre></div>
 
 
-<h2 id="resources_9">15.9 Shared resources</h2>
+<h2 id="resources_10">15.10 Shared resources</h2>
 <p class="paragraph"/>Resources can be added to a global registry in order to share them at application-level. Shared resources are identified by an application-scoped key and they can be easily retrieved at a later time using reference class <code>SharedResourceReference</code>. The global registry can be accessed with <code>Application</code>'s method <code>getSharedResources</code>. In the following excerpt of code (taken again from project <code>CustomResourceMounting</code>) we register an instance of our custom RSS feeds producer as application-shared resource:<p class="paragraph"/><div class="code"><pre>//init application's method
   @Override
   <span class="java&#45;keyword">public</span> void init()&#123;
@@ -2642,7 +2686,7 @@ Remember that we can get the URL of a re
 </blockquote>
 
 
-<h2 id="resources_10">15.10 Customizing resource loading</h2>
+<h2 id="resources_11">15.11 Customizing resource loading</h2>
 <p class="paragraph"/>Wicket loads application's resources delegating this task to a resource locator represented by interface <code>org.apache.wicket.core.util.resource.locator.IResourceStreamLocator</code>. To retrieve or modify the current resource locator we can use the getter and setter methods defined by setting interface <code>IResourceSettings</code>:<p class="paragraph"/><div class="code"><pre>//init application's method
   @Override
   <span class="java&#45;keyword">public</span> void init()&#123;   
@@ -2660,7 +2704,7 @@ By default, if resource files can not be
 </blockquote>
 
 
-<h2 id="resources_11">15.11 Summary</h2>
+<h2 id="resources_12">15.12 Summary</h2>
 In this chapter we have learnt how to manage resources with the built-in mechanism provided by Wicket. With this mechanism we handle resources from Java code and Wicket will automatically take care of generating a valid URL for them. We have also seen how resources can be bundled as package resources with a component that depends on them to make it self-contained.<p class="paragraph"/>Then, in the second part of the chapter, we have built a custom resource and we have learnt how to mount it to an arbitrary URL and how to make it globally available as shared resource.<p class="paragraph"/>Finally, in the last part of the paragraph we took a peek at the mechanism provided by the framework to customize the locations where the resource-lookup algorithm searches for resources. 
 
 
@@ -4603,7 +4647,7 @@ and attach it to a ticket in Apache Wick
         <div id="footer">
             
 Copyright &copy; 2013-2014 — <a href="http://www.apache.org/" target="_blank">The Apache Software Foundation</a> 
-                      — <b style="color:#E8590A !important;">(Generated on: 2014-02-14)</b>
+                      — <b style="color:#E8590A !important;">(Generated on: 2014-02-15)</b>
 
             
         </div>

Modified: wicket/common/site/trunk/_site/guide/guide/single.pdf
URL: http://svn.apache.org/viewvc/wicket/common/site/trunk/_site/guide/guide/single.pdf?rev=1568637&r1=1568636&r2=1568637&view=diff
==============================================================================
Binary files - no diff available.

Modified: wicket/common/site/trunk/_site/guide/guide/src/docs/guide/resources/resources_10.gdoc
URL: http://svn.apache.org/viewvc/wicket/common/site/trunk/_site/guide/guide/src/docs/guide/resources/resources_10.gdoc?rev=1568637&r1=1568636&r2=1568637&view=diff
==============================================================================
--- wicket/common/site/trunk/_site/guide/guide/src/docs/guide/resources/resources_10.gdoc (original)
+++ wicket/common/site/trunk/_site/guide/guide/src/docs/guide/resources/resources_10.gdoc Sat Feb 15 14:23:16 2014
@@ -1,45 +1,33 @@
 
 
-Wicket loads application's resources delegating this task to a resource locator represented by interface @org.apache.wicket.core.util.resource.locator.IResourceStreamLocator@. To retrieve or modify the current resource locator we can use the getter and setter methods defined by setting interface @IResourceSettings@:
+Resources can be added to a global registry in order to share them at application-level. Shared resources are identified by an application-scoped key and they can be easily retrieved at a later time using reference class @SharedResourceReference@. The global registry can be accessed with @Application@'s method @getSharedResources@. In the following excerpt of code (taken again from project @CustomResourceMounting@) we register an instance of our custom RSS feeds producer as application-shared resource:
 
 {code}
   //init application's method
   @Override
-  public void init(){   
-    //get the resource locator 
-    getResourceSettings().getResourceStreamLocator();
-    //set the resource locator    
-    getResourceSettings().setResourceStreamLocator(myLocator);
+  public void init(){
+    RSSProducerResource rssResource = new RSSProducerResource();
+    // ...
+    getSharedResources().add("globalRSSProducer", rssResource);    
   }
 {code}
 
-The default locator used by Wicket is class @ResourceStreamLocator@ which in turn tries to load a requested resource using a set of implementations of interface @IResourceFinder@. This interface defines method @find(Class class, String pathname)@ which tries to resolve a resource corresponding to the given class and path.
-
-The default implementation of @IResourceFinder@ used by Wicket is @ClassPathResourceFinder@ which searches for resources into the application class path. This is the implementation we have used so far in our examples. However some developers may prefer storing markup files and other resources in a separate folder rather than placing them side by side with Java classes. 
-
-To customize resource loading we can add further resource finders to our application in order to extend the resource-lookup algorithm to different locations. Wicket already comes with two other implementations of IResourceFinder designed to search for resources into a specific folder on the file system. The first is class @Path@ and it's defined in package @org.apache.wicket.util.file@. The constructor of this class takes in input an arbitrary folder that can be expressed as a string path or as an instance of Wicket utility class @Folder@ (in package @org.apache.wicket.util.file@). The second implementation of interface @IResourceFinder@ is class @WebApplicationPath@ which looks into a folder placed inside webapp's root path (but not inside folder WEB-INF).
-
-Project CustomFolder4MarkupExample uses @WebApplicationPath@ to load the markup file and the resource bundle for its home page from a custom folder. The folder is called markupFolder and it is placed in the root path of the webapp. The following picture illustrates the file structure of the project:
-
-!package-structure-custom-folder.png!
-
-As we can see in the picture above, we must preserve the package structure also in the custom folder used as resource container. The code used inside application class to configure  WebApplicationPath is the following:
+Now to use an application-shared resource we can simply retrieve it using class @SharedResourceReference@ and providing the key previously used to register the resource:
 
 {code}
-@Override
-public void init()
-{
-	getResourceSettings().getResourceFinders().add(
-			new WebApplicationPath(getServletContext(), "markupFolder"));
-}
+add(new ResourceLink("globalRssLink", new SharedResourceReference("globalRSSProducer")));
 {code}
 
-Method getResourceFinders() defined by setting interface IResourceSettings returns the list of  resource finders defined in our application. The constructor of WebApplicationPath takes in input also an instance of standard interface javax.servlet.ServletContext which can be retrieved with WebApplication's method getServletContext().
+The URL generated for application shared resources follows the same pattern seen for package resources:
 
-{note}
-By default, if resource files can not be found inside application classpath, Wicket will search for them inside “resources” folder. You may have noted this folder in the previous picture. It is placed next to the folder “java” containing our source files:
+@./wicket/resource/org.apache.wicket.Application/globalRSSProducer@
 
-!package-structure-resource-folder.png!
+The last segment of the URL is the key of the resource while the previous segment contains the scope of the resource. For application-scoped resources the scope is always the fully qualified name of class @Application@. This should not be surprising since global resources are visible at application level (i.e. the scope is the application).
 
-This folder can be used to store resource files without writing any configuration code.
+{note}
+Package resources are also application-shared resources but they don't need to be explicitly registered.
+{note}
+
+{note}
+Remember that we can get the URL of a resource reference using method @urlFor(ResourceReference resourceRef, PageParameters params )@ available with both class @RequestCycle@ and class @Component@.
 {note}
\ No newline at end of file

Modified: wicket/common/site/trunk/_site/guide/guide/src/docs/guide/resources/resources_11.gdoc
URL: http://svn.apache.org/viewvc/wicket/common/site/trunk/_site/guide/guide/src/docs/guide/resources/resources_11.gdoc?rev=1568637&r1=1568636&r2=1568637&view=diff
==============================================================================
--- wicket/common/site/trunk/_site/guide/guide/src/docs/guide/resources/resources_11.gdoc (original)
+++ wicket/common/site/trunk/_site/guide/guide/src/docs/guide/resources/resources_11.gdoc Sat Feb 15 14:23:16 2014
@@ -1,5 +1,45 @@
-In this chapter we have learnt how to manage resources with the built-in mechanism provided by Wicket. With this mechanism we handle resources from Java code and Wicket will automatically take care of generating a valid URL for them. We have also seen how resources can be bundled as package resources with a component that depends on them to make it self-contained.
 
-Then, in the second part of the chapter, we have built a custom resource and we have learnt how to mount it to an arbitrary URL and how to make it globally available as shared resource.
 
-Finally, in the last part of the paragraph we took a peek at the mechanism provided by the framework to customize the locations where the resource-lookup algorithm searches for resources. 
+Wicket loads application's resources delegating this task to a resource locator represented by interface @org.apache.wicket.core.util.resource.locator.IResourceStreamLocator@. To retrieve or modify the current resource locator we can use the getter and setter methods defined by setting interface @IResourceSettings@:
+
+{code}
+  //init application's method
+  @Override
+  public void init(){   
+    //get the resource locator 
+    getResourceSettings().getResourceStreamLocator();
+    //set the resource locator    
+    getResourceSettings().setResourceStreamLocator(myLocator);
+  }
+{code}
+
+The default locator used by Wicket is class @ResourceStreamLocator@ which in turn tries to load a requested resource using a set of implementations of interface @IResourceFinder@. This interface defines method @find(Class class, String pathname)@ which tries to resolve a resource corresponding to the given class and path.
+
+The default implementation of @IResourceFinder@ used by Wicket is @ClassPathResourceFinder@ which searches for resources into the application class path. This is the implementation we have used so far in our examples. However some developers may prefer storing markup files and other resources in a separate folder rather than placing them side by side with Java classes. 
+
+To customize resource loading we can add further resource finders to our application in order to extend the resource-lookup algorithm to different locations. Wicket already comes with two other implementations of IResourceFinder designed to search for resources into a specific folder on the file system. The first is class @Path@ and it's defined in package @org.apache.wicket.util.file@. The constructor of this class takes in input an arbitrary folder that can be expressed as a string path or as an instance of Wicket utility class @Folder@ (in package @org.apache.wicket.util.file@). The second implementation of interface @IResourceFinder@ is class @WebApplicationPath@ which looks into a folder placed inside webapp's root path (but not inside folder WEB-INF).
+
+Project CustomFolder4MarkupExample uses @WebApplicationPath@ to load the markup file and the resource bundle for its home page from a custom folder. The folder is called markupFolder and it is placed in the root path of the webapp. The following picture illustrates the file structure of the project:
+
+!package-structure-custom-folder.png!
+
+As we can see in the picture above, we must preserve the package structure also in the custom folder used as resource container. The code used inside application class to configure  WebApplicationPath is the following:
+
+{code}
+@Override
+public void init()
+{
+	getResourceSettings().getResourceFinders().add(
+			new WebApplicationPath(getServletContext(), "markupFolder"));
+}
+{code}
+
+Method getResourceFinders() defined by setting interface IResourceSettings returns the list of  resource finders defined in our application. The constructor of WebApplicationPath takes in input also an instance of standard interface javax.servlet.ServletContext which can be retrieved with WebApplication's method getServletContext().
+
+{note}
+By default, if resource files can not be found inside application classpath, Wicket will search for them inside “resources” folder. You may have noted this folder in the previous picture. It is placed next to the folder “java” containing our source files:
+
+!package-structure-resource-folder.png!
+
+This folder can be used to store resource files without writing any configuration code.
+{note}
\ No newline at end of file

Modified: wicket/common/site/trunk/_site/guide/guide/src/docs/guide/resources/resources_7.gdoc
URL: http://svn.apache.org/viewvc/wicket/common/site/trunk/_site/guide/guide/src/docs/guide/resources/resources_7.gdoc?rev=1568637&r1=1568636&r2=1568637&view=diff
==============================================================================
--- wicket/common/site/trunk/_site/guide/guide/src/docs/guide/resources/resources_7.gdoc (original)
+++ wicket/common/site/trunk/_site/guide/guide/src/docs/guide/resources/resources_7.gdoc Sat Feb 15 14:23:16 2014
@@ -1,48 +1,103 @@
+Some web developers prefer to put their <script> tags at the end of page body instead of inside the <header> tags:
 
+{code:html}
 
-In Wicket the best way to add dynamic functionalities to our application (such as csv export, a pdf generated on the fly, etc...) is implementing a custom resource. In this paragraph as example of custom resource we will build a basic RSS feeds generator which can be used to publish feeds on our site (project CustomResourceMounting). Instead of generating a RSS feed by hand we will use Rome framework and its utility classes. 
+<html>
 
-As hinted above in paragraph 13.1, class @AbstractResource@ can be used as base class to implement new resources. This class defines abstract method @newResourceResponse@ which is invoked when the resource is requested. The following is the code of our RSS feeds generator:
+<header>
+//no <script> tag here...
+</header>
+
+<body>
+...
+<script>
+//one or more <script> tags at the end of the body
+</script> 
+</body>
+</html>
 
 {code}
-public class RSSProducerResource extends AbstractResource {
 
-  @Override
-  protected ResourceResponse newResourceResponse(Attributes attributes) {
-    ResourceResponse resourceResponse = new ResourceResponse();
-    resourceResponse.setContentType("text/xml");
-    resourceResponse.setTextEncoding("utf-8");
-    
-    resourceResponse.setWriteCallback(new WriteCallback()
+
+In Wicket we can achieve this result providing a custom @IHeaderResponseDecorator@ to a our application and using Wicket tag <wicket:container/> to indicate where we want to render our scripts inside the page. Interface @IHeaderResponseDecorator@ defines method @IHeaderResponse decorate(IHeaderResponse response)@ which allows to decorate or add funtionalities to Wicket @IHeaderResponse@. Our custom @IHeaderResponseDecorator@ can be registered in the application with method @setHeaderResponseDecorator@. Anytime Wicket creates an instance of @IHeaderResponse@, it will call the registered @IHeaderResponseDecorator@ to decorate the header response.
+
+In the example project @ScriptInsideBody@ we can find a custom @IHeaderResponseDecorator@ that renders CSS into the usual <head> tag and put JavaScricpt header items into a specific container (tag <wicket:container/>)
+Wicket already comes with class @JavaScriptFilteredIntoFooterHeaderResponse@ which wraps a @IHeaderResponse@ and renders in a given container all the instances of @JavaScriptHeaderItem@.
+The following code is taken from the Application class of the project:
+
+{code}
+
+    //...
+    @Override
+    public void init()
+    {
+       setHeaderResponseDecorator(new JavaScriptToBucketResponseDecorator("footer-container"));
+    }
+	
+     /**
+     * Decorates an original IHeaderResponse and renders all javascript items
+     * (JavaScriptHeaderItem), to a specific container in the page.
+     */
+    static class JavaScriptToBucketResponseDecorator implements IHeaderResponseDecorator 
     {
-      @Override
-      public void writeData(Attributes attributes) throws IOException
-      {
-        OutputStream outputStream = attributes.getResponse().getOutputStream();
-        Writer writer = new OutputStreamWriter(outputStream);
-        SyndFeedOutput output = new SyndFeedOutput();
-            try {
-          output.output(getFeed(), writer);
-        } catch (FeedException e) {
-          throw new WicketRuntimeException("Problems writing feed to response...");
+
+        private String bucketName;
+
+        public JavaScriptToBucketResponseDecorator(String bucketName) {
+            this.bucketName = bucketName;
+        }
+
+        @Override
+        public IHeaderResponse decorate(IHeaderResponse response) {
+            return new JavaScriptFilteredIntoFooterHeaderResponse(response, bucketName);
         }
-      }      
-    });
-    
-    return resourceResponse;
-  }
-  // method getFeed()...
-}
+
+    }
+{code}
+
+As you can see in the code above the "bucket" that will contain JavaScript tags is called @"footer-container"@. To make a use of it the developer have to add a special component called @HeaderResponseContainer@ in his page:
+
+{code}
+add(new HeaderResponseContainer("someId", "filterName"));
 {code}
 
-Method @newResourceResponse@ returns an instance of @ResourceResponse@ representing the response generated by the custom resource. Since RSS feeds are based on XML, in the code above we have set the type of the response to text/xml and the text encoding to utf-8.
+Please note that @HeaderResponseContainer@'s needs also a name for the corresponding header response's filter. The markup of our page will look like this:
+
+{code:html}
+
+<html>
 
-To specify the content that will be returned by our resource we must also provide an implementation of inner class @WriteCallback@ which is responsible for writing content data to response's output stream. In our project we used class SyndFeedOutput from Rome framework to write our feed to response. Method @getFeed()@ is just an utility method that generates a sample RSS feed (which is an instance of interface @com.sun.syndication.feed.synd.SyndFeed@).
+<header>
+//no <script> tag here...
+</header>
 
-Now that we have our custom resource in place, we can use it in the home page of the project. The easiest way to make a resource available to users is to expose it with link component @ResourceLink@: 
+<body>
+<!-- here we will have our JavaScript tags -->
+<wicket:container wicket:id="someId"/> 
+</body>
+</html>
 
 {code}
-add(new ResourceLink("rssLink", new RSSProducerResource()));
+
+The code of the home page is the following:
+
 {code}
+   public HomePage(final PageParameters parameters) {
+        super(parameters);
+
+        add(new HeaderResponseContainer("footer-container", "footer-container"));
+    }
+
+    @Override
+    public void renderHead(IHeaderResponse response) {
+        response.render(JavaScriptHeaderItem.forReference(new PackageResourceReference(getClass(),
+                "javasciptLibrary.js")));
+
+        response.render(OnEventHeaderItem.forScript("'logo'", "click", "alert('Clicked me!')"));
+    }
+{code}
+
+Looking at the code above you can note that our page adds two script to the header section: the first is an instance of @JavaScriptHeaderItem@ and will be rendered in the @HeaderResponseContainer@ while the second will follow the usual behavior and will be rendered inside <head> tag.
+
+
 
-In the next paragraphs we will see how to register a resource at application-level and how to mount it to an arbitrary URL.
\ No newline at end of file

Modified: wicket/common/site/trunk/_site/guide/guide/src/docs/guide/resources/resources_8.gdoc
URL: http://svn.apache.org/viewvc/wicket/common/site/trunk/_site/guide/guide/src/docs/guide/resources/resources_8.gdoc?rev=1568637&r1=1568636&r2=1568637&view=diff
==============================================================================
--- wicket/common/site/trunk/_site/guide/guide/src/docs/guide/resources/resources_8.gdoc (original)
+++ wicket/common/site/trunk/_site/guide/guide/src/docs/guide/resources/resources_8.gdoc Sat Feb 15 14:23:16 2014
@@ -1,37 +1,48 @@
 
 
-Just like pages also resources can be mounted to a specific path. Class @WebApplication@ provides method @mountResource@ which is almost identical to @mountPage@ seen in paragraph 8.6.1:
+In Wicket the best way to add dynamic functionalities to our application (such as csv export, a pdf generated on the fly, etc...) is implementing a custom resource. In this paragraph as example of custom resource we will build a basic RSS feeds generator which can be used to publish feeds on our site (project CustomResourceMounting). Instead of generating a RSS feed by hand we will use Rome framework and its utility classes. 
+
+As hinted above in paragraph 13.1, class @AbstractResource@ can be used as base class to implement new resources. This class defines abstract method @newResourceResponse@ which is invoked when the resource is requested. The following is the code of our RSS feeds generator:
 
 {code}
-@Override
-public void init() {
-  super.init();
-  //resource mounted to path /foo/bar
-  ResourceReference resourceReference = new ResourceReference("rssProducer"){
-     RSSReaderResource rssResource = new RSSReaderResource();
-     @Override
-     public IResource getResource() {
-	return rssResource;
-  }};
-  mountResource("/foo/bar", resourceReference);
+public class RSSProducerResource extends AbstractResource {
+
+  @Override
+  protected ResourceResponse newResourceResponse(Attributes attributes) {
+    ResourceResponse resourceResponse = new ResourceResponse();
+    resourceResponse.setContentType("text/xml");
+    resourceResponse.setTextEncoding("utf-8");
+    
+    resourceResponse.setWriteCallback(new WriteCallback()
+    {
+      @Override
+      public void writeData(Attributes attributes) throws IOException
+      {
+        OutputStream outputStream = attributes.getResponse().getOutputStream();
+        Writer writer = new OutputStreamWriter(outputStream);
+        SyndFeedOutput output = new SyndFeedOutput();
+            try {
+          output.output(getFeed(), writer);
+        } catch (FeedException e) {
+          throw new WicketRuntimeException("Problems writing feed to response...");
+        }
+      }      
+    });
+    
+    return resourceResponse;
+  }
+  // method getFeed()...
 }
 {code}
 
-With the configuration above (taken from project @CustomResourceMounting@) every request to /foo/bar will be served by the custom resource built in the previous paragraph. 
+Method @newResourceResponse@ returns an instance of @ResourceResponse@ representing the response generated by the custom resource. Since RSS feeds are based on XML, in the code above we have set the type of the response to text/xml and the text encoding to utf-8.
+
+To specify the content that will be returned by our resource we must also provide an implementation of inner class @WriteCallback@ which is responsible for writing content data to response's output stream. In our project we used class SyndFeedOutput from Rome framework to write our feed to response. Method @getFeed()@ is just an utility method that generates a sample RSS feed (which is an instance of interface @com.sun.syndication.feed.synd.SyndFeed@).
 
-Parameter placeholders are supported as well:
+Now that we have our custom resource in place, we can use it in the home page of the project. The easiest way to make a resource available to users is to expose it with link component @ResourceLink@: 
 
 {code}
-@Override
-public void init() {
-  super.init();
-  //resource mounted to path /foo with a required indexed parameter
-  ResourceReference resourceReference = new ResourceReference("rssProducer"){
-     RSSReaderResource rssResource = new RSSReaderResource();
-     @Override
-     public IResource getResource() {
-	return rssResource;
-  }};
-  mountResource("/bar/${baz}", resourceReference);
-}
-{code}
\ No newline at end of file
+add(new ResourceLink("rssLink", new RSSProducerResource()));
+{code}
+
+In the next paragraphs we will see how to register a resource at application-level and how to mount it to an arbitrary URL.
\ No newline at end of file

Modified: wicket/common/site/trunk/_site/guide/guide/src/docs/guide/resources/resources_9.gdoc
URL: http://svn.apache.org/viewvc/wicket/common/site/trunk/_site/guide/guide/src/docs/guide/resources/resources_9.gdoc?rev=1568637&r1=1568636&r2=1568637&view=diff
==============================================================================
--- wicket/common/site/trunk/_site/guide/guide/src/docs/guide/resources/resources_9.gdoc (original)
+++ wicket/common/site/trunk/_site/guide/guide/src/docs/guide/resources/resources_9.gdoc Sat Feb 15 14:23:16 2014
@@ -1,33 +1,37 @@
 
 
-Resources can be added to a global registry in order to share them at application-level. Shared resources are identified by an application-scoped key and they can be easily retrieved at a later time using reference class @SharedResourceReference@. The global registry can be accessed with @Application@'s method @getSharedResources@. In the following excerpt of code (taken again from project @CustomResourceMounting@) we register an instance of our custom RSS feeds producer as application-shared resource:
+Just like pages also resources can be mounted to a specific path. Class @WebApplication@ provides method @mountResource@ which is almost identical to @mountPage@ seen in paragraph 8.6.1:
 
 {code}
-  //init application's method
-  @Override
-  public void init(){
-    RSSProducerResource rssResource = new RSSProducerResource();
-    // ...
-    getSharedResources().add("globalRSSProducer", rssResource);    
-  }
+@Override
+public void init() {
+  super.init();
+  //resource mounted to path /foo/bar
+  ResourceReference resourceReference = new ResourceReference("rssProducer"){
+     RSSReaderResource rssResource = new RSSReaderResource();
+     @Override
+     public IResource getResource() {
+	return rssResource;
+  }};
+  mountResource("/foo/bar", resourceReference);
+}
 {code}
 
-Now to use an application-shared resource we can simply retrieve it using class @SharedResourceReference@ and providing the key previously used to register the resource:
+With the configuration above (taken from project @CustomResourceMounting@) every request to /foo/bar will be served by the custom resource built in the previous paragraph. 
 
-{code}
-add(new ResourceLink("globalRssLink", new SharedResourceReference("globalRSSProducer")));
-{code}
-
-The URL generated for application shared resources follows the same pattern seen for package resources:
-
-@./wicket/resource/org.apache.wicket.Application/globalRSSProducer@
+Parameter placeholders are supported as well:
 
-The last segment of the URL is the key of the resource while the previous segment contains the scope of the resource. For application-scoped resources the scope is always the fully qualified name of class @Application@. This should not be surprising since global resources are visible at application level (i.e. the scope is the application).
-
-{note}
-Package resources are also application-shared resources but they don't need to be explicitly registered.
-{note}
-
-{note}
-Remember that we can get the URL of a resource reference using method @urlFor(ResourceReference resourceRef, PageParameters params )@ available with both class @RequestCycle@ and class @Component@.
-{note}
\ No newline at end of file
+{code}
+@Override
+public void init() {
+  super.init();
+  //resource mounted to path /foo with a required indexed parameter
+  ResourceReference resourceReference = new ResourceReference("rssProducer"){
+     RSSReaderResource rssResource = new RSSReaderResource();
+     @Override
+     public IResource getResource() {
+	return rssResource;
+  }};
+  mountResource("/bar/${baz}", resourceReference);
+}
+{code}
\ No newline at end of file

Modified: wicket/common/site/trunk/_site/guide/guide/src/docs/guide/toc.yml
URL: http://svn.apache.org/viewvc/wicket/common/site/trunk/_site/guide/guide/src/docs/guide/toc.yml?rev=1568637&r1=1568636&r2=1568637&view=diff
==============================================================================
--- wicket/common/site/trunk/_site/guide/guide/src/docs/guide/toc.yml (original)
+++ wicket/common/site/trunk/_site/guide/guide/src/docs/guide/toc.yml Sat Feb 15 14:23:16 2014
@@ -113,11 +113,12 @@ resources:
   resources_4: Adding resources to page header section
   resources_5: Resource dependencies
   resources_6: Aggregate multiple risources with resource bundles
-  resources_7: Custom resources
-  resources_8: Mounting resources
-  resources_9: Shared resources
-  resources_10: Customizing resource loading
-  resources_11: Summary
+  resources_7: Put JavaScript inside page body
+  resources_8: Custom resources
+  resources_9: Mounting resources
+  resources_10: Shared resources
+  resources_11: Customizing resource loading
+  resources_12: Summary
 jsintegration:
   title: An example of integration with JavaScript
   jsintegration_1: What we want to do...

Modified: wicket/common/site/trunk/_site/guide/guide/testing.html
URL: http://svn.apache.org/viewvc/wicket/common/site/trunk/_site/guide/guide/testing.html?rev=1568637&r1=1568636&r2=1568637&view=diff
==============================================================================
--- wicket/common/site/trunk/_site/guide/guide/testing.html (original)
+++ wicket/common/site/trunk/_site/guide/guide/testing.html Sat Feb 15 14:23:16 2014
@@ -427,7 +427,7 @@ formTester.submit(<span class="java&#45;
 <div id="footer">
     
 Copyright &copy; 2013-2014 — <a href="http://www.apache.org/" target="_blank">The Apache Software Foundation</a> 
-                      — <b style="color:#E8590A !important;">(Generated on: 2014-02-14)</b>
+                      — <b style="color:#E8590A !important;">(Generated on: 2014-02-15)</b>
 
     
 </div>