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 2013/10/20 20:42:27 UTC

svn commit: r1533947 - in /wicket/common/site/trunk/_site/guide/guide: pages/ src/docs/guide/chapter13/ src/docs/guide/chapter14/ src/docs/guide/chapter16/ src/docs/guide/chapter17/ src/docs/guide/chapter19/ src/docs/guide/chapter20/ src/docs/guide/cha...

Author: adelbene
Date: Sun Oct 20 18:42:26 2013
New Revision: 1533947

URL: http://svn.apache.org/r1533947
Log:
Chapters changed to fit into the pdf version of the guide.

Modified:
    wicket/common/site/trunk/_site/guide/guide/pages/chapter14_3.html
    wicket/common/site/trunk/_site/guide/guide/pages/chapter4_4.html
    wicket/common/site/trunk/_site/guide/guide/pages/chapter5_9.html
    wicket/common/site/trunk/_site/guide/guide/pages/chapter9_3.html
    wicket/common/site/trunk/_site/guide/guide/src/docs/guide/chapter13/chapter13_2.gdoc
    wicket/common/site/trunk/_site/guide/guide/src/docs/guide/chapter13/chapter13_3.gdoc
    wicket/common/site/trunk/_site/guide/guide/src/docs/guide/chapter14/chapter14_4.gdoc
    wicket/common/site/trunk/_site/guide/guide/src/docs/guide/chapter16/chapter16_2.gdoc
    wicket/common/site/trunk/_site/guide/guide/src/docs/guide/chapter17/chapter17_2.gdoc
    wicket/common/site/trunk/_site/guide/guide/src/docs/guide/chapter17/chapter17_5.gdoc
    wicket/common/site/trunk/_site/guide/guide/src/docs/guide/chapter17/chapter17_6.gdoc
    wicket/common/site/trunk/_site/guide/guide/src/docs/guide/chapter19/chapter19_2.gdoc
    wicket/common/site/trunk/_site/guide/guide/src/docs/guide/chapter19/chapter19_4.gdoc
    wicket/common/site/trunk/_site/guide/guide/src/docs/guide/chapter20/chapter20_1.gdoc
    wicket/common/site/trunk/_site/guide/guide/src/docs/guide/chapter20/chapter20_3.gdoc
    wicket/common/site/trunk/_site/guide/guide/src/docs/guide/chapter21/chapter21_2.gdoc
    wicket/common/site/trunk/_site/guide/guide/src/docs/guide/chapter24/chapter24_2.gdoc
    wicket/common/site/trunk/_site/guide/guide/src/docs/guide/chapter7/chapter7_2.gdoc
    wicket/common/site/trunk/_site/guide/guide/src/docs/guide/chapter8/chapter8_4.gdoc
    wicket/common/site/trunk/_site/guide/guide/src/docs/guide/chapter9/chapter9_1.gdoc
    wicket/common/site/trunk/_site/guide/guide/src/docs/guide/chapter9/chapter9_3.gdoc

Modified: wicket/common/site/trunk/_site/guide/guide/pages/chapter14_3.html
URL: http://svn.apache.org/viewvc/wicket/common/site/trunk/_site/guide/guide/pages/chapter14_3.html?rev=1533947&r1=1533946&r2=1533947&view=diff
==============================================================================
--- wicket/common/site/trunk/_site/guide/guide/pages/chapter14_3.html (original)
+++ wicket/common/site/trunk/_site/guide/guide/pages/chapter14_3.html Sun Oct 20 18:42:26 2013
@@ -169,7 +169,7 @@ function addJsClass() {
 	            <span class="java&#45;keyword">new</span> PackageResourceReference(getClass(), <span class="java&#45;quote">"calendar.jpg"</span>);
 		add(<span class="java&#45;keyword">new</span> Image(<span class="java&#45;quote">"packageResPicture"</span>, resourceReference));
 	&#125;
-&#125;</pre></div><p class="paragraph"/>Wicket will take care of generating a valid URL for file calendar.jpg. URLs for package resources have the following structure:<p class="paragraph"/><code>&#60;path to application root&#62;/wicket/resource/&#60;fully qualified class name&#62;/&#60;resource file name&#62; -&#60;ver-&#60;id&#62;&#62;.<file extension></code><p class="paragraph"/>In our example the URL for our picture file calendar.jpg is the following:<p class="paragraph"/><code>./wicket/resource/org.wicketTutorial.CustomPanel/calendar-ver-1297887542000.jpg</code><p class="paragraph"/>The first part of the URL is the relative path to the application root. In our example our page is already at the application's root so we have only a single-dotted segment. The next two segments, wicket and resource, are respectively the namespace and the identifier for resources seen in paragraph 8.6.4.<p class="paragraph"/>The fourth segment is the fully qualified name of the class used to locate
  the resource and it is the scope of the package resource. In the last segment of the URL we can find the name of the resource (the file name).<p class="paragraph"/>As you can see Wicket has automatically appended to the file name a version identifier (ver-1297887542000). When Wicket runs in DEVELOPMENT mode this identifier contains the timestamp in millisecond indicating the last time the resource file was modified. This can be useful when we are developing our application and resource files are frequently modified. Appending the timestamp to the original name we are sure that our browser will use always the last version of the file and not an old, out of date, cached version.<p class="paragraph"/>When instead Wicket is running in DEPLOYMENT mode, the version identifier will contain the MD5 digest of the file instead of the timestamp. The digest is computed only the first time the resource is requested. This perfectly makes sense as static resources don't change so often when our a
 pplication runs into production environment and when this appends the application is redeployed.<p class="paragraph"/><blockquote class="note">
+&#125;</pre></div><p class="paragraph"/>Wicket will take care of generating a valid URL for file calendar.jpg. URLs for package resources have the following structure:<p class="paragraph"/><code>&#38;lt;path to application root&#62;/wicket/resource/&#38;lt;fully qualified classname&#62;/&#38;lt;resource file name&#62; -&#38;lt;ver-&#38;lt;id&#62;&#62;.&lt;file extension></code><p class="paragraph"/>In our example the URL for our picture file calendar.jpg is the following:<p class="paragraph"/><code>./wicket/resource/org.wicketTutorial.CustomPanel/ calendar-ver-1297887542000.jpg</code><p class="paragraph"/>The first part of the URL is the relative path to the application root. In our example our page is already at the application's root so we have only a single-dotted segment. The next two segments, wicket and resource, are respectively the namespace and the identifier for resources seen in paragraph 8.6.4.<p class="paragraph"/>The fourth segment is the fully qualified name of the cl
 ass used to locate the resource and it is the scope of the package resource. In the last segment of the URL we can find the name of the resource (the file name).<p class="paragraph"/>As you can see Wicket has automatically appended to the file name a version identifier (ver-1297887542000). When Wicket runs in DEVELOPMENT mode this identifier contains the timestamp in millisecond indicating the last time the resource file was modified. This can be useful when we are developing our application and resource files are frequently modified. Appending the timestamp to the original name we are sure that our browser will use always the last version of the file and not an old, out of date, cached version.<p class="paragraph"/>When instead Wicket is running in DEPLOYMENT mode, the version identifier will contain the MD5 digest of the file instead of the timestamp. The digest is computed only the first time the resource is requested. This perfectly makes sense as static resources don't change s
 o often when our application runs into production environment and when this appends the application is redeployed.<p class="paragraph"/><blockquote class="note">
 Package resources can be localized following the same rules seen for resource bundles and markup files:<p class="paragraph"/><img border="0" class="center" src="../img/package-resource-localization.png"></img><p class="paragraph"/>In the example illustrated in the picture above, if we try to retrieve package resource calendar.jpg when the current locale is set to French, the actual file returned will be calendar_fr.jpg.
 </blockquote><p class="paragraph"/>
 <h3>Using package resources with tag &#60;wicket:link&#62;</h3><p class="paragraph"/>In paragraph 8.3 we have used tag &#60;wicket:link&#62; to automatically create links to bookmarkable pages. The same technique can be used also for package resources in order to use them directly from markup file. Let's assume for example that we have a picture file called icon.png placed in the same package of the current page. Under these conditions we can display the picture file using the following markup fragment:<p class="paragraph"/><div class="code"><pre>&#60;wicket:link&#62;
@@ -177,6 +177,7 @@ Package resources can be localized follo
 &#60;/wicket:link&#62;</pre></div><p class="paragraph"/>In the example above Wicket will populate the attribute src with the URL corresponding to the package resource icon.png. &#60;wicket:link&#62; supports also tag &#60;link&#62; for CSS files and tag &#60;script&#62; for JavaScript files.
 
 
+
                 <div style="clear:both;margin-top:15px;"></div>
                 
                     <div class="toc-item prev-left"><a href="../../guide/chapter13.html">&lt;&lt; <strong>13</strong><span>Internationalization with Wicket</span></a></div>

Modified: wicket/common/site/trunk/_site/guide/guide/pages/chapter4_4.html
URL: http://svn.apache.org/viewvc/wicket/common/site/trunk/_site/guide/guide/pages/chapter4_4.html?rev=1533947&r1=1533946&r2=1533947&view=diff
==============================================================================
--- wicket/common/site/trunk/_site/guide/guide/pages/chapter4_4.html (original)
+++ wicket/common/site/trunk/_site/guide/guide/pages/chapter4_4.html Sun Oct 20 18:42:26 2013
@@ -2,7 +2,7 @@
                       "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
 <head>
-    <title>4.4 Markup inheritance with the &lt;wicket:extend&gt; tag 1.0.0.BUILD-SNAPSHOT</title>
+    <title>4.4 Markup inheritance with the wicket:extend tag 1.0.0.BUILD-SNAPSHOT</title>
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
     <link rel="stylesheet" href="../css/main.css" type="text/css" media="screen, print" title="Style" charset="utf-8"/>
     <link rel="stylesheet" href="../css/pdf.css" type="text/css" media="print" title="PDF" charset="utf-8"/>
@@ -140,7 +140,7 @@ function addJsClass() {
 
 
                 <div class="project">
-                    <h1>4.4 Markup inheritance with the &lt;wicket:extend&gt; tag - Reference Documentation</h1>
+                    <h1>4.4 Markup inheritance with the wicket:extend tag - Reference Documentation</h1>
 
                     <p><strong>Authors:</strong> Andrea Del Bene, Carsten Hufe, Christian Kroemer, Daniel Bartl</p>
 
@@ -153,7 +153,7 @@ function addJsClass() {
 
                 
 
-<h2 id="chapter4_4">4.4 Markup inheritance with the <wicket:extend> tag</h2>
+<h2 id="chapter4_4">4.4 Markup inheritance with the wicket:extend tag</h2>
 With Wicket we can apply markup inheritance using another approach based on the tag <code>&#60;wicket:child&#62;</code>. This tag is used inside the parent's markup to define where the children pages/panels can “inject” their custom markup extending the markup inherited from the parent component. 
 An example of a parent page using the tag <code>&#60;wicket:child&#62;</code> is the following:<p class="paragraph"/><div class="code"><pre>&#60;html&#62;
 &#60;head&#62;

Modified: wicket/common/site/trunk/_site/guide/guide/pages/chapter5_9.html
URL: http://svn.apache.org/viewvc/wicket/common/site/trunk/_site/guide/guide/pages/chapter5_9.html?rev=1533947&r1=1533946&r2=1533947&view=diff
==============================================================================
--- wicket/common/site/trunk/_site/guide/guide/pages/chapter5_9.html (original)
+++ wicket/common/site/trunk/_site/guide/guide/pages/chapter5_9.html Sun Oct 20 18:42:26 2013
@@ -2,7 +2,7 @@
                       "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
 <head>
-    <title>5.9 Hiding decorating elements with the &lt;wicket:enclosure&gt; tag 1.0.0.BUILD-SNAPSHOT</title>
+    <title>5.9 Hiding decorating elements with the wicket:enclosure tag 1.0.0.BUILD-SNAPSHOT</title>
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
     <link rel="stylesheet" href="../css/main.css" type="text/css" media="screen, print" title="Style" charset="utf-8"/>
     <link rel="stylesheet" href="../css/pdf.css" type="text/css" media="print" title="PDF" charset="utf-8"/>
@@ -140,7 +140,7 @@ function addJsClass() {
 
 
                 <div class="project">
-                    <h1>5.9 Hiding decorating elements with the &lt;wicket:enclosure&gt; tag - Reference Documentation</h1>
+                    <h1>5.9 Hiding decorating elements with the wicket:enclosure tag - Reference Documentation</h1>
 
                     <p><strong>Authors:</strong> Andrea Del Bene, Carsten Hufe, Christian Kroemer, Daniel Bartl</p>
 
@@ -153,7 +153,7 @@ function addJsClass() {
 
                 
 
-<h2 id="chapter5_9">5.9 Hiding decorating elements with the <wicket:enclosure> tag</h2>
+<h2 id="chapter5_9">5.9 Hiding decorating elements with the wicket:enclosure tag</h2>
 Our data are rarely displayed alone without a caption or other graphic elements that make clear the meaning of their value. For example:<p class="paragraph"/><div class="code"><pre>&#60;label&#62;Total amount: &#60;/label&#62;&#60;span wicket:id=<span class="java&#45;quote">"totalAmount"</span>&#62;&#60;/span&#62;</pre></div><p class="paragraph"/>Wicket comes with a nice utility tag called <code>&#60;wicket:enclosure&#62;</code> that automatically hides those decorating elements if the related data value is not visible. All we have to do is to put the involved markup inside this tag. Applying <code>&#60;wicket:enclosure&#62;</code> to the previous example we get the following markup:<p class="paragraph"/><div class="code"><pre>&#60;wicket:enclosure&#62; 
     &#60;label&#62;Total amount: &#60;/label&#62;&#60;span wicket:id=<span class="java&#45;quote">"totalAmount"</span>&#62;&#60;/span&#62;
 &#60;/wicket:enclosure&#62;</pre></div><p class="paragraph"/>Now if component <code>totalAmount</code> is not visible, its description (<code>Total amount:</code>) will be automatically hidden. If we have more then a Wicket component inside <code>&#60;wicket:enclosure&#62;</code> we can use <code>child</code> attribute to specify which component will control the overall visibility:<p class="paragraph"/><div class="code"><pre>&#60;wicket:enclosure child=<span class="java&#45;quote">"totalAmount"</span>&#62; 

Modified: wicket/common/site/trunk/_site/guide/guide/pages/chapter9_3.html
URL: http://svn.apache.org/viewvc/wicket/common/site/trunk/_site/guide/guide/pages/chapter9_3.html?rev=1533947&r1=1533946&r2=1533947&view=diff
==============================================================================
--- wicket/common/site/trunk/_site/guide/guide/pages/chapter9_3.html (original)
+++ wicket/common/site/trunk/_site/guide/guide/pages/chapter9_3.html Sun Oct 20 18:42:26 2013
@@ -2,7 +2,7 @@
                       "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
 <head>
-    <title>9.3 Automatically creating bookmarkable links with tag &lt;wicket:link&gt; 1.0.0.BUILD-SNAPSHOT</title>
+    <title>9.3 Automatically creating bookmarkable links with tag wicket:link 1.0.0.BUILD-SNAPSHOT</title>
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
     <link rel="stylesheet" href="../css/main.css" type="text/css" media="screen, print" title="Style" charset="utf-8"/>
     <link rel="stylesheet" href="../css/pdf.css" type="text/css" media="print" title="PDF" charset="utf-8"/>
@@ -140,7 +140,7 @@ function addJsClass() {
 
 
                 <div class="project">
-                    <h1>9.3 Automatically creating bookmarkable links with tag &lt;wicket:link&gt; - Reference Documentation</h1>
+                    <h1>9.3 Automatically creating bookmarkable links with tag wicket:link - Reference Documentation</h1>
 
                     <p><strong>Authors:</strong> Andrea Del Bene, Carsten Hufe, Christian Kroemer, Daniel Bartl</p>
 
@@ -153,7 +153,7 @@ function addJsClass() {
 
                 
 
-<h2 id="chapter9_3">9.3 Automatically creating bookmarkable links with tag <wicket:link></h2>
+<h2 id="chapter9_3">9.3 Automatically creating bookmarkable links with tag wicket:link</h2>
 <p class="paragraph"/>Bookmarkable pages can be linked directly inside markup files without writing any Java code. Using &#60;wicket:link&#62; tag we ask Wicket to automatically add bookmarkable links for the anchors wrapped inside it. Here is an example of usage of &#60;wicket:link&#62; tag taken from the home page of the project BookmarkablePageAutoLink:<p class="paragraph"/><div class="code"><pre>&#60;!DOCTYPE html&#62;
 &#60;html xmlns:wicket=<span class="java&#45;quote">"http://wicket.apache.org"</span>&#62;
 	&#60;head&#62;
@@ -168,7 +168,7 @@ function addJsClass() {
 	      &#60;/wicket:link&#62;
 	   &#60;/div&#62;		
 	&#60;/body&#62;
-&#60;/html&#62;</pre></div><p class="paragraph"/>The key part of the markup above is the href attribute which must contain the package-relative path to a page. The home page is inside package org.wicketTutorial which in turns contains the sub package anotherPackage. This package hierarchy is reflected by the href attributes: in the first anchor we have a link to the home page itself while the second anchor points to page SubPackagePage which is placed into sub package anotherPackage. Absolute paths are supported as well and we can use them if we want to specify the full package of a given page. For example the link to SubPackagePage could have been written in the following (more verbose) way:<p class="paragraph"/><div class="code"><pre>&#60;a href=<span class="java&#45;quote">"/org/wicketTutorial/anotherPackage/SubPackagePage.html"</span>&#62;SubPackagePage&#60;/a&#62;</pre></div><p class="paragraph"/>If we take a look also at the markup of SubPackagePage we can see that it contains
  a link to the home page which uses the parent directory selector (relative path):<p class="paragraph"/><div class="code"><pre>&#60;!DOCTYPE html&#62;
+&#60;/html&#62;</pre></div><p class="paragraph"/>The key part of the markup above is the href attribute which must contain the package-relative path to a page. The home page is inside package org.wicketTutorial which in turns contains the sub package anotherPackage. This package hierarchy is reflected by the href attributes: in the first anchor we have a link to the home page itself while the second anchor points to page SubPackagePage which is placed into sub package anotherPackage. Absolute paths are supported as well and we can use them if we want to specify the full package of a given page. For example the link to SubPackagePage could have been written in the following (more verbose) way:<p class="paragraph"/><div class="code"><pre>&#60;a href=<span class="java&#45;quote">"/org/wicketTutorial/anotherPackage/SubPackagePage.html"</span>&#62; SubPackagePage&#60;/a&#62;</pre></div><p class="paragraph"/>If we take a look also at the markup of SubPackagePage we can see that it contain
 s a link to the home page which uses the parent directory selector (relative path):<p class="paragraph"/><div class="code"><pre>&#60;!DOCTYPE html&#62;
 &#60;html xmlns:wicket=<span class="java&#45;quote">"http://wicket.apache.org"</span>&#62;
 	&#60;head&#62;
 		&#60;meta charset=<span class="java&#45;quote">"utf&#45;8"</span> /&#62;
@@ -192,6 +192,7 @@ function addJsClass() {
 &#125;</pre></div><p class="paragraph"/>The purpose of &#60;wicket:link&#62; tag is not limited to just simplifying the usage of bookmarkable pages. As we we will see in chapter 13, this tag can also be adopted to manage web resources like pictures, CSS files, JavaScript files and so on.
 
 
+
                 <div style="clear:both;margin-top:15px;"></div>
                 
                     <div class="toc-item prev-left"><a href="../../guide/chapter8.html">&lt;&lt; <strong>8</strong><span>Under the hood of the request processing</span></a></div>

Modified: wicket/common/site/trunk/_site/guide/guide/src/docs/guide/chapter13/chapter13_2.gdoc
URL: http://svn.apache.org/viewvc/wicket/common/site/trunk/_site/guide/guide/src/docs/guide/chapter13/chapter13_2.gdoc?rev=1533947&r1=1533946&r2=1533947&view=diff
==============================================================================
--- wicket/common/site/trunk/_site/guide/guide/src/docs/guide/chapter13/chapter13_2.gdoc (original)
+++ wicket/common/site/trunk/_site/guide/guide/src/docs/guide/chapter13/chapter13_2.gdoc Sun Oct 20 18:42:26 2013
@@ -126,5 +126,5 @@ wicket:message can be adopted also to lo
 If we want to specify multiple attributes at once, we can separate them with a coma:
 
 {code:html}
-<input type="submit" value="Preview value" wicket:message="value:key4value,title:key4title"/>
-{code}
\ No newline at end of file
+<input type="submit" value="Preview value" wicket:message="value:key4value, title:key4title"/>
+{code}

Modified: wicket/common/site/trunk/_site/guide/guide/src/docs/guide/chapter13/chapter13_3.gdoc
URL: http://svn.apache.org/viewvc/wicket/common/site/trunk/_site/guide/guide/src/docs/guide/chapter13/chapter13_3.gdoc?rev=1533947&r1=1533946&r2=1533947&view=diff
==============================================================================
--- wicket/common/site/trunk/_site/guide/guide/src/docs/guide/chapter13/chapter13_3.gdoc (original)
+++ wicket/common/site/trunk/_site/guide/guide/src/docs/guide/chapter13/chapter13_3.gdoc Sun Oct 20 18:42:26 2013
@@ -94,7 +94,7 @@ public void init()
 {
   super.init();
   //retrieve IResourceSettings and then the list of resource loaders
-  List<IStringResourceLoader> resourceLoaders= getResourceSettings(). 
-                                                                 getStringResourceLoaders();
+  List<IStringResourceLoader> resourceLoaders = getResourceSettings(). 
+                                                getStringResourceLoaders();
   //customize the list...
-{code}
\ No newline at end of file
+{code}

Modified: wicket/common/site/trunk/_site/guide/guide/src/docs/guide/chapter14/chapter14_4.gdoc
URL: http://svn.apache.org/viewvc/wicket/common/site/trunk/_site/guide/guide/src/docs/guide/chapter14/chapter14_4.gdoc?rev=1533947&r1=1533946&r2=1533947&view=diff
==============================================================================
--- wicket/common/site/trunk/_site/guide/guide/src/docs/guide/chapter14/chapter14_4.gdoc (original)
+++ wicket/common/site/trunk/_site/guide/guide/src/docs/guide/chapter14/chapter14_4.gdoc Sun Oct 20 18:42:26 2013
@@ -4,13 +4,13 @@ Wicket comes with interface org.apache.w
 
 Header entries are instances of abstract class org.apache.wicket.markup.head.HeaderItem. Wicket provides a set of built-in implementations of this class suited for the most common types of resources. With the exception of PriorityHeaderItem, every implementation of HeaderItem is an abstract factory class:
 
-* CssHeaderItem: represents a CSS resource. Factory methods provided by this class are forReference which takes in input a resource reference, forUrl which creates an CSS item from a given URL and forCSS which takes in input an arbitrary CSS string and an optional id value to identify the resource.
-* JavaScriptHeaderItem: represents a JavaScript resource. Just like CssHeaderItem it provides factory methods forReference and forUrl along with method forScript which takes in input an arbitrary string representing the script and an optional id value to identify the resource.
-* OnDomReadyHeaderItem: it adds JavaScript code that will be executed after the DOM has been built, but before external files (such as picture, CSS, etc...) have been loaded. The class provides a factory method forScript which takes in input an arbitrary string representing the script to execute.
-* OnEventHeaderItem: the JavaScript code added with this class is executed when a specific JavaScript event is triggered on a given DOM element. The factory method is forScript(String target, String event, CharSequence javaScript), where target is the id of a DOM element (or the element itself), event is the event that must trigger our code and javaScript is  the code to execute.
-* OnLoadHeaderItem: the JavaScript code added with this class is executed after the whole page is loaded, external files included. The factory method is forScript(CharSequence javaScript).
-* PriorityHeaderItem: it wraps another header item and ensures that it will have the priority over the other items during rendering phase.
-* StringHeaderItem: with this class we can add an arbitrary text to the header section. Factory method is forString(CharSequence string).
+* *CssHeaderItem:* represents a CSS resource. Factory methods provided by this class are forReference which takes in input a resource reference, forUrl which creates an CSS item from a given URL and forCSS which takes in input an arbitrary CSS string and an optional id value to identify the resource.
+* *JavaScriptHeaderItem:* represents a JavaScript resource. Just like CssHeaderItem it provides factory methods forReference and forUrl along with method forScript which takes in input an arbitrary string representing the script and an optional id value to identify the resource.
+* *OnDomReadyHeaderItem:* it adds JavaScript code that will be executed after the DOM has been built, but before external files (such as picture, CSS, etc...) have been loaded. The class provides a factory method forScript which takes in input an arbitrary string representing the script to execute.
+* *OnEventHeaderItem:* the JavaScript code added with this class is executed when a specific JavaScript event is triggered on a given DOM element. The factory method is forScript(String target, String event, CharSequence javaScript), where target is the id of a DOM element (or the element itself), event is the event that must trigger our code and javaScript is  the code to execute.
+* *OnLoadHeaderItem:* the JavaScript code added with this class is executed after the whole page is loaded, external files included. The factory method is forScript(CharSequence javaScript).
+* *PriorityHeaderItem:* it wraps another header item and ensures that it will have the priority over the other items during rendering phase.
+* *StringHeaderItem:* with this class we can add an arbitrary text to the header section. Factory method is forString(CharSequence string).
 
 In the following example our custom component loads a CSS file as a package resource (placed in the same package) and it adds it to header section. 
 
@@ -26,4 +26,4 @@ public class MyComponent extends Compone
     response.render(cssItem);
   }
 }
-{code}
\ No newline at end of file
+{code}

Modified: wicket/common/site/trunk/_site/guide/guide/src/docs/guide/chapter16/chapter16_2.gdoc
URL: http://svn.apache.org/viewvc/wicket/common/site/trunk/_site/guide/guide/src/docs/guide/chapter16/chapter16_2.gdoc?rev=1533947&r1=1533946&r2=1533947&view=diff
==============================================================================
--- wicket/common/site/trunk/_site/guide/guide/src/docs/guide/chapter16/chapter16_2.gdoc (original)
+++ wicket/common/site/trunk/_site/guide/guide/src/docs/guide/chapter16/chapter16_2.gdoc Sun Oct 20 18:42:26 2013
@@ -19,7 +19,7 @@ public interface IMyListener extends IRe
 {
 	/**RequestListenerInterface instance*/
 	public static final RequestListenerInterface INTERFACE = new 
-                                           RequestListenerInterface(IMyListener.class);
+                               RequestListenerInterface(IMyListener.class);
 	/**
 	 * Called when the relative callback URL is requested.
 	 */
@@ -42,7 +42,7 @@ public void onRequest() {	
 	IRequestParameters requestParameters = request.getRequestParameters();
 	StringValue choiceId = requestParameters.getParameterValue("choiceId");
 	//boundComponent is the component that the behavior it is bound to.
-	boundComponent.setDefaultModelObject(convertChoiceIdToChoice(choiceId.toString()));
+	boundComponent.setDefaultModelObject( convertChoiceIdToChoice(choiceId.toString()));
 }
 {code}
 
@@ -139,4 +139,4 @@ public void onEvent(IEvent event) {
 
 Project InterComponetsEventsExample provides a concrete example of sending an event to a component (named 'container in the middle') using all the available broadcast methods:
 
-!InterComponentsEventsExample-screenshot.png!
\ No newline at end of file
+!InterComponentsEventsExample-screenshot.png!

Modified: wicket/common/site/trunk/_site/guide/guide/src/docs/guide/chapter17/chapter17_2.gdoc
URL: http://svn.apache.org/viewvc/wicket/common/site/trunk/_site/guide/guide/src/docs/guide/chapter17/chapter17_2.gdoc?rev=1533947&r1=1533946&r2=1533947&view=diff
==============================================================================
--- wicket/common/site/trunk/_site/guide/guide/src/docs/guide/chapter17/chapter17_2.gdoc (original)
+++ wicket/common/site/trunk/_site/guide/guide/src/docs/guide/chapter17/chapter17_2.gdoc Sun Oct 20 18:42:26 2013
@@ -166,16 +166,16 @@ public class HomePage extends WebPage {
      DefaultMutableTreeNode root = new DefaultMutableTreeNode("Cities of Europe");
       
      addNodes(addNodes(root, "Italy"), "Rome", "Venice", "Milan", "Florence");
-     addNodes(addNodes(root, "Germany"),"Stuttgart","Munich","Berlin","Dusseldorf", "Dresden");
-     addNodes(addNodes(root, "France"), "Paris","Toulouse","Strasbourg","Bordeaux", "Lyon");
+     addNodes(addNodes(root, "Germany"),"Stuttgart","Munich", "Berlin","Dusseldorf", "Dresden");
+     addNodes(addNodes(root, "France"), "Paris","Toulouse", "Strasbourg","Bordeaux", "Lyon");
       
      DefaultTreeModel treeModel = new DefaultTreeModel(root);
      TreeModelProvider<DefaultMutableTreeNode> modelProvider = new 
-                                  TreeModelProvider<DefaultMutableTreeNode>(treeModel) {
-         @Override
-         public IModel<DefaultMutableTreeNode> model(DefaultMutableTreeNode object) {
-            return Model.of(object);
-        }
+                            TreeModelProvider<DefaultMutableTreeNode>( treeModel ){
+       @Override
+       public IModel<DefaultMutableTreeNode> model(DefaultMutableTreeNode object){
+          return Model.of(object);
+       }
      };
      //To be continued...
 {code}
@@ -339,4 +339,4 @@ new AjaxLink("ajaxLink"){
 };
 {code}
 
-Please note that in the code above we didn't invoked method setOutputMarkupId(true) as setOutputMarkupPlaceholderTag already does it internally.
\ No newline at end of file
+Please note that in the code above we didn't invoked method setOutputMarkupId(true) as setOutputMarkupPlaceholderTag already does it internally.

Modified: wicket/common/site/trunk/_site/guide/guide/src/docs/guide/chapter17/chapter17_5.gdoc
URL: http://svn.apache.org/viewvc/wicket/common/site/trunk/_site/guide/guide/src/docs/guide/chapter17/chapter17_5.gdoc?rev=1533947&r1=1533946&r2=1533947&view=diff
==============================================================================
--- wicket/common/site/trunk/_site/guide/guide/src/docs/guide/chapter17/chapter17_5.gdoc (original)
+++ wicket/common/site/trunk/_site/guide/guide/src/docs/guide/chapter17/chapter17_5.gdoc Sun Oct 20 18:42:26 2013
@@ -27,7 +27,7 @@ Parameters 'u' (callback URL) and 'c' (t
 Here is the final AJAX function generate for the behavior used in example project AjaxEventBehavior Example:
 
 {code}
-Wicket.Ajax.ajax({"u":"./?0-1.IBehaviorListener.0-clickCounterLabel","e":"click",               
+Wicket.Ajax.ajax({"u":"./?0-1.IBehaviorListener.0-clickCounterLabel", "e":"click",               
                   "c":"clickCounterLabel1"});
 {code}
 
@@ -51,4 +51,4 @@ IAjaxCallListener defines a set of metho
 * *getFailureHandler(Component)*: returns the JavaScript code that will be executed if the AJAX call has returned with a failure. The code is executed in a scope where it can use variable attrs, which is the same variable seen for getBeforeHandler. 
 * *getCompleteHandler(Component)*: returns the JavaScript that will be invoked after success or failure handler has been executed. The code is executed in a scope where it can use variables attrs, jqXHR and textStatus which are the same variables seen for getSuccessHandler. 
 
-In the next paragraph we will see an example of custom IAjaxCallListener designed to disable a component during AJAX request processing.
\ No newline at end of file
+In the next paragraph we will see an example of custom IAjaxCallListener designed to disable a component during AJAX request processing.

Modified: wicket/common/site/trunk/_site/guide/guide/src/docs/guide/chapter17/chapter17_6.gdoc
URL: http://svn.apache.org/viewvc/wicket/common/site/trunk/_site/guide/guide/src/docs/guide/chapter17/chapter17_6.gdoc?rev=1533947&r1=1533946&r2=1533947&view=diff
==============================================================================
--- wicket/common/site/trunk/_site/guide/guide/src/docs/guide/chapter17/chapter17_6.gdoc (original)
+++ wicket/common/site/trunk/_site/guide/guide/src/docs/guide/chapter17/chapter17_6.gdoc Sun Oct 20 18:42:26 2013
@@ -77,7 +77,7 @@ The code of our custom listener is the f
 {code}
 public class DisableComponentListener extends AjaxCallListener {
    private static PackageResourceReference customScriptReference = new   
-   PackageResourceReference(DisableComponentListener.class,"moveHiderAndIndicator.js");
+   PackageResourceReference(DisableComponentListener.class, "moveHiderAndIndicator.js");
    
    private static PackageResourceReference jqueryUiPositionRef = new    
    PackageResourceReference(DisableComponentListener.class, "jquery-ui-position.min.js");
@@ -95,13 +95,13 @@ public class DisableComponentListener ex
    public CharSequence getBeforeHandler(Component component) {   
       CharSequence indicatorUrl = getIndicatorUrl(component);
       return ";DisableComponentListener.disableElement('" + targetComponent.getMarkupId() 
-                                                   + "'," + "'" + indicatorUrl + "');";
+              + "'," + "'" + indicatorUrl + "');";
    }
 
    @Override
    public CharSequence getCompleteHandler(Component component) {
-      return ";DisableComponentListener.hideComponent('" + targetComponent.getMarkupId() + 
-                                                                               "');";
+      return ";DisableComponentListener.hideComponent('" 
+		+ targetComponent.getMarkupId() + "');";
    }
    
    protected CharSequence getIndicatorUrl(Component component) {
@@ -110,11 +110,11 @@ public class DisableComponentListener ex
    
    @Override
    public void renderHead(Component component, IHeaderResponse response) {   
-      ResourceReference jqueryReference = Application.get().getJavaScriptLibrarySettings(). 
-                                     getJQueryReference();
+      ResourceReference jqueryReference = 
+      Application.get().getJavaScriptLibrarySettings().getJQueryReference();
       response.render(JavaScriptHeaderItem.forReference(jqueryReference));      
       response.render(JavaScriptHeaderItem.forReference(jqueryUiPositionRef));
-      response.render(JavaScriptHeaderItem.forReference(customScriptReference));
+      response.render(JavaScriptHeaderItem.forReference(customScriptReference) );
    }
 }
 {code}
@@ -171,4 +171,4 @@ Wicket.Event.subscribe('/dom/node/removi
 );
 {code}
 
-The code above retrieves the id of the component that is about to be removed using parameter attributes. Then it checks if a JQuery datepicker was defined for the given component and if so, it removes the widget calling function destroy.
\ No newline at end of file
+The code above retrieves the id of the component that is about to be removed using parameter attributes. Then it checks if a JQuery datepicker was defined for the given component and if so, it removes the widget calling function destroy.

Modified: wicket/common/site/trunk/_site/guide/guide/src/docs/guide/chapter19/chapter19_2.gdoc
URL: http://svn.apache.org/viewvc/wicket/common/site/trunk/_site/guide/guide/src/docs/guide/chapter19/chapter19_2.gdoc?rev=1533947&r1=1533946&r2=1533947&view=diff
==============================================================================
--- wicket/common/site/trunk/_site/guide/guide/src/docs/guide/chapter19/chapter19_2.gdoc (original)
+++ wicket/common/site/trunk/_site/guide/guide/src/docs/guide/chapter19/chapter19_2.gdoc Sun Oct 20 18:42:26 2013
@@ -41,7 +41,8 @@ To change the authorization strategy in 
   public void init()
   {
     super.init();
-    getSecuritySettings().setAuthorizationStrategy(myAuthorizationStrategy);
+    getSecuritySettings().
+	setAuthorizationStrategy(myAuthorizationStrategy);
   }	
 //...
 {code}
@@ -211,7 +212,8 @@ The access-denied page can be customized
    //Application class code...
    @Override
    public void init(){   
-      getApplicationSettings().setAccessDeniedPage(MyCustomAccessDeniedPage.class); 
+      getApplicationSettings().setAccessDeniedPage(
+			MyCustomAccessDeniedPage.class); 
    }
 {code}
 
@@ -273,4 +275,4 @@ h3. Strategy RoleAuthorizationStrategy
 
 Class RoleAuthorizationStrategy is a compound strategy that combines both MetaData RoleAuthorizationStrategy and AnnotationsRoleAuthorizationStrategy.
 
-This is the strategy used internally by AuthenticatedWebApplication.
\ No newline at end of file
+This is the strategy used internally by AuthenticatedWebApplication.

Modified: wicket/common/site/trunk/_site/guide/guide/src/docs/guide/chapter19/chapter19_4.gdoc
URL: http://svn.apache.org/viewvc/wicket/common/site/trunk/_site/guide/guide/src/docs/guide/chapter19/chapter19_4.gdoc?rev=1533947&r1=1533946&r2=1533947&view=diff
==============================================================================
--- wicket/common/site/trunk/_site/guide/guide/src/docs/guide/chapter19/chapter19_4.gdoc (original)
+++ wicket/common/site/trunk/_site/guide/guide/src/docs/guide/chapter19/chapter19_4.gdoc Sun Oct 20 18:42:26 2013
@@ -30,7 +30,7 @@ Patterns that allow to access to every f
 public void init()   
 {
       IPackageResourceGuard packageResourceGuard = application.getResourceSettings() 
-                                                              .getPackageResourceGuard();
+                                                   .getPackageResourceGuard();
       if (packageResourceGuard instanceof SecurePackageResourceGuard)
       {
          SecurePackageResourceGuard guard = (SecurePackageResourceGuard) packageResourceGuard;
@@ -38,4 +38,4 @@ public void init()   
          guard.addPattern("+public/*.pdf");
       }
 }
-{code}
\ No newline at end of file
+{code}

Modified: wicket/common/site/trunk/_site/guide/guide/src/docs/guide/chapter20/chapter20_1.gdoc
URL: http://svn.apache.org/viewvc/wicket/common/site/trunk/_site/guide/guide/src/docs/guide/chapter20/chapter20_1.gdoc?rev=1533947&r1=1533946&r2=1533947&view=diff
==============================================================================
--- wicket/common/site/trunk/_site/guide/guide/src/docs/guide/chapter20/chapter20_1.gdoc (original)
+++ wicket/common/site/trunk/_site/guide/guide/src/docs/guide/chapter20/chapter20_1.gdoc Sun Oct 20 18:42:26 2013
@@ -121,7 +121,7 @@ In the test case from project CustomReso
 {code}
 //...
 @Test
-public void testMountedResourceResponse() throws IOException, FeedException{		tester.startResource(new RSSProducerResource());
+public void testMountedResourceResponse() throws IOException, FeedException{tester.startResource(new RSSProducerResource());
 	String responseTxt = tester.getLastResponse().getDocument();
 	//write the RSS feed used in the test into a ByteArrayOutputStream
 	ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
@@ -190,7 +190,8 @@ public class HomePage extends WebPage {
 		@Override
 		protected void onEvent(AjaxRequestTarget target) {
 			//change label's data object
-			getComponent().setDefaultModelObject(OTHER_VALUE);
+			getComponent().setDefaultModelObject(
+                                                  OTHER_VALUE);
 			target.add(getComponent());
 		}
 	}).setOutputMarkupId(true);
@@ -221,8 +222,8 @@ To test a generic AJAX behavior we can s
 
 {code}
 //...
-AjaxFormComponentUpdatingBehavior ajaxBehavior = new AjaxFormComponentUpdatingBehavior 
-                                                                           ("change"){
+AjaxFormComponentUpdatingBehavior ajaxBehavior = 
+		new AjaxFormComponentUpdatingBehavior("change"){
 	@Override
 	protected void onUpdate(AjaxRequestTarget target) {
 		//...				
@@ -269,4 +270,4 @@ public void tearDown(){
 	tester.destroy();
 }
 {code}
-{note}
\ No newline at end of file
+{note}

Modified: wicket/common/site/trunk/_site/guide/guide/src/docs/guide/chapter20/chapter20_3.gdoc
URL: http://svn.apache.org/viewvc/wicket/common/site/trunk/_site/guide/guide/src/docs/guide/chapter20/chapter20_3.gdoc?rev=1533947&r1=1533946&r2=1533947&view=diff
==============================================================================
--- wicket/common/site/trunk/_site/guide/guide/src/docs/guide/chapter20/chapter20_3.gdoc (original)
+++ wicket/common/site/trunk/_site/guide/guide/src/docs/guide/chapter20/chapter20_3.gdoc Sun Oct 20 18:42:26 2013
@@ -35,8 +35,8 @@ public void homePageMarkupTest()
 	Assert.assertNotNull(tagTester);
 	Assert.assertEquals("span", tagTester.getName());	
 	
-	List<TagTester> tagTesterList = TagTester.createTagsByAttribute(responseTxt, "class", 
-                                                                       "myClass", false);
+	List<TagTester> tagTesterList = TagTester.createTagsByAttribute(responseTxt, 
+						"class", "myClass", false);
 		
 	Assert.assertEquals(2, tagTesterList.size());
 }

Modified: wicket/common/site/trunk/_site/guide/guide/src/docs/guide/chapter21/chapter21_2.gdoc
URL: http://svn.apache.org/viewvc/wicket/common/site/trunk/_site/guide/guide/src/docs/guide/chapter21/chapter21_2.gdoc?rev=1533947&r1=1533946&r2=1533947&view=diff
==============================================================================
--- wicket/common/site/trunk/_site/guide/guide/src/docs/guide/chapter21/chapter21_2.gdoc (original)
+++ wicket/common/site/trunk/_site/guide/guide/src/docs/guide/chapter21/chapter21_2.gdoc Sun Oct 20 18:42:26 2013
@@ -38,15 +38,24 @@ When you run this test though, you'll un
 
 {code}
 java.lang.IllegalStateException: No WebApplicationContext found: no ContextLoaderListener registered?
-	at org.springframework.web.context.support.WebApplicationContextUtils.getRequiredWebApplicationContext(WebApplicationContextUtils.java:84)
-	at org.apache.wicket.spring.injection.annot.SpringComponentInjector.<init>(SpringComponentInjector.java:72)
-	at com.comsysto.serviceplatform.uiwebapp.MyWebApplication.initializeSpringComponentInjector(MyWebApplication.java:59)
-	at com.comsysto.serviceplatform.uiwebapp.MyWebApplication.init(MyWebApplication.java:49)
-	at org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:719)
-	at org.apache.wicket.protocol.http.MockWebApplication.<init>(MockWebApplication.java:168)
-	at org.apache.wicket.util.tester.BaseWicketTester.<init>(BaseWicketTester.java:219)
-	at org.apache.wicket.util.tester.WicketTester.<init>(WicketTester.java:325)
-	at org.apache.wicket.util.tester.WicketTester.<init>(WicketTester.java:308)
+    at org.springframework.web.context.support.WebApplicationContextUtils.
+	getRequiredWebApplicationContext(WebApplicationContextUtils.java:84)
+    at org.apache.wicket.spring.injection.annot.
+	SpringComponentInjector.<init>(SpringComponentInjector.java:72)
+    at com.comsysto.serviceplatform.uiwebapp.MyWebApplication.
+	initializeSpringComponentInjector(MyWebApplication.java:59)
+    at com.comsysto.serviceplatform.uiwebapp.MyWebApplication.
+	init(MyWebApplication.java:49)
+    at org.apache.wicket.protocol.http.WicketFilter.
+	init(WicketFilter.java:719)
+    at org.apache.wicket.protocol.http.MockWebApplication.
+	<init>(MockWebApplication.java:168)
+    at org.apache.wicket.util.tester.BaseWicketTester.
+	<init>(BaseWicketTester.java:219)
+    at org.apache.wicket.util.tester.WicketTester.
+	<init>(WicketTester.java:325)
+    at org.apache.wicket.util.tester.WicketTester.
+	<init>(WicketTester.java:308)
 {code}
 
 As you can see above, the Exception gets raised during the initialization of the WicketTester instance even before the actual test method gets executed. Even though we have applied rather cool and simple annotation based test configuration already described and passed in perfectly well prepared ApplicationContext instance to the WicketTester instance in the constructor, somewhere down the rabbit hole someone complained that no WebApplicationContext instance could have been found which seems to be required in order to initialize the WicketTester properly.
@@ -119,4 +128,4 @@ public class MyWebApplication extends We
 
 For additional clarification of how @MyWebApplication@ now relates to both Wicket and Spring framework here is an according class diagram:
 
-!mywebapp-class-diagramm.jpg!
\ No newline at end of file
+!mywebapp-class-diagramm.jpg!

Modified: wicket/common/site/trunk/_site/guide/guide/src/docs/guide/chapter24/chapter24_2.gdoc
URL: http://svn.apache.org/viewvc/wicket/common/site/trunk/_site/guide/guide/src/docs/guide/chapter24/chapter24_2.gdoc?rev=1533947&r1=1533946&r2=1533947&view=diff
==============================================================================
--- wicket/common/site/trunk/_site/guide/guide/src/docs/guide/chapter24/chapter24_2.gdoc (original)
+++ wicket/common/site/trunk/_site/guide/guide/src/docs/guide/chapter24/chapter24_2.gdoc Sun Oct 20 18:42:26 2013
@@ -18,25 +18,29 @@ By default TinyMceBehavior adds only a b
 To add more functionalities we must use class TinyMCESettings to register additional TinyMCE plugins and to customize the toolbars buttons. The following code is an excerpt from example page FullFeaturedTinyMCEPage:
 
 {code}
-TinyMCESettings settings = new TinyMCESettings(TinyMCESettings.Theme.advanced);
+TinyMCESettings settings = new TinyMCESettings(
+                       TinyMCESettings.Theme.advanced);
 //...
 // first toolbar
 //...
 settings.add(Button.newdocument, TinyMCESettings.Toolbar.first,
-		                             TinyMCESettings.Position.before);
+		      TinyMCESettings.Position.before);
 settings.add(Button.separator, TinyMCESettings.Toolbar.first,
-			                      TinyMCESettings.Position.before);
+		      TinyMCESettings.Position.before);
 settings.add(Button.fontselect, TinyMCESettings.Toolbar.first,
-			                      TinyMCESettings.Position.after);
+		      TinyMCESettings.Position.after);
 //...
 // other settings
-settings.setToolbarAlign(TinyMCESettings.Align.left);
-settings.setToolbarLocation(TinyMCESettings.Location.top);
-settings.setStatusbarLocation(TinyMCESettings.Location.bottom);
+settings.setToolbarAlign(
+   		TinyMCESettings.Align.left);
+settings.setToolbarLocation(
+   		TinyMCESettings.Location.top);
+settings.setStatusbarLocation(
+   		TinyMCESettings.Location.bottom);
 settings.setResizing(true);
 //...
 TextArea textArea = new TextArea("ta", new Model(TEXT));
 textArea.add(new TinyMceBehavior(settings));
 {code}
 
-For more configuration examples see pages inside package wicket.contrib.examples.tinymce in the example project of the module.
\ No newline at end of file
+For more configuration examples see pages inside package wicket.contrib.examples.tinymce in the example project of the module.

Modified: wicket/common/site/trunk/_site/guide/guide/src/docs/guide/chapter7/chapter7_2.gdoc
URL: http://svn.apache.org/viewvc/wicket/common/site/trunk/_site/guide/guide/src/docs/guide/chapter7/chapter7_2.gdoc?rev=1533947&r1=1533946&r2=1533947&view=diff
==============================================================================
--- wicket/common/site/trunk/_site/guide/guide/src/docs/guide/chapter7/chapter7_2.gdoc (original)
+++ wicket/common/site/trunk/_site/guide/guide/src/docs/guide/chapter7/chapter7_2.gdoc Sun Oct 20 18:42:26 2013
@@ -132,8 +132,9 @@ This error page can be customized with t
 public void init()
 {
 	super.init();
-	getApplicationSettings().setPageExpiredErrorPage(CustomExpiredErrorPage.class);
+	getApplicationSettings().setPageExpiredErrorPage(
+				CustomExpiredErrorPage.class);
 }
 {code}
 
-The page class provided as custom error page must have a public constructor with no argument or a constructor that takes as input a single PageParameters argument (the page must be bookmarkable as described in paragraph 8.1.1).
\ No newline at end of file
+The page class provided as custom error page must have a public constructor with no argument or a constructor that takes as input a single PageParameters argument (the page must be bookmarkable as described in paragraph 8.1.1).

Modified: wicket/common/site/trunk/_site/guide/guide/src/docs/guide/chapter8/chapter8_4.gdoc
URL: http://svn.apache.org/viewvc/wicket/common/site/trunk/_site/guide/guide/src/docs/guide/chapter8/chapter8_4.gdoc?rev=1533947&r1=1533946&r2=1533947&view=diff
==============================================================================
--- wicket/common/site/trunk/_site/guide/guide/src/docs/guide/chapter8/chapter8_4.gdoc (original)
+++ wicket/common/site/trunk/_site/guide/guide/src/docs/guide/chapter8/chapter8_4.gdoc Sun Oct 20 18:42:26 2013
@@ -39,7 +39,8 @@ h3. Accessing to the HTTP session
 If for any reason we need to directly access to the underlying HttpSession object, we can retrieve it from the current request with the following code:
 
 {code}
-HttpSession session = ((ServletWebRequest)RequestCycle.get().getRequest()).getContainerRequest().getSession();
+HttpSession session = ((ServletWebRequest)RequestCycle.get()
+		.getRequest()).getContainerRequest().getSession();
 {code}
 
 Using the raw session object might be necessary if we have to set a session attribute with a particular name without the prefix added by Wicket. Let's say for example that we are working with Tomcat as web server. One of the administrative tools provided by Tomcat is a page listing all the active user sessions of a given web application:
@@ -49,7 +50,8 @@ Using the raw session object might be ne
 Tomcat allows us to set the values that will be displayed in columns “Guessed locale” and “Guessed User name”. One possible way to do this is to use session attributes named “Locale” and “userName” but we can't create them via Wicket's Session class because they would not have exactly the name required by Tomcat. Instead, we must use the raw HttpSession and set our attributes on it:
 
 {code}
-HttpSession session = ((ServletWebRequest)RequestCycle.get().getRequest()).getContainerRequest().getSession();	
+HttpSession session = ((ServletWebRequest)RequestCycle.get().
+		getRequest()).getContainerRequest().getSession();	
 
 session.setAttribute("Locale", "ENGLISH");
 session.setAttribute("userName", "Mr BadGuy");
@@ -149,4 +151,4 @@ Code to get the object from the metadata
 Connection connection = Application.get().getMetaData(MetaDataApp.connectionKey);
 {code}
 
-Since MetaDataKey<T> class is declared as abstract, we must implement it with a subclass or with an anonymous class (like we did in the example above).
\ No newline at end of file
+Since MetaDataKey<T> class is declared as abstract, we must implement it with a subclass or with an anonymous class (like we did in the example above).

Modified: wicket/common/site/trunk/_site/guide/guide/src/docs/guide/chapter9/chapter9_1.gdoc
URL: http://svn.apache.org/viewvc/wicket/common/site/trunk/_site/guide/guide/src/docs/guide/chapter9/chapter9_1.gdoc?rev=1533947&r1=1533946&r2=1533947&view=diff
==============================================================================
--- wicket/common/site/trunk/_site/guide/guide/src/docs/guide/chapter9/chapter9_1.gdoc (original)
+++ wicket/common/site/trunk/_site/guide/guide/src/docs/guide/chapter9/chapter9_1.gdoc Sun Oct 20 18:42:26 2013
@@ -53,7 +53,8 @@ public class PageWithParameters extends 
 The code is quite straightforward and it’s more interesting to look at the URL generated for the target page:
 
 {code:html}
-<app root>/PageParametersExample/wicket/bookmarkable/org.wicketTutorial.PageWithParameters?foo=foo&bar=bar
+<app root>/PageParametersExample/wicket/bookmarkable/
+		org.wicketTutorial.PageWithParameters?foo=foo&bar=bar
 {code}
 
 At first glance the URL above could seem a little weird, except for the last part which contains the two named parameters used to build the target page.
@@ -102,4 +103,4 @@ add(new Link("pageWithNamedIndexParam") 
 });
 {code}
 
-The URL generated for the linked page (PageWithParameters) is the one seen at the beginning of the paragraph.
\ No newline at end of file
+The URL generated for the linked page (PageWithParameters) is the one seen at the beginning of the paragraph.

Modified: wicket/common/site/trunk/_site/guide/guide/src/docs/guide/chapter9/chapter9_3.gdoc
URL: http://svn.apache.org/viewvc/wicket/common/site/trunk/_site/guide/guide/src/docs/guide/chapter9/chapter9_3.gdoc?rev=1533947&r1=1533946&r2=1533947&view=diff
==============================================================================
--- wicket/common/site/trunk/_site/guide/guide/src/docs/guide/chapter9/chapter9_3.gdoc (original)
+++ wicket/common/site/trunk/_site/guide/guide/src/docs/guide/chapter9/chapter9_3.gdoc Sun Oct 20 18:42:26 2013
@@ -23,7 +23,7 @@ Bookmarkable pages can be linked directl
 The key part of the markup above is the href attribute which must contain the package-relative path to a page. The home page is inside package org.wicketTutorial which in turns contains the sub package anotherPackage. This package hierarchy is reflected by the href attributes: in the first anchor we have a link to the home page itself while the second anchor points to page SubPackagePage which is placed into sub package anotherPackage. Absolute paths are supported as well and we can use them if we want to specify the full package of a given page. For example the link to SubPackagePage could have been written in the following (more verbose) way:
 
 {code:html}
-<a href="/org/wicketTutorial/anotherPackage/SubPackagePage.html">SubPackagePage</a>
+<a href="/org/wicketTutorial/anotherPackage/SubPackagePage.html"> SubPackagePage</a>
 {code}
 
 If we take a look also at the markup of SubPackagePage we can see that it contains a link to the home page which uses the parent directory selector (relative path):
@@ -65,4 +65,4 @@ public void init()
 }
 {code}
 
-The purpose of <wicket:link> tag is not limited to just simplifying the usage of bookmarkable pages. As we we will see in chapter 13, this tag can also be adopted to manage web resources like pictures, CSS files, JavaScript files and so on.
\ No newline at end of file
+The purpose of <wicket:link> tag is not limited to just simplifying the usage of bookmarkable pages. As we we will see in chapter 13, this tag can also be adopted to manage web resources like pictures, CSS files, JavaScript files and so on.