You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by da...@apache.org on 2016/11/18 14:51:02 UTC

[18/21] wicket git commit: Removes gdoc infrastructure, adds asciidoctor files

http://git-wip-us.apache.org/repos/asf/wicket/blob/533c2d36/wicket-user-guide/src/docs/guide/bestpractices/bestpractices_9.gdoc
----------------------------------------------------------------------
diff --git a/wicket-user-guide/src/docs/guide/bestpractices/bestpractices_9.gdoc b/wicket-user-guide/src/docs/guide/bestpractices/bestpractices_9.gdoc
deleted file mode 100644
index de6d08f..0000000
--- a/wicket-user-guide/src/docs/guide/bestpractices/bestpractices_9.gdoc
+++ /dev/null
@@ -1,3 +0,0 @@
-
-
-Validators should just validate. Consider a bank account form which has a @BankFormValidator@. This validator checks the bank data over a webservice and corrects the bank name. Nobody would expect that a validator modifies information. Such logic has to be located in @Form.onSubmit()@ or in the event logic of a button.
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/wicket/blob/533c2d36/wicket-user-guide/src/docs/guide/componentLifecycle.gdoc
----------------------------------------------------------------------
diff --git a/wicket-user-guide/src/docs/guide/componentLifecycle.gdoc b/wicket-user-guide/src/docs/guide/componentLifecycle.gdoc
deleted file mode 100644
index 09caf60..0000000
--- a/wicket-user-guide/src/docs/guide/componentLifecycle.gdoc
+++ /dev/null
@@ -1 +0,0 @@
-Just like applets and servlets, also Wicket components follow a lifecycle during their existence. In this chapter we will analyze each stage of this cycle and we will learn how to make the most of the hook methods that are triggered when a component moves from one stage to another.
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/wicket/blob/533c2d36/wicket-user-guide/src/docs/guide/componentLifecycle/componentLifecycle_1.gdoc
----------------------------------------------------------------------
diff --git a/wicket-user-guide/src/docs/guide/componentLifecycle/componentLifecycle_1.gdoc b/wicket-user-guide/src/docs/guide/componentLifecycle/componentLifecycle_1.gdoc
deleted file mode 100644
index 0dded4c..0000000
--- a/wicket-user-guide/src/docs/guide/componentLifecycle/componentLifecycle_1.gdoc
+++ /dev/null
@@ -1,20 +0,0 @@
-
-
-During its life a Wicket component goes through three basic stages:
-
-# *Initialization:* a component is instantiated by Wicket and prepared for the rendering phase.
-# *Rendering:* in this stage Wicket generates component markup. If a component contains children (i.e. is a subclass of @MarkupContainer@) it must first wait for them to be rendered before starting its own rendering. 
-# *Removing:* this stage is triggered when a component is explicitly removed from its component hierarchy, i.e. when its parent invokes @remove(component)@ on it. This stage is facultative and is never triggered for pages.
-
-The following picture shows the state diagram of component lifecycle:
-
-!component-lifecycle.png!
-
-Once a component has been removed it can be added again to a container, but the initialization stage won't be executed again.
-
-{note}
-If you read the JavaDoc of class @Component@ you will find a more detailed description of component lifecycle.
-However this description introduces some advanced topics we didn't covered yet hence, to avoid confusion, in this chapter some details have been omitted and they will be covered later in the next chapters. 
-
-For now you can consider just the simplified version of the lifecycle described above.
-{note}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/wicket/blob/533c2d36/wicket-user-guide/src/docs/guide/componentLifecycle/componentLifecycle_2.gdoc
----------------------------------------------------------------------
diff --git a/wicket-user-guide/src/docs/guide/componentLifecycle/componentLifecycle_2.gdoc b/wicket-user-guide/src/docs/guide/componentLifecycle/componentLifecycle_2.gdoc
deleted file mode 100644
index fed387c..0000000
--- a/wicket-user-guide/src/docs/guide/componentLifecycle/componentLifecycle_2.gdoc
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-Class @Component@ comes with a number of hook methods that can be overridden in order to customize component behavior during its lifecycle.
-In the following table these methods are grouped according to the stage in which they are invoked (and they are sorted by execution order):
-
-{table}
-*Cycle stage* | *Involved methods*
-Initialization | onInitialize
-Rendering | onConfigure, onBeforeRender, onRender, onComponentTag, onComponentTagBody, onAfterRenderChildren, onAfterRender
-Removing | onRemove
-{table}
-
-Now let's take a closer look at each stage and to at hook methods.
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/wicket/blob/533c2d36/wicket-user-guide/src/docs/guide/componentLifecycle/componentLifecycle_3.gdoc
----------------------------------------------------------------------
diff --git a/wicket-user-guide/src/docs/guide/componentLifecycle/componentLifecycle_3.gdoc b/wicket-user-guide/src/docs/guide/componentLifecycle/componentLifecycle_3.gdoc
deleted file mode 100644
index 61bd996..0000000
--- a/wicket-user-guide/src/docs/guide/componentLifecycle/componentLifecycle_3.gdoc
+++ /dev/null
@@ -1,5 +0,0 @@
-
-
-This stage is performed at the beginning of the component lifecycle. During initialization, the component has already been inserted into its component hierarchy so we can safely access to its parent container or to its page with methods @getParent()@ or @getPage()@. The only method triggered during this stage is @onInitialize()@. This method is a sort of \u201cspecial\u201d constructor where we can execute a custom initialization of our component.   
-
-Since @onInitialize@ is similar to a regular constructor, when we override this method we have to call @super.onInitialize@ inside its body, usually as first instruction.
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/wicket/blob/533c2d36/wicket-user-guide/src/docs/guide/componentLifecycle/componentLifecycle_4.gdoc
----------------------------------------------------------------------
diff --git a/wicket-user-guide/src/docs/guide/componentLifecycle/componentLifecycle_4.gdoc b/wicket-user-guide/src/docs/guide/componentLifecycle/componentLifecycle_4.gdoc
deleted file mode 100644
index b271f05..0000000
--- a/wicket-user-guide/src/docs/guide/componentLifecycle/componentLifecycle_4.gdoc
+++ /dev/null
@@ -1,131 +0,0 @@
-This stage is triggered each time a component is rendered by Wicket, typically when its page is requested or when it is refreshed via AJAX.
-
-h3. Method onConfigure
-
-Method @onConfigure()@ has been introduced in order to provide a good point to manage the component states such as its visibility or enabled state. This method is called before the render phase starts. As stated in [chapter 6.1|guide:keepControl_1], @isVisible@ and @isEnabled@ are called multiple times when a page or a component is rendered, so it's highly recommended not to directly override these method, but rather to use @onConfigure@ to change component states. On the contrary method @onBeforeRender@ (see the next paragraph) is not indicated for this task because it will not be invoked if component visibility is set to false.
-
-h3. Method onBeforeRender
-
-The most important hook method of this stage is probably @onBeforeRender()@. This method is called before a component starts its rendering phase and it is our last chance to change its children hierarchy.
-
-If we want add/remove children components this is the right place to do it. In the next example (project LifeCycleStages) we will create a page which alternately displays two different labels, swapping between them each time it is rendered:
-
-{code}
-public class HomePage extends WebPage
-{
-	private Label firstLabel;
-	private Label secondLabel;
-
-	public HomePage(){
-		firstLabel = new Label("label", "First label");
-		secondLabel = new Label("label", "Second label");
-		
-		add(firstLabel);
-		add(new Link("reload"){
-			@Override
-			public void onClick() {
-			}
-		});
-	}
-	
-	@Override
-	protected void onBeforeRender() {
-		if(contains(firstLabel, true))
-			replace(secondLabel);
-		else
-			replace(firstLabel);
-		
-		super.onBeforeRender();
-	}
-}
-{code}
-
-The code inside @onBeforeRender()@ is quite trivial as it just checks which label among @firstLabel@ and @secondLabel@ is currently inserted into the component hierarchy and it replaces the inserted label with the other one.
-
-This method is also responsible for invoking children @onBeforeRender()@ so if we decide to override it we have to call @super.onBeforeRender()@. However, unlike @onInitialize()@, the call to superclass method should be placed at the end of method's body in order to affect children's rendering with our custom code.
-
-Please note that in the example above we can trigger the rendering stage pressing F5 key or clicking on link \u201creload\u201d.
-
-{warning}
-If we forget to call superclass version of methods @onInitialize()@ or @onBeforeRender()@, Wicket will throw an @IllegalStateException@ with the following message:
-
-@java.lang.IllegalStateException: @org.apache.wicket.Component@ has not been properly initialized. Something in the hierarchy of <page class name> has not called super.onInitialize()/onBeforeRender() in the override of onInitialize()/ onBeforeRender() method@
-
-{warning}
-
-h3. Method onComponentTag
-
-Method @onComponentTag(ComponentTag)@ is called to process component tag, which can be freely manipulated through its argument of type @org.apache.wicket.markup.ComponentTag@. For example we can add/remove tag attributes with methods @put(String key, String value)@ and @remove(String key)@, or we can even decide to change the tag or rename it with method @setName(String)@ (the following code is taken from project OnComponentTagExample):
-
-*Markup code:*
-
-{code:html}
-<head>
-  <meta charset="utf-8" />
-  <title></title>
-</head>
-<body>		
-  <h1 wicket:id="helloMessage"></h1>		
-</body>
-{code}
-
-*Java code:*
-
-{code}
-public class HomePage extends WebPage {
-   public HomePage() {
-      add(new Label("helloMessage", "Hello World"){
-         @Override
-         protected void onComponentTag(ComponentTag tag) {            
-            super.onComponentTag(tag);
-            //Turn the h1 tag to a span
-            tag.setName("span");
-            //Add formatting style
-            tag.put("style", "font-weight:bold");
-         }
-      });
-    }
-}
-{code}
-
-*Generated markup:*
-
-{code:html}
-<head>
-  <meta charset="utf-8" />
-  <title></title>
-</head>
-<body>		
-  <span wicket:id="helloMessage" style="font-weight:bold">Hello World</span>		
-</body>
-{code}
-
-Just like we do with @onInitialize@, if we decide to override @onComponentTag@ we must remember to call the same method of the super class because also this class may also customize the tag. Overriding @onComponentTag@ is perfectly fine if we have to customize the tag of a specific component, but if we wanted to reuse the code across different components we should consider to use a behavior in place of this hook method.
-
-We have already seen in [chapter 6.2|guide:keepControl_2] how to use behavior @AttributeModifier@ to manipulate the tag's attribute. In [chapter 19.1|guide:advanced_1] we will see that base class @Behavior@ offers also a callback method named @onComponentTag(ComponentTag, Component)@ that can be used in place of the hook method @onComponentTag(ComponentTag)@.
-
-h3. Methods onComponentTagBody
-
-Method @onComponentTagBody(MarkupStream, ComponentTag)@ is called to process the component tag's body. Just like @onComponentTag@ it takes as input a @ComponentTag@ parameter representing the component tag. In addition, we also find a @MarkupStream@ parameter which represents the page markup stream that will be sent back to the client as response. 
-
-@onComponentTagBody@ can be used in combination with the @Component@'s method @replaceComponentTagBody@ to render a custom body under specific conditions. For example (taken from project OnComponentTagExample) we can display a brief description instead of the body if the label component is disabled:
-
-{code}
-public class HomePage extends WebPage {
-   public HomePage() {
-
-      add(new Label("helloMessage", "Hello World"){
-         @Override
-         protected void onComponentTagBody(MarkupStream markupStream, ComponentTag tag) {            
-            
-           if(!isEnabled())
-               replaceComponentTagBody(markupStream, tag, "(the component is disabled)"); 
-          else    
-               super.onComponentTagBody(markupStream, tag);
-         }
-      });   
-    }
-}
-{code}
-
-Note that the original version of @onComponentTagBody@ is invoked only when we want to preserve the standard rendering mechanism for the tag's body (in our example this happens when the component is enabled).
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/wicket/blob/533c2d36/wicket-user-guide/src/docs/guide/componentLifecycle/componentLifecycle_5.gdoc
----------------------------------------------------------------------
diff --git a/wicket-user-guide/src/docs/guide/componentLifecycle/componentLifecycle_5.gdoc b/wicket-user-guide/src/docs/guide/componentLifecycle/componentLifecycle_5.gdoc
deleted file mode 100644
index 2063663..0000000
--- a/wicket-user-guide/src/docs/guide/componentLifecycle/componentLifecycle_5.gdoc
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
-This stage is triggered when a component is removed from its container hierarchy. The only hook method for this phase is @onRemove()@. If our component still holds some resources needed during rendering phase, we can override this method to release them.
-
-Once a component has been removed we are free to add it again to the same container or to a different one. Starting from version 6.18.0 Wicket added a further hook method called @onReAdd()@ which is triggered every time a previously removed component is re-added to a cointainer.
-Please note that while @onInitialize@ is called only the very first time a component is added, @onReAdd@ is called every time it is re-added after having been removed.

http://git-wip-us.apache.org/repos/asf/wicket/blob/533c2d36/wicket-user-guide/src/docs/guide/componentLifecycle/componentLifecycle_6.gdoc
----------------------------------------------------------------------
diff --git a/wicket-user-guide/src/docs/guide/componentLifecycle/componentLifecycle_6.gdoc b/wicket-user-guide/src/docs/guide/componentLifecycle/componentLifecycle_6.gdoc
deleted file mode 100644
index 0265551..0000000
--- a/wicket-user-guide/src/docs/guide/componentLifecycle/componentLifecycle_6.gdoc
+++ /dev/null
@@ -1,3 +0,0 @@
-
-
-In this chapter we have seen which stages compose the lifecycle of Wicket components and which hook methods they provide. Overriding these methods we can dynamically modify the component hierarchy and we can enrich the behavior of our custom components.

http://git-wip-us.apache.org/repos/asf/wicket/blob/533c2d36/wicket-user-guide/src/docs/guide/componentQueueing.gdoc
----------------------------------------------------------------------
diff --git a/wicket-user-guide/src/docs/guide/componentQueueing.gdoc b/wicket-user-guide/src/docs/guide/componentQueueing.gdoc
deleted file mode 100644
index 7f3669b..0000000
--- a/wicket-user-guide/src/docs/guide/componentQueueing.gdoc
+++ /dev/null
@@ -1,2 +0,0 @@
-So far to build component hierarchy we have explicitly added each component and container in accordance with the corresponding markup. This necessary step can involve repetitive and boring code which must be change every time we decide to change markup hierarchy. 
-Component queueing is a new feature in Wicket 7 that solves this problem allowing Wicket to build component hierarchy in Java automatically making your code simpler and more maintainable. This chapter should serve as a short introduction to what Component Queueing is and what problems it is trying to solve.

http://git-wip-us.apache.org/repos/asf/wicket/blob/533c2d36/wicket-user-guide/src/docs/guide/componentQueueing/componentQueueing_1.gdoc
----------------------------------------------------------------------
diff --git a/wicket-user-guide/src/docs/guide/componentQueueing/componentQueueing_1.gdoc b/wicket-user-guide/src/docs/guide/componentQueueing/componentQueueing_1.gdoc
deleted file mode 100644
index 62e3a8f..0000000
--- a/wicket-user-guide/src/docs/guide/componentQueueing/componentQueueing_1.gdoc
+++ /dev/null
@@ -1,159 +0,0 @@
-With Wicket as developers we use to define the hierarchy of components in the markup templates:
-
-{code:html}
-<form wicket:id='customer'>
-    <input wicket:id='first' type='text'/>
-    <input wicket:id='last' type='text'/>
-    <div wicket:id="child">
-        <input wicket:id='first' type='text'/>
-        <input wicket:id='last' type='text'/>
-        <input wicket:id='dob' type='date'/>
-    </div>
-</form>
-{code}
-
-and then we repeat the same hierarchy in Java code:
-
-{code}
-Form form=new Form("customer");
-add(form);
- 
-form.add(new TextField("first"));
-form.add(new TextField("last"));
- 
-WebMarkupContainer child=new WebMarkupContainer("child");
-form.add(child);
- 
-child.add(new TextField("first"));
-child.add(new TextField("last"));
-child.add(new TextField("dob"));
-{code}
-
-The need for the hierarchy in the markup is obvious, it is simply how the markup works. On the Java side of things it may not be immediately apparent. After all, why can we not write the code like this?
-
-{code}
-add(new Form("customer"));
-add(new TextField("first"));
-add(new TextField("last"));
-WebMarkupContainer child=new WebMarkupContainer("child");
-add(child);
-add(new TextField("first"));
-add(new TextField("last"));
-add(new TextField("dob"));
-{code}
-
-There are a couple of reasons:
-
-* Ambiguities that happen with duplicate ids
-* Inheriting state from parent to child
-
-We will examine these below.
-
-h3. Markup Id Ambiguities
-
-In the example above we have a form that collects the name of a customer along with the name of their child and the child\u2019s date of birth. We mapped the name of the customer and child to form components with wicket ids @first@ and @last@. If we were to add all the components to the same parent we would get an error because we cannot have two components with the same wicket id under the same parent (two components with id @first@ and two with id @last@). 
-Without hierarchy in Java we would have to make sure that all wicket ids in a markup file are unique, no small feat in a non-trivial page or panel. But, with hierarchy on the Java side we just have to make sure that no parent has two children with the same id, which is trivial.
-
-h3. Inheriting State From Parents
-
-Suppose we wanted to hide form fields related to the child in the example above when certain conditions are met. Without hierarchy we would have to modify the @first@, @last@, and @dob@ fields to implement the visibility check. Worse, whenever we would add a new child related field we would have to remember to implement the same check; this is a maintenance headache. With hierarchy this is easy, simply hide the parent container and all children will be hidden as well \u2014 the code lives in one place and is automatically inherited by all descendant components. Thus, hierarchy on the Java side allows us to write succinct and maintainable code by making use of the parent-child relationship of components.
-
-h3. Pain Points of the Java-Side Hierarchy
-
-While undeniably useful, the Java-side hierarchy can be a pain to maintain. It is very common to get requests to change things because the designer needs to wrap some components in a @div@ with a dynamic style or class attribute. Essentially we want to go from:
-
-{code:html}
-<form wicket:id='customer'>
-    <input wicket:id='first' type='text'/>
-    <input wicket:id='last' type='text'/>
-{code}
-
-To:
-
-{code}
-<form wicket:id='customer'>
-    <div wicket:id='container'>
-        <input wicket:id='first' type='text'/>
-        <input wicket:id='last' type='text'/>
-    </div>
-{code}
-
-Seems simple enough, but to do so we need to create the new container, find the code that adds all the components that have to be relocated and change it to add to the new container instead. This code:
-
-{code}
-Form form=new Form("customer");
-add(form);
- 
-form.add(new TextField("first"));
-form.add(new TextField("last"));
-{code}
-
-Will become:
-
-{code}
-Form form=new Form("customer");
-add(form);
- 
-WebMarkupContainer container=new WebMarkupContainer("container");
-form.add(container);
- 
-container.add(new TextField("first"));
-container.add(new TextField("last"));
-{code}
-
-Another common change is to tweak the nesting of markup tags. This is something a designer should be able to do on their own if the change is purely visual, but cannot if it means Wicket components will change parents.
-
-In large pages with a lot of components these kinds of simple changes tend to cause a lot of annoyance for the developers.
-
-h3. Component Queueing To The Rescue
-
-The idea behind component queueing is simple: instead of adding components to their parents directly, the developer can queue them in any ancestor and have Wicket automatically \u2018dequeue\u2019 them to the correct parent using the hierarchy defined in the markup. This will give us the best of both worlds: the developer only has to define the hierarchy once in markup, and have it automatically constructed in Java land.
-
-That means we can go from code like this:
-
-{code}
-Form form=new Form("customer");
-add(form);
- 
-form.add(new TextField("first"));
-form.add(new TextField("last"));
- 
-WebMarkupContainer child=new WebMarkupContainer("child");
-form.add(child);
- 
-child.add(new TextField("first"));
-child.add(new TextField("last"));
-child.add(new TextField("dob"));
-{code}
-
-To code like this:
-
-{code}
-queue(new Form("customer"));
-queue(new TextField("first"));
-queue(new TextField("last"));
- 
-WebMarkupContainer child=new WebMarkupContainer("child");
-queue(child);
-child.queue(new TextField("first"));
-child.queue(new TextField("last"));
-child.queue(new TextField("dob"));
-{code}
-
-{note}
-Note that we had to queue child\u2019s @first@ and @last@ name fields to the @child@ container in order to disambiguate their wicket ids.
-{note}
-
-
-The code above does not look shorter or that much different, so where is the advantage?
-
-Suppose our designer wants us to wrap the customer\u2019s first and last name fields with a @div@ that changes its styling based on some condition. We saw how to do that above, we had to create a container and then reparent the two @TextField@ components into it. Using queueing we can skip the second step, all we have to do is add the following line:
-
-{code}
-queue(new WebMarkupContainer("container"));
-{code}
-
-When dequeueing Wicket will automatically reparent the first and last name fields into the container for us.
-
-If the designer later wanted to move the first name field out of the @div@ we just added for them they could do it all by themselves without requiring any changes in the Java code. Wicket would dequeue the first name field into the form and the last name field into the container div.
-

http://git-wip-us.apache.org/repos/asf/wicket/blob/533c2d36/wicket-user-guide/src/docs/guide/componentQueueing/componentQueueing_2.gdoc
----------------------------------------------------------------------
diff --git a/wicket-user-guide/src/docs/guide/componentQueueing/componentQueueing_2.gdoc b/wicket-user-guide/src/docs/guide/componentQueueing/componentQueueing_2.gdoc
deleted file mode 100644
index 6f0f91d..0000000
--- a/wicket-user-guide/src/docs/guide/componentQueueing/componentQueueing_2.gdoc
+++ /dev/null
@@ -1,23 +0,0 @@
-Auto components, such as Enclosure, are a very useful feature of Wicket, but they have always been a pain to implement and use.
-
-Suppose we have:
-
-{code:xml}
-<wicket:enclosure childId="first">
-    <input wicket:id="first" type="text"/>
-    <input wicket:id="last" type="text"/>
-</wicket:enclosure>
-{code}
-
-Together with:
-
-{code}
-add(new TextField("first").setRequired(true).setVisible(false));
-add(new TextField("last").setRequired(true));
-{code}
-
-When developing auto components the biggest pain point is in figuring out who the children of the auto component are. In the markup above the enclosure is a parent of the text fields, but in Java it would be a sibling because auto components do not modify the java-side hierarchy. So when the Enclosure is looking for its children it has to parse the markup to figure out what they are. This is not a trivial task.
-
-Because auto components do not insert themselves properly into the Java hierarchy they are also hard for users to use. For example, the documentation of Enclosure does not recommend it to be used to wrap form components like we have above. When the page renders the enclosure will be hidden because @first@ component is not visible. However, when we submit the form, @last@ component will raise a required error. This is because @last@ is not made a child of the hidden enclosure and therefore does not know its hidden \u2014 so it will try to process its input and raise the error.
-
-Had we used @queue@ instead of @add@ in the code above, everything would work as expected. As part of Queueing implementation Wicket will properly insert auto components into the Java hierarchy. Furthermore, auto components will remain in the hierarchy instead of being added before render and removed afterwords. This is a big improvement because developers will no longer have to parse markup to find the children components \u2014 since children will be added to the enclosure by the dequeueing. Likewise, user restrictions are removed as well; the code above would work as expected.

http://git-wip-us.apache.org/repos/asf/wicket/blob/533c2d36/wicket-user-guide/src/docs/guide/componentQueueing/componentQueueing_3.gdoc
----------------------------------------------------------------------
diff --git a/wicket-user-guide/src/docs/guide/componentQueueing/componentQueueing_3.gdoc b/wicket-user-guide/src/docs/guide/componentQueueing/componentQueueing_3.gdoc
deleted file mode 100644
index d88c237..0000000
--- a/wicket-user-guide/src/docs/guide/componentQueueing/componentQueueing_3.gdoc
+++ /dev/null
@@ -1,5 +0,0 @@
-Once you call @queue()@, when are the components dequeued into the page hierarchy? When is it safe to call @getParent()@ or use methods such as @isVisibleInHierarchy()@ which rely on component\u2019s position in hierarchy?
-
-The components are dequeued as soon as a path is available from @Page@ to the component they are queued into. The dequeue operation needs access to markup which is only available once the Page is known (because the @Page@ object controls the extension of the markup).
-
-If the @Page@ is known at the time of the @queue()@ call (eg if its called inside @onInitialize()@) the components are dequeued before @queue()@ returns.

http://git-wip-us.apache.org/repos/asf/wicket/blob/533c2d36/wicket-user-guide/src/docs/guide/componentQueueing/componentQueueing_4.gdoc
----------------------------------------------------------------------
diff --git a/wicket-user-guide/src/docs/guide/componentQueueing/componentQueueing_4.gdoc b/wicket-user-guide/src/docs/guide/componentQueueing/componentQueueing_4.gdoc
deleted file mode 100644
index 6a60d41..0000000
--- a/wicket-user-guide/src/docs/guide/componentQueueing/componentQueueing_4.gdoc
+++ /dev/null
@@ -1,31 +0,0 @@
-h3. Ancestors
-
-Suppose on a user profile panel we have the following code:
-
-{code}
-queue(new Label("first"));
-queue(new Label("last"));
- 
-WebMarkupContainer secure=new WebMarkupContainer("secure") {
-    void onConfigure() {
-       super.onConfigure();
-       setVisible(isViewingOwnProfile());
-    }
-};
- 
-queue(secure);
-secure.queue(new Label("creditCardNumber"));
-secure.queue(new Label("creditCardExpiry"));
-{code}
-
-What is to prevent someone with access to markup from moving the @creditCardNumber@ label out of the @secure@ div, causing a big security problem for the site?
-
-Wicket will only dequeue components either to the component they are queued to or any of its descendants.
-
-In the code above this is the reason why we queued the @creditCardNumber@ label into the @secure@ container. That means it can only be dequeued into the @secure@ container\u2019s hierarchy.
-
-This restriction allows developers to enforce certain parent-child relationships in their code.
-
-h3. Regions
-
-Dequeuing of components will not happen across components that implement the @org.apache.wicket.IQueueRegion@ interface. This interface is implemented by all components that provide their own markup such as: @Page@, @Panel@, @Border@, @Fragment@. This is done so that if both a page and panel contain a component with id @foo@ the one queued into the page will not be dequeued into the panel. This minimizes confusion and debugging time. The rule so far is that if a component provides its own markup only components queued inside it will be dequeued into it.

http://git-wip-us.apache.org/repos/asf/wicket/blob/533c2d36/wicket-user-guide/src/docs/guide/componentQueueing/componentQueueing_5.gdoc
----------------------------------------------------------------------
diff --git a/wicket-user-guide/src/docs/guide/componentQueueing/componentQueueing_5.gdoc b/wicket-user-guide/src/docs/guide/componentQueueing/componentQueueing_5.gdoc
deleted file mode 100644
index ba8f0fd..0000000
--- a/wicket-user-guide/src/docs/guide/componentQueueing/componentQueueing_5.gdoc
+++ /dev/null
@@ -1 +0,0 @@
-Component queueing is a new and improved way of creating the component hierarchy in Wicket 7. By having to define the hierarchy only once in markup we can make the Java-side code simpler and more maintainable.

http://git-wip-us.apache.org/repos/asf/wicket/blob/533c2d36/wicket-user-guide/src/docs/guide/contributing.gdoc
----------------------------------------------------------------------
diff --git a/wicket-user-guide/src/docs/guide/contributing.gdoc b/wicket-user-guide/src/docs/guide/contributing.gdoc
deleted file mode 100644
index 24391d2..0000000
--- a/wicket-user-guide/src/docs/guide/contributing.gdoc
+++ /dev/null
@@ -1,23 +0,0 @@
-You can contribute to this guide by following these steps:
-
-* The guide uses Grails GDoc to generate the final HTML/PDF so you should consult with its [syntax|http://grails.org/WikiSyntax].
-
-* Clone Apache Wicket's GIT repository [site|https://github.com/apache/wicket.git] 
-{code}
-git clone https://github.com/apache/wicket.git
-{code}
-
-* Edit the _.gdoc_ files in _wicket/wicket-user-guide/src/docs/guide_ folder 
-
-* To preview your changes run "mvn clean package -P guide" in the _wicket/wicket-user-guide_ folder (in eclipse use a run configuration)
-
-* Navigate to _wicket/wicket-user-guide/target/guide/8.x_ and open one of the following files a browser / pdf viewer:
-** _index.html_ (multi page version)
-** _guide/single.html_ (single page version)
-** _guide/single.pdf_ (single page pdf version)
-
-* Create a ticket in Apache Wicket's [JIRA|https://issues.apache.org/jira/browse/WICKET]
-
-* *Commit and push the changes* to your forked Apacke Wicket's GIT repository and *create a pull request* on github
-
-*Thank you!*

http://git-wip-us.apache.org/repos/asf/wicket/blob/533c2d36/wicket-user-guide/src/docs/guide/forms2.gdoc
----------------------------------------------------------------------
diff --git a/wicket-user-guide/src/docs/guide/forms2.gdoc b/wicket-user-guide/src/docs/guide/forms2.gdoc
deleted file mode 100644
index 098174d..0000000
--- a/wicket-user-guide/src/docs/guide/forms2.gdoc
+++ /dev/null
@@ -1,5 +0,0 @@
-In the previous chapter we have only scratched the surface of Wicket forms. The Form component was not only designed to collect user input but also to extend the semantic of the classic HTML forms with new features. 
-
-One of such features is the ability to work with nested forms (they will be discussed in [paragraph 12.6|guide:forms2_6]).
-
-In this chapter we will continue to explore Wicket forms learning how to master them and how to build effective and user-proof forms for our web applications.

http://git-wip-us.apache.org/repos/asf/wicket/blob/533c2d36/wicket-user-guide/src/docs/guide/forms2/forms2_1.gdoc
----------------------------------------------------------------------
diff --git a/wicket-user-guide/src/docs/guide/forms2/forms2_1.gdoc b/wicket-user-guide/src/docs/guide/forms2/forms2_1.gdoc
deleted file mode 100644
index 48776c5..0000000
--- a/wicket-user-guide/src/docs/guide/forms2/forms2_1.gdoc
+++ /dev/null
@@ -1,15 +0,0 @@
-
-
-In [paragraph 11.3|guide:modelsforms_3] we have seen a very basic usage of the Form component and we didn't pay much attention to what happens behind the scenes of form submission. In Wicket when we submit a form we trigger the following steps on server side:
-
-# Form validation: user input is checked to see if it satisfies the validation rules set on the form. If validation fails, step number 2 is skipped and the form should display a feedback message to explain to user what went wrong. During this step input values (which are simple strings sent with a web request) are converted into Java objects. In the next paragraphs we will explore the infrastructures provided by Wicket for the three sub-tasks involved with form validation, which are: conversion of user input into objects, validation of user input, and visualization of feedback messages.
-# Updating of models: if validation succeeds, the form updates the model of its children components with the converted values obtained in the previous step.
-# Invoking callback methods onSubmit() or onError(): if we didn't have any validation error, method onSubmit() is called, otherwise onError() will be called. The default implementation of both these methods is left empty and we can override them to perform custom actions.  
-
-{note}
-Please note that the model of form components is updated only if no validation error occurred (i.e. step two is performed only if validation succeeds). 
-{note}
-
-Without going into too much detail, we can say that the first two steps of form processing correspond to the invocation of one or more Form's internal methods (which are declared protected and final). Some examples of these methods are validate(), which is invoked during validation step, and updateFormComponentModels(), which is used at the step that updates the form field models.
-
-The whole form processing is started invoking public method process(IFormSubmitter) (Later in [paragraph 12.5|guide:forms2_5] we will introduce interface IFormSubmitter). 

http://git-wip-us.apache.org/repos/asf/wicket/blob/533c2d36/wicket-user-guide/src/docs/guide/forms2/forms2_10.gdoc
----------------------------------------------------------------------
diff --git a/wicket-user-guide/src/docs/guide/forms2/forms2_10.gdoc b/wicket-user-guide/src/docs/guide/forms2/forms2_10.gdoc
deleted file mode 100644
index 53d18e1..0000000
--- a/wicket-user-guide/src/docs/guide/forms2/forms2_10.gdoc
+++ /dev/null
@@ -1,78 +0,0 @@
-
-
-In [chapter 8|guide:versioningCaching] we have seen how Wicket pages can be divided into two categories: stateful and stateless. Pages that are stateless don't need to be stored in the user session and they should be used  when we don't need to save any user data in the user session (for example in the public area of a site).
-
-Besides saving resources on server-side, stateless pages can be adopted to improve user experience and to avoid security weaknesses. A typical situation where a stateless page can bring these benefits is when we have to implement a login page. 
-
-For this kind of page we might encounter two potential problems if we chose to use a stateful page. The first problem occurs when the user tries to login without a valid session assigned to him. This could happen if the user leaves the login page opened for a period of time bigger than the session's timeout and then he decides to log in. Under these conditions the user will be redirected to a 'Page expired' error page, which is not exactly a nice thing for user experience.
-
-The second problem occurs when a malicious user or a web crawler program attempts to login into our web application, generating a huge number of page versions and consequently increasing the size of the user session.
-
-To avoid these kinds of problems we should build a stateless login page which does not depend on a user session. Wicket provides a special version of the Form component called StatelessForm which is stateless by default (i.e its method getStatelessHint() returns true), hence it's an ideal solution when we want to build a stateless page with a form. A possible implementation of our login form is the following (example project StatelessLoginForm):
-
-*HTML:*
-
-{code:html}
-<html>
-   <head>
-      <meta charset="utf-8" />
-   </head>
-   <body>
-      <div>Session is <b wicket:id="sessionType"></b></div>
-      <br/>
-      <div>Type 'user' as correct credentials</div>
-      <form wicket:id="form">
-         <fieldset>
-            Username: <input type="text" wicket:id="username"/> <br/>
-            Password: <input type="password" wicket:id="password"/><br/>
-            <input type="submit"/>
-         </fieldset>
-      </form>
-      <br/>
-      <div wicket:id="feedbackPanel"></div>
-   </body>
-</html>
-{code}
-
-*Java code:*
-
-{code}
-public class HomePage extends WebPage {
-    private Label sessionType;
-    private String password;
-    private String username;
-    
-    public HomePage(final PageParameters parameters) {
-       StatelessForm form = new StatelessForm("form"){
-         @Override
-         protected void onSubmit() {
-            //sign in if username and password are \u201cuser\u201d
-            if("user".equals(username) && username.equals(password))
-               info("Username and password are correct!");
-            else
-               error("Wrong username or password");
-         }
-      };
-      
-      form.add(new PasswordTextField("password"));
-      form.add(new TextField("username"));      
-      
-      add(form.setDefaultModel(new CompoundPropertyModel(this)));
-      
-      add(sessionType = new Label("sessionType", Model.of("")));
-      add(new FeedbackPanel("feedbackPanel"));
-    }
-    
-    @Override
-    protected void onBeforeRender() {
-       super.onBeforeRender();
-       
-       if(getSession().isTemporary())
-          sessionType.setDefaultModelObject("temporary");
-       else
-          sessionType.setDefaultModelObject("permanent");
-    }
-}
-{code}
-
-Label sessionType shows if current session is temporary or not and is set inside onBeforeRender(): if our page is really stateless the session will be always temporary. We have also inserted a feedback panel in the home page that shows if the credentials are correct. This was done to make the example form more interactive.

http://git-wip-us.apache.org/repos/asf/wicket/blob/533c2d36/wicket-user-guide/src/docs/guide/forms2/forms2_11.gdoc
----------------------------------------------------------------------
diff --git a/wicket-user-guide/src/docs/guide/forms2/forms2_11.gdoc b/wicket-user-guide/src/docs/guide/forms2/forms2_11.gdoc
deleted file mode 100644
index e591240..0000000
--- a/wicket-user-guide/src/docs/guide/forms2/forms2_11.gdoc
+++ /dev/null
@@ -1,187 +0,0 @@
-
-
-In this paragraph we will see which components can be used to handle HTML radio buttons and checkboxes. Both these input elements are usually grouped together to display a list of possible choices:
-
-!choice-form-screenshot.png!
-
-A check box can be used as single component to set a boolean property. For this purpose Wicket provides the @org.apache.wicket.markup.html.form.CheckBox@ component which must be attached to <input type="checkbox".../> tag. In the next example (project SingleCheckBox) we will consider a form similar to the one used in [paragraph 11.5|guide:modelsforms_5] to edit a Person object, but with an additional checkbox to let the user decide if she wants to subscribe to our mailing list or not. The form uses the following bean as backing object:
-
-{code}
-public class RegistrationInfo implements Serializable {
-	
-	private String name;
-	private String surname;
-	private String address;
-	private String email;
-	private boolean subscribeList;
-	
-	/*Getters and setters*/
-}
-{code}
-
-The markup and the code for this example are the following:
-
-*HTML:*
-
-{code:html}
-<form wicket:id="form">		
-		<div style="display: table;">
-			<div style="display: table-row;">
-				<div style="display: table-cell;">Name: </div>
-				<div style="display: table-cell;">
-					<input type="text" wicket:id="name"/> 
-				</div>	
-			</div>
-			<div style="display: table-row;">
-				<div style="display: table-cell;">Surname: </div>
-				<div style="display: table-cell;">
-					<input type="text" wicket:id="surname"/>
-				</div>	
-			</div>
-			<div style="display: table-row;">
-				<div style="display: table-cell;">Address: </div>
-				<div style="display: table-cell;">
-					<input type="text" wicket:id="address"/>
-				</div>	
-			</div>
-			<div style="display: table-row;">
-				<div style="display: table-cell;">Email: </div>
-				<div style="display: table-cell;">
-					<input type="text" wicket:id="email"/>
-				</div>
-			</div>
-			<div style="display: table-row;">
-				<div style="display: table-cell;">Subscribe list:</div>
-				<div style="display: table-cell;">
-					<input type="checkbox" wicket:id="subscribeList"/>
-				</div>
-			</div>
-		</div>	
-	<input type="submit" value="Save"/>
-</form>
-{code}
-
-*Java code:*
-
-{code}
-public HomePage(final PageParameters parameters) {
-    	RegistrationInfo registrtionInfo = new RegistrationInfo();
-    	registrtionInfo.setSubscribeList(true);
-    	
-    	Form form = new Form("form", 
-    			new CompoundPropertyModel<RegistrationInfo>(registrtionInfo));		
-		
-    	form.add(new TextField("name"));
-	form.add(new TextField("surname"));
-	form.add(new TextField("address"));
-	form.add(new TextField("email"));
-	form.add(new CheckBox("subscribeList"));
-		
-	add(form);
-}
-{code}
-
-Please note that the checkbox will be initially selected because we have set to true the subscribe flag during the model object creation (with instruction registrtionInfo.setSubscribeList(true)):
-
-!subscribe-checkbox-set.png!
-
-h3. Working with grouped checkboxes
-
-When we need to display a given number of options with checkboxes, we can use the @org.apache.wicket.markup.html.form.CheckBoxMultipleChoice@ component. For example, If our options are a list of strings, we can display them in this way:
-
-*HTML:*
-
-{code:html}
-<div wicket:id="checkGroup">
-		<input type="checkbox"/>It will be replaced by the actual checkboxes...
-</div>
-{code}
-
-*Java code:*
-
-{code}
-List<String> fruits = Arrays.asList("apple", "strawberry", "watermelon"); 
-form.add(new CheckBoxMultipleChoice("checkGroup", new ListModel<String>(new  
-								 ArrayList<String>()), fruits));
-{code}
-
-*Screenshot:*
-
-!grouped-checkbox.png!
-
-This component can be attached to a <div> tag or to a <span> tag. No specific content is required for this tag as it will be populated with the actual checkboxes. Since this component allows multiple selection, its model object is a list. In the example above we have used model class @org.apache.wicket.model.util.ListModel@ which is specifically designed to wrap a List object.
-
-By default CheckBoxMultipleChoice inserts a <br/> tag as suffix after each option. We can configure both the suffix and the prefix used by the component with the setPrefix and setSuffix methods.
-
-When our options are more complex objects than simple strings, we can render them using an IChoiceRender, as we did for DropDownChoice in [paragraph 11.5|guide:modelsforms_5]:
-
-*HTML:*
-
-{code:html}
-<div wicket:id="checkGroup">
-		<input type="checkbox"/>It will be replaced by actual checkboxes...
-</div>
-{code}
-
-*Java code:*
-
-{code}
-Person john = new Person("John", "Smith");
-Person bob = new Person("Bob", "Smith");
-Person jill = new Person("Jill", "Smith");
-List<Person> theSmiths = Arrays.asList(john, bob, jill); 
-ChoiceRenderer render = new ChoiceRenderer("name");
-form.add(new CheckBoxMultipleChoice("checkGroup", new ListModel<String>(new ArrayList<String>()),   
-                                    theSmiths, render));
-{code}
-
-*Screenshot:*
-
-!grouped-checkbox2.png!
-
-h3. How to implement a "Select all" checkbox
-
-A nice feature we can offer to users when we have a group of checkboxes is a \u201cspecial\u201d checkbox which selects/unselects all the other options of the group:
-
-!select-all-checkbox.png!
-
-Wicket comes with a couple of utility components that make it easy to implement such a feature. They are CheckboxMultipleChoiceSelector and CheckBoxSelector classes, both inside package @org.apache.wicket.markup.html.form@. The difference between these two components is that the first works with an instance of CheckBoxMultipleChoice while the second takes in input a list of CheckBox objects:
-
-{code}
-/* CheckboxMultipleChoiceSelector usage: */
-
-CheckBoxMultipleChoice checkGroup;
-//checkGroup initialization...
-CheckboxMultipleChoiceSelector cbmcs = new CheckboxMultipleChoiceSelector("id", checkGroup);
-
-/* CheckBoxSelector usage: */
-
-CheckBox checkBox1, checkBox2, checkBox3;
-//checks initialization...
-CheckBoxSelector cbmcs = new CheckBoxSelector("id", checkBox1, checkBox2, checkBox3);
-{code}
-
-h3. Working with grouped radio buttons
-
-For groups of radio buttons we can use the @org.apache.wicket.markup.html.form.RadioChoice@ component which works in much the same way as CheckBoxMultipleChoice:
-
-*HTML:*
-
-{code:html}
-<div wicket:id="radioGroup">
-	<input type="radio"/>It will be replaced by actual radio buttons...
-</div>
-{code}
-
-*Java code:*
-
-{code}
-List<String> fruits = Arrays.asList("apple", "strawberry", "watermelon"); 
-form.add(new RadioChoice("radioGroup", Model.of(""), fruits));
-{code}
-
-*Screenshot:*
-
-!grouped-radiobutton.png!
-
-Just like CheckBoxMultipleChoice, this component provides the setPrefix and setSuffix methods to configure the prefix and suffix for our options and it supports IChoiceRender as well. In addition, RadioChoice provides the wantOnSelectionChangedNotifications() method to notify the web server when the selected option changes (this is the same method seen for DropDownChoice in paragraph 9.4).

http://git-wip-us.apache.org/repos/asf/wicket/blob/533c2d36/wicket-user-guide/src/docs/guide/forms2/forms2_12.gdoc
----------------------------------------------------------------------
diff --git a/wicket-user-guide/src/docs/guide/forms2/forms2_12.gdoc b/wicket-user-guide/src/docs/guide/forms2/forms2_12.gdoc
deleted file mode 100644
index 058b8b9..0000000
--- a/wicket-user-guide/src/docs/guide/forms2/forms2_12.gdoc
+++ /dev/null
@@ -1,106 +0,0 @@
-
-
-Checkboxes work well when we have a small amount of options to display, but they quickly become chaotic as the number of options increases. To overcome this limit we can use the <select> tag switching it to multiple-choice mode with attribute multiple="multiple":
-
-!list-multiple-choices.png!
-
-Now the user can select multiple options by holding down Ctrl key (or Command key for Mac) and selecting them. 
-
-To work with multiple choice list Wicket provides the @org.apache.wicket.markup.html.form.ListMultipleChoice@ component:
-
-*HTML:*
-
-{code:html}
-<select wicket:id="fruits">
-	<option>choice 1</option>
-	<option>choice 2</option>
-</select>
-{code}
-
-*Java code:*
-
-{code}
-List<String> fruits = Arrays.asList("apple", "strawberry", "watermelon"); 
-form.add(new ListMultipleChoice("fruits", new ListModel<String>(new ArrayList<String>()), fruits));
-{code}
-
-*Screenshot:*
-
-!list-multiple-choices2.png!
-
-This component must be bound to a <select> tag but the attribute multiple="multiple" is not required as it will automatically be added by the component. 
-
-The number of visible rows can be set with the setMaxRows(int maxRows) method.
-
-h3. Component Palette
-
-While multiple choice list solves the problem of handling a big number of multiple choices, it is not much intuitive for end users. That's why desktop GUIs have introduced a more complex component which can be generally referred to as multi select transfer component (it doesn't have an actual official name): 
-
-!multi-select-transfer-component.png!
-
-This kind of component is composed by two multiple-choice lists, one on the left displaying the available options and the other one on the right displaying the selected options. User can move options from a list to another by double clicking on them or using the buttons placed between the two list.
-
-Built-in @org.apache.wicket.extensions.markup.html.form.palette.Palette@ component provides an out-of-the-box implementation of a multi select transfer component. It works in a similar way to ListMultipleChoice:
-
-*HTML:*
-
-{code:html}
-<div wicket:id="palette">
-   Select will be replaced by the actual content...
-	   <select multiple="multiple">
-     <option>option1</option>
-     <option>option2</option>
-     <option>option3</option>
-</div>
-{code}
-
-*Java code:*
-
-{code}
-Person john = new Person("John", "Smith");
-Person bob = new Person("Bob", "Smith");
-Person jill = new Person("Jill", "Smith");
-Person andrea = new Person("Andrea", "Smith");
-
-List<Person> theSmiths = Arrays.asList(john, bob, jill, andrea); 
-ChoiceRenderer render = new ChoiceRenderer("name"); 
-
-form.add(new Palette("palette", Model.of(new ArrayList<String>()), new ListModel<String> (theSmiths), render, 5, true));
-{code}
-
-*Screenshot:*
-
-!multi-select-transfer-component-wicket.png!
-
-The last two parameters of the Palette's constructor (an integer value and a boolean value) are, respectively, the number of visible rows for the two lists and a flag to choose if we want to display the two optional buttons which move selected options up and down. The descriptions of the two lists (\u201cAvailable\u201d and \u201cSelected\u201d) can be customized providing two resources with keys palette.available and palette.selected. 
-
-The markup of this component uses a number of CSS classes which can be extended/overriden to customize the style of the component. We can find these classes and see which tags they decorate in the default markup file of the component:
-
-{code:html}
-<table cellspacing="0" cellpadding="2" class="palette">
-<tr>
-	<td class="header headerAvailable"><span wicket:id="availableHeader">[available header]</span></td>
-	<td>&#160;</td>
-	<td class="header headerSelected"><span wicket:id="selectedHeader">[selected header]</span>                                           
-        </td> 
-</tr>
-<tr>
-	<td class="pane choices">
-		<select wicket:id="choices" class="choicesSelect">[choices]</select>	
-	</td>
-	<td class="buttons">
-		<button type="button" wicket:id="addButton" class="button add"><div/> 
-               </button><br/>
-		<button type="button" wicket:id="removeButton" class="button remove"><div/> 
-               </button><br/>
-		<button type="button" wicket:id="moveUpButton" class="button up"><div/>  
-               </button><br/>
-		<button type="button" wicket:id="moveDownButton" class="button down"><div/>  
-               </button><br/>
-	</td>
-	<td class="pane selection">
-		<select class="selectionSelect" wicket:id="selection">[selection]</select>	
-	</td>
-</tr>
-</table>
-{code}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/wicket/blob/533c2d36/wicket-user-guide/src/docs/guide/forms2/forms2_13.gdoc
----------------------------------------------------------------------
diff --git a/wicket-user-guide/src/docs/guide/forms2/forms2_13.gdoc b/wicket-user-guide/src/docs/guide/forms2/forms2_13.gdoc
deleted file mode 100644
index c91e48e..0000000
--- a/wicket-user-guide/src/docs/guide/forms2/forms2_13.gdoc
+++ /dev/null
@@ -1,6 +0,0 @@
-
-Forms are the standard solution to let users interact with our web applications. In this chapter we have seen the three steps involved with the form processing workflow in Wicket. We have started looking at form validation and feedback messages generation, then we have seen how Wicket converts input values into Java objects and vice versa. 
-
-In the second part of the chapter we learnt how to build reusable form components and how to  implement a stateless form. We have ended the chapter with an overview of the built-in form components needed to handle standard input form elements like checkboxes, radio buttons and multiple selections lists. 
-
-

http://git-wip-us.apache.org/repos/asf/wicket/blob/533c2d36/wicket-user-guide/src/docs/guide/forms2/forms2_2.gdoc
----------------------------------------------------------------------
diff --git a/wicket-user-guide/src/docs/guide/forms2/forms2_2.gdoc b/wicket-user-guide/src/docs/guide/forms2/forms2_2.gdoc
deleted file mode 100644
index c9d7df8..0000000
--- a/wicket-user-guide/src/docs/guide/forms2/forms2_2.gdoc
+++ /dev/null
@@ -1,285 +0,0 @@
-
-
-A basic example of a validation rule is to make a field required. In [paragraph 11.3|guide:modelsforms_3] we have already seen how this can be done calling setRequired(true) on a field. However, to set a validation rule on a FormComponent we must add the corresponding validator to it.
-
-A validator is an implementation of the @org.apache.wicket.validation.IValidator@ interface and the @FormComponent@ has a version of method add which takes as input a reference of this interface. 
-
-For example if we want to use a text field to insert an email address, we could use the built-in validator  EmailAddressValidator to ensure that the inserted input will respect the email format "local-part@domain":http://en.wikipedia.org/wiki/Email_address :
-
-{code}
-TextField email = new TextField("email");
-email.add(EmailAddressValidator.getInstance());
-{code}
-
-Wicket comes with a set of built-in validators that should suit most of our needs. We will see them later in this chapter.
-
-h3. Feedback messages and localization
-
-Wicket generates a feedback message for each field that doesn't satisfy one of its validation rules. For example the message generated when a required field is left empty is the following
-
-@Field '<label>' is required.@
-
-<label> is the value of the label model set on a FormComponent with method setLabel(IModel <String> model). If such model is not provided, component id will be used as the default value.
-
-The entire infrastructure of feedback messages is built on top of the Java internationalization (I18N) support and it uses "resource bundles":http://docs.oracle.com/javase/tutorial/i18n/resbundle/index.html to store messages.
-
-{note}
-The topics of internationalization will be covered in [chapter 15|guide:i18n]. For now we will give just few notions needed to understand the examples from this chapter.
-{note}
-
-By default resource bundles are stored into properties files but we can easily configure other sources as described later in [paragraph 15.2|guide:i18n_2]. 
-
-Default feedback messages (like the one above for required fields) are stored in the file Application. properties placed inside Wicket the org.apache.wicket package. Opening this file we can find the key and the localized value of the message:
-
-@Required=Field '$\{label\}' is required.@
-
-We can note the key (Required in our case) and the label parameter written in the "expression language":http://en.wikipedia.org/wiki/Expression_Language (${label}). Scrolling down this file we can also find the message used by the Email AddressValidator:
-
-@EmailAddressValidator=The value of '${label}' is not a valid email address.@
-
-By default FormComponent provides 3 parameters for feedback message: input (the value that failed validation), label and name (this later is the id of the component).
-
-{warning}
-Remember that component model is updated with the user input only if validation succeeds! As a consequence, we can't retrieve the wrong value inserted for a field from its model. Instead, we should use getValue() method of FormComponent class. (This method will be introduced in the example used later in this chapter)
-{warning}
-
-h3. Displaying feedback messages and filtering them
-
-To display feedback messages we must use component @org.apache.wicket.markup.html.panel.FeedbackPanel@. This component automatically reads all the feedback messages generated during form validation and displays them with an unordered list:
-
-{code:html}
-<ul class="feedbackPanel"> 
-	<li class="feedbackPanelERROR"> 
-		<span class="feedbackPanelERROR">Field 'Username' is required.</span> 
-	</li> 
-</ul>
-{code}
-
-CSS classes "feedbackPanel" and "feedbackPanelERROR" can be used in order to customize the style of the message list:
-
-!feedback-panel-style.png!
-
-The component can be freely placed inside the page and we can set the maximum amount of displayed messages with the setMaxMessages() method.
-
-Error messages can be filtered using three built-in filters:
-
-* *ComponentFeedbackMessageFilter*: shows only messages coming from a specific component.
-* *ContainerFeedbackMessageFilter*: shows only messages coming from a specific container or from any of its children components.
-* *ErrorLevelFeedbackMessageFilter*: shows only messages with a level of severity equals or greater than a given lower bound. Class FeedbackMessage defines a set of static constants to express different levels of severity: DEBUG, ERROR, WARNING, INFO, SUCCESS, etc.... Levels of severity for feedback messages are discussed later in this chapter.
-
-These filters are intended to be used when there are more than one feedback panel (or more than one form) in the same page. We can pass a filter to a feedback panel via its constructor or using the setFilter method. Custom filters can be created implementing the IFeedbackMessageFilter interface. An example of custom filter is illustrated later in this paragraph.
-
-h3. Built-in validators
-
-Wicket already provides a number of built-in validators ready to be used. The following table is a short reference where validators are listed along with a brief description of what they do. The default feedback message used by each of them is reported as well:
-
-h4. EmailAddressValidator
-
-Checks if input respects the format local-part\@domain.
-
-*Message:*
-
-@The value of '${label}' is not a valid email address.@
-
-h4. UrlValidator
-
-Checks if input is a valid URL. We can specify in the constructor which protocols are allowed (http://, https://, and ftp://).
-
-*Message:*
-
-@The value of '${label}' is not a valid URL.@
-
-h4. DateValidator
-
-Validator class that can be extended or used as a factory class to get date validators to check if a date is bigger than a lower bound (method minimum(Date min)), smaller than a upper bound (method maximum(Date max)) or inside a range (method range(Date min, Date max)).
-
-*Messages:*
-
-@The value of '${label}' is less than the minimum of ${minimum}.@
-
-@The value of '${label}' is larger than the maximum of ${maximum}.@
-
-@The value of '${label}' is not between ${minimum} and ${maximum}.@
-
-h4. RangeValidator
-
-Validator class that can be extended or used as a factory class to get validators to check if a value is bigger than a given lower bound (method minimum(T min)), smaller than a upper bound (method maximum(T max)) or inside a range (method range(T min,T max)). 
-
-The type of the value is a generic subtype of java.lang.Comparable and must implement Serializable interface.
-
-*Messages:*
-
-@The value of '${label}' must be at least ${minimum}.@
-
-@The value of '${label}' must be at most ${maximum}.@
-
-@The value of '${label}' must be between ${minimum} and ${maximum}.@
-
-h4. StringValidator
-
-Validator class that can be extended or used as a factory class to get validators to check if the length of a string value is bigger then a given lower bound (method minimumLength (int min)), smaller then a given upper bound (method maximumLength (int max)) or within a given range (method lengthBetween(int min, int max)).
-
-To accept only string values consisting of exactly n characters, we must use method exactLength(int length).
-
-*Messages:*
-
-@The value of '${label}' is shorter than the minimum of ${minimum} characters.@
-
-@The value of '${label}' is longer than the maximum of ${maximum} characters.@
-
-@The value of '${label}' is not between ${minimum} and ${maximum} characters long.@
-
-@The value of '${label}' is not exactly ${exact} characters long.@
-
-h4. CreditCardValidator
-
-Checks if input is a valid credit card number. This validator supports some of the most popular credit cards (like \u201cAmerican Express", "MasterCard", \u201cVisa\u201d or \u201cDiners Club\u201d). 
-
-*Message:*
-
-@The credit card number is invalid.@
-
-h4. EqualPasswordInputValidator
-
-This validator checks if two password fields have the same value.  
-
-*Message:*
-
-@${label0} and ${label1} must be equal.@
-
-h3. Overriding standard feedback messages with custom bundles
-
-If we don't like the default validation feedback messages, we can override them providing custom properties files. In these files we can write our custom messages using the same keys of the messages we want to override. For example if we wanted to override the default message for invalid email addresses, our properties file would contain a line like this:
-
-@EmailAddressValidator=Man, your email address is not good!@
-
-As we will see in the next chapter, Wicket searches for custom properties files in various positions inside the application's class path, but for now we will consider just the properties file placed next to our application class. The name of this file must be equal to the name of our application class:
-
-!custom-properties-file.png!
-
-The example project OverrideMailMessage overrides email validator's message with a new one which also reports the value that failed validation:
-
-@EmailAddressValidator=The value '${input}' inserted for field '${label}' is not a valid email address.@
-
-!validation-error-message.png!
-
-h3. Creating custom validators
-
-If our web application requires a complex validation logic and built-in validators are not enough, we can  implement our own custom validators. For example (project UsernameCustomValidator) suppose we are working on the registration page of our site where users can create their profile choosing their username. Our registration form should validate the new username checking if it was already chosen by another user. In a situation like this we may need to implement a custom validator that queries a specific data source to check if a username is already in use.
-
-For the sake of simplicity, the validator of our example will check the given username against a fixed list of three existing usernames. 
-
-A custom validator must simply implement interface IValidator:
-
-{code}
-public class UsernameValidator implements IValidator<String> {
-	List<String> existingUsernames = Arrays.asList("bigJack", "anonymous", "mrSmith");
-
-	public void validate(IValidatable<String> validatable) {
-		String chosenUserName = validatable.getValue();
-		
-		if(existingUsernames.contains(chosenUserName)){
-			ValidationError error = new ValidationError(this);
-			Random random = new Random();
-			
-			error.setVariable("suggestedUserName", 
-					validatable.getValue() + random.nextInt());
-			validatable.error(error);
-		}
-	}	
-}
-{code}
-
-The only method defined inside IValidator is validate(IValidatable<T> validatable) and is invoked during validation's step. Interface IValidatable represents the component being validated and it can be used to retrieve the component model (getModel()) or the value to validate (getValue()). 
-
-The custom validation logic is all inside IValidator's method validate. When validation fails a validator must use IValidatable's method error(IValidationError error) to generate the appropriate feedback message. In the code above we used the ValidationError class as convenience implementation of the IValidationError interface which represents the validation error that must be displayed to the user. This class provides a constructor that uses the class name of the validator in input as key for the resource to use as feedback message (i.e. 'UsernameValidator' in the example). If we want to specify more then one key to use to locate the error message, we can use method addKey(String key) of ValidationError class.
-
-In our example when validation fails, we suggest a possible username concatenating the given input with a pseudo-random integer. This value is passed to the feedback message with a variable named suggestedUserName. The message is inside application's properties file:
-
-@UsernameValidator=The username '${input}' is already in use. Try with '${suggestedUserName}'@
-
-To provide further variables to our feedback message we can use method setVariable(String name, Object value) of class ValidationError as we did in our example.
-
-The code of the home page of the project will be examined in the next paragraph after we have introduced the topic of flash messages.
-
-h3. Using flash messages
-
-So far we have considered just the error messages generated during validation step. However Wicket's Component class provides a set of methods to explicitly generate feedback messages called flash messages. These methods are:
-
-* debug(Serializable message) 
-* info(Serializable message) 
-* success(Serializable message) 
-* warn(Serializable message) 
-* error(Serializable message) 
-* fatal(Serializable message) 
-
-Each of these methods corresponds to a level of severity for the message. The list above is sorted by increasing level of severity. 
-
-In the example seen in the previous paragraph we have a form which uses success method to notify user when the inserted username is valid. Inside this form there are two FeedbackPanel components: one to display the error message produced by custom validator and the other one to display the success message. The code of the example page is the following:
-
-*HTML:*
-
-{code:html}
-<body>
-	<form wicket:id="form">
-		Username: <input type="text" wicket:id="username"/>
-		<br/>
-		<input type="submit"/>
-	</form>
-	<div style="color:green" wicket:id="succesMessage">
-	</div>
-	<div style="color:red" wicket:id="feedbackMessage">
-	</div>
-</body>
-{code}
-
-*Java code:*
-
-{code}
-public class HomePage extends WebPage {
-
-    public HomePage(final PageParameters parameters) {	
-	Form form = new Form("form"){
-		@Override
-		protected void onSubmit() {
-			super.onSubmit();
-			success("Username is good!");
-		}
-	};
-    	
-	TextField mail;
-	
-	form.add(mail = new TextField("username", Model.of("")));
-	mail.add(new UsernameValidator());
-	
-	add(new FeedbackPanel("feedbackMessage", 
-		new ExactErrorLevelFilter(FeedbackMessage.ERROR)));
-	add(new FeedbackPanel("succesMessage", 
-		new ExactErrorLevelFilter(FeedbackMessage.SUCCESS)));
-	
-	add(form);
-    }
-    
-    class ExactErrorLevelFilter implements IFeedbackMessageFilter{
-    	private int errorLevel;
-
-		public ExactErrorLevelFilter(int errorLevel){
-			this.errorLevel = errorLevel;
-		}
-		
-		public boolean accept(FeedbackMessage message) {
-			return message.getLevel() == errorLevel;
-		}
-    	
-    }
-    //UsernameValidator definition
-    //...
-}
-{code}
-
-The two feedback panels must be filtered in order to display just the messages with a given level of severity (ERROR for validator message and SUCCESS for form's flash message). Unfortunately the built-in message filter ErrorLevelFeedbackMessageFilter is not suitable for this task because its filter condition does not check for an exact error level (the given level is used as lower bound value). As a consequence, we had to build a custom filter (inner class ExactErrorLevelFilter) to accept only the desired severity level (see method accept of interface IFeedbackMessageFilter).
-
-{note}
-Since version 6.13.0 Wicket provides the additional filter class org.apache.wicket.feedback.ExactLevelFeedbackMessageFilter to accept only feedback messages of a certain error level.
-{note}
- 

http://git-wip-us.apache.org/repos/asf/wicket/blob/533c2d36/wicket-user-guide/src/docs/guide/forms2/forms2_3.gdoc
----------------------------------------------------------------------
diff --git a/wicket-user-guide/src/docs/guide/forms2/forms2_3.gdoc b/wicket-user-guide/src/docs/guide/forms2/forms2_3.gdoc
deleted file mode 100644
index 2478a27..0000000
--- a/wicket-user-guide/src/docs/guide/forms2/forms2_3.gdoc
+++ /dev/null
@@ -1,137 +0,0 @@
-
-
-Working with Wicket we will rarely need to worry about conversion between input values (which are strings because the underlying HTTP protocol) and Java types because in most cases the default conversion mechanism will be smart enough to infer the type of the model object and perform the proper conversion. However, sometimes we may need to work under the hood of this mechanism to make it properly work or to perform custom conversions. That's why this paragraph will illustrate how to control input value conversion.
-
-The component that is responsible for converting input is the FormComponent itself with its convertInput() method. In order to convert its input a FormComponent must know the type of its model object. This parameter can be explicitly set with method setType(Class<?> type):
-
-{code}
-//this field must receive an integer value
-TextField integerField = new TextField("number", new Model()).setType(Integer.class));
-{code}
-
-If no type has been provided, FormComponent will try to ask its model for this information. The PropertyModel and CompoundPropertyModel models can use reflection to get the type of object model. By default, if FormComponent can not obtain the type of its model object in any way, it will consider it as a simple String.
-
-Once FormComponent has determined the type of model object, it can look up for a converter, which is the entity in charge of converting input to Java object and vice versa. Converters are instances of @org.apache.wicket.util.convert.IConverter@ interface and are registered by our application class on start up. 
-
-To get a converter for a specific type we must call method getConverter(Class<C> type) on the interface IConverterLocator returned by Application's method getConverterLocator():
-
-{code}
-//retrieve converter for Boolean type
-Application.get().getConverterLocator().getConverter(Boolean.class);
-{code}
-
-{note}
-Components which are subclasses of AbstractSingleSelectChoice don't follow the schema illustrated above to convert user input. 
-
-These kinds of components (like DropDownChoice and RadioChoice1) use their choice render and their collection of possible choices to perform input conversion.
-{note}
-
-h3. Creating custom application-scoped converters
-
-The default converter locator used by Wicket is @org.apache.wicket.ConverterLocator@. This class provides converters for the most common Java types. Here we can see the converters registered inside its constructor:
-
-{code}
-public ConverterLocator()
-{
-	set(Boolean.TYPE, BooleanConverter.INSTANCE);
-	set(Boolean.class, BooleanConverter.INSTANCE);
-	set(Byte.TYPE, ByteConverter.INSTANCE);
-	set(Byte.class, ByteConverter.INSTANCE);
-	set(Character.TYPE, CharacterConverter.INSTANCE);
-	set(Character.class, CharacterConverter.INSTANCE);
-	set(Double.TYPE, DoubleConverter.INSTANCE);
-	set(Double.class, DoubleConverter.INSTANCE);
-	set(Float.TYPE, FloatConverter.INSTANCE);
-	set(Float.class, FloatConverter.INSTANCE);
-	set(Integer.TYPE, IntegerConverter.INSTANCE);
-	set(Integer.class, IntegerConverter.INSTANCE);
-	set(Long.TYPE, LongConverter.INSTANCE);
-	set(Long.class, LongConverter.INSTANCE);
-	set(Short.TYPE, ShortConverter.INSTANCE);
-	set(Short.class, ShortConverter.INSTANCE);
-	set(Date.class, new DateConverter());
-	set(Calendar.class, new CalendarConverter());
-	set(java.sql.Date.class, new SqlDateConverter());
-	set(java.sql.Time.class, new SqlTimeConverter());
-	set(java.sql.Timestamp.class, new SqlTimestampConverter());
-	set(BigDecimal.class, new BigDecimalConverter());
-}
-{code}
-
-If we want to add more converters to our application, we can override Application's method newConverterLocator which is used by application class to build its converter locator.
-
-To illustrate how to implement custom converters and use them in our application, we will build a form with two text field: one to input a regular expression pattern and another one to input a string value that will be split with the given pattern. 
-
-The first text field will have an instance of class java.util.regex.Pattern as model object. The final page will look like this (the code of this example is from the CustomConverter project):
-
-!regex-form.png!
-
-The conversion between Pattern and String is quite straightforward. The code of our custom converter is the following:
-
-{code}
-public class RegExpPatternConverter implements IConverter<Pattern> {
-	@Override
-	public Pattern convertToObject(String value, Locale locale) {
-		return Pattern.compile(value);
-	}
-
-	@Override
-	public String convertToString(Pattern value, Locale locale) {
-		return value.toString();
-	}
-}
-{code}
-
-Methods declared by interface IConverter take as input a Locale parameter in order to deal with locale-sensitive data and conversions. We will learn more about locales and internationalization in [paragraph 15|guide:i18n].
-
-Once we have implemented our custom converter, we must override method newConverterLocator() inside our application class and tell it to add our new converter to the default set:
-
-{code}
-@Override
-	protected IConverterLocator newConverterLocator() {
-		ConverterLocator defaultLocator = new ConverterLocator();
-		
-		defaultLocator.set(Pattern.class, new RegExpPatternConverter());
-		
-		return defaultLocator;
-	}
-{code}
-
-Finally, in the home page of the project we build the form which displays (with a flash message) the tokens obtained splitting the string with the given pattern: 
-
-{code}
-public class HomePage extends WebPage {
-    private Pattern regExpPattern;
-    private String stringToSplit;
-    
-    public HomePage(final PageParameters parameters) {		
-    	TextField regExpPatternTxt;
-	TextField stringToSplitTxt;
-		
-    	Form form = new Form("form"){
-			@Override
-			protected void onSubmit() {
-				super.onSubmit();
-				String messageResult = "Tokens for the given string and pattern:<br/>";
-				String[] tokens = regExpPattern.split(stringToSplit);
-			
-				for (String token : tokens) {
-					messageResult += "- " + token + "<br/>";
-				}				
-				success(messageResult);
-		}
-	};
-    	
-		form.setDefaultModel(new CompoundPropertyModel(this));
-		form.add(regExpPatternTxt = new TextField("regExpPattern"));
-		form.add(stringToSplitTxt = new TextField("stringToSplit"));
-		add(new FeedbackPanel("feedbackMessage").setEscapeModelStrings(false));
-		
-		add(form);
-    }
-}
-{code}
-
-{note}
-If the user input can not be converted to the target type, FormComponent will generate the default error message \u201cThe value of '${label}' is not a valid ${type}.\u201d. The bundle key for this message is IConverter.
-{note}

http://git-wip-us.apache.org/repos/asf/wicket/blob/533c2d36/wicket-user-guide/src/docs/guide/forms2/forms2_4.gdoc
----------------------------------------------------------------------
diff --git a/wicket-user-guide/src/docs/guide/forms2/forms2_4.gdoc b/wicket-user-guide/src/docs/guide/forms2/forms2_4.gdoc
deleted file mode 100644
index 98f2690..0000000
--- a/wicket-user-guide/src/docs/guide/forms2/forms2_4.gdoc
+++ /dev/null
@@ -1,82 +0,0 @@
-Standard JSR 303 defines a set of annotations and APIs to validate our domain objects at field-level. Wicket has introduced an experimental support for this standard since version 6.4.0 and with version 6.14.0 it has became an official Wicket module (named @wicket-bean-validation@).
-In this paragraph we will see the basic steps needed to use JSR 303 validation in our Wicket application. Code snippets are from example project @JSR303validation@.
-
-In the example application we have a form to insert the data for a new @Person@ bean and its relative @Address@. The code for class @Person@ is the following
-
-{code}
-public class Person implements Serializable{
-	
-	@NotNull
-	private String name;
-	
-	//regular expression to validate an email address     
-	@Pattern(regexp = "^[_A-Za-z0-9-]+(.[_A-Za-z0-9-]+)*[A-Za-z0-9-]+(.[A-Za-z0-9-]+)*((.[A-Za-z]{2,}){1}$)")
-	private String email;
-	
-	@Range(min = 18, max = 150)
-	private int age;	
-	
-	@Past @NotNull 
-	private Date birthDay;
-	
-	@NotNull
-	private Address address; 
-}
-{code}
-
-You can note the JSR 303 annotations used in the code above to declare validation constraints on class fields. Class @Address@ has the following code:
-
-{code}
-public class Address implements Serializable {
-	
-	@NotNull
-	private String city;
-	
-	@NotNull
-	private String street;
-	
-	@Pattern(regexp = "\\d+", message = "{address.invalidZipCode}")
-	private String zipCode;
-}
-{code}
-
-You might have noted that in class @Address@ we have used annotation @Pattern using also attribute @message@ which contains the key of the bundle to use for validation message. Our custom bundle is contained inside @HomePage.properties@:
-
-{code}
-address.invalidZipCode=The inserted zip code is not valid.
-{code}
-
-To tell Wicket to use JSR 303, we must register bean validator on Application's startup: 
-
-{code}
-public class WicketApplication extends WebApplication {
-	@Override
-	public void init(){
-		super.init();
-
-		new BeanValidationConfiguration().configure(this);
-	}
-}
-{code}
-
-The last step to harness JSR 303 annotations is to add validator @org.apache.wicket.bean.validation.PropertyValidator@ to our corresponding form components:
-
-{code}
-public HomePage(final PageParameters parameters) {
-	super(parameters);
-
-	setDefaultModel(new CompoundPropertyModel<Person>(new Person()));
-		
-	Form<Void> form = new Form<Void>("form");
-		
-	form.add(new TextField("name").add(new PropertyValidator()));
-	form.add(new TextField("email").add(new PropertyValidator()));
-	form.add(new TextField("age").add(new PropertyValidator()));
-        //...
-}
-{code}
-
-Now we can run our application an see that JSR 303 annotations are fully effective:
-
-!jsr303-form-validation.png!
-

http://git-wip-us.apache.org/repos/asf/wicket/blob/533c2d36/wicket-user-guide/src/docs/guide/forms2/forms2_5.gdoc
----------------------------------------------------------------------
diff --git a/wicket-user-guide/src/docs/guide/forms2/forms2_5.gdoc b/wicket-user-guide/src/docs/guide/forms2/forms2_5.gdoc
deleted file mode 100644
index f5869b4..0000000
--- a/wicket-user-guide/src/docs/guide/forms2/forms2_5.gdoc
+++ /dev/null
@@ -1,124 +0,0 @@
-
-
-Besides submitting forms with a standard HTML submit button, Wicket allows us to use special components which implement interface IFormSubmittingComponent. This entity is a subinterface of  IFormSubmitter: 
-
-!class-diag-IFormSubmittingComponent.png!
-
-At the beginning of this chapter we have seen that form processing is started by process method which takes as input an instance of IFormSubmitter. This parameter corresponds to the IFormSubmittingComponent clicked by a user to submit the form and it is null if we have used a standard HTML submit button (like we have done so far).
-
-A submitting component is added to a form just like any other child component using method add(Component...). 
-
-A form can have any number of submitting components and we can specify which one among them is the default one by calling the Form's method setDefaultButton(IFormSubmittingComponent �component). The default submitter is the one that will be used when user presses 'Enter' key in a field of the form. In order to make the default button work, Wicket will add to our form a hidden <div> tag containing a text field and a submit button with some JavaScript code to trigger it:
-
-{code:html}
-<div style="width:0px;height:0px;position:absolute;left:-100px;top:-100px;overflow:hidden">
-	<input type="text" autocomplete="off"/>
-	<input type="submit" name="submit2" onclick=" var b=document...."/>
-</div>
-{code}
-
-Just like Wicket forms, interface IFormSubmitter defines methods onSubmit and onError. These two methods have the priority over the namesake methods of the form, meaning that when a form is submitted with an IFormSubmitter, the onSubmit of the submitter is called before the one of the form. Similarly, if validation errors occurs during the first step of form processing, submitter's method onError is called before the form's one.
-
-{note}
-Starting with Wicket version 6.0 interface IFormSubmitter defines a further callback method called onAfterSubmit(). This method is called after form's method onSubmit() has been executed.
-{note}
-
-h3. Components Button and SubmitLink
-
-Component @org.apache.wicket.markup.html.form.Button@ is a basic implementation of a form submitter. It can be used with either the <input> or <button> tags. The string model received as input by its constructor is used as button label and it will be the value of the markup attribute value.
-
-In the following snippet we have a form with two submit buttons bound to an <input> tag. One of them is set as default button and both have a string model for the label:
-
-*HTML:*
-
-{code:html}
-<body>
-	<form wicket:id="form">
-		Username: <input type="text" wicket:id="username"/>
-		<br/>
-		<input type="submit" wicket:id="submit1"/>
-		<input type="submit" wicket:id="submit2"/>
-	</form>
-</body>
-{code}
-
-*Java code:*
-
-{code}
-public class HomePage extends WebPage {
-	
-	public HomePage(final PageParameters parameters) {		
-		Form form = new Form("form");
-	
-	     	form.add(new TextField("username", Model.of("")));
-	    	form.add(new Button("submit1", Model.of("First submitter")));
-		Button secondSubmitter;
-		form.add(secondSubmitter = new Button("submit2", Model.of("Second submitter")));
-		
-	    	form.setDefaultButton(secondSubmitter);
-		add(form);
-	}
-}
-{code}
-
-*Generated markup:*
-
-{code:html}
-<form wicket:id="form" id="form1" method="post" action="?0-1.IFormSubmitListener-form">
-   <div>
-      ...
-      <!-- Code generated by Wicket to handle the default button -->
-      ...
-   </div>			
-   Username: <input type="text" wicket:id="username" value="" name="username"/>
-   <br/>
-   <input type="submit" wicket:id="submit1" name="submit1" id="submit13" value="First submitter"/>
-   <input type="submit" wicket:id="submit2" name="submit2" id="submit22" value="Second submitter"/>
-</form>
-{code}
-
-Another component that can be used to submit a form is @org.apache.wicket.markup.html.form.SubmitLink@. This component uses JavaScript to submit the form. Like the name suggests, the component can be used with the <a> tag but it can be also bound to any other tag that supports the event handler onclick. When used with the <a> tag, the JavaScript code needed to submit the form will be placed inside href attribute while with other tags the script will go inside the event handler onclick.
-
-A notable difference between this component and Button is that SubmitLink can be placed outside the form it must submit. In this case we must specify the form to submit in its constructor:
-
-*HTML:*
-
-{code:html}
-<html xmlns:wicket="http://wicket.apache.org">
-	<head>
-	</head>
-	<body>
-		<form wicket:id="form">
-			Password: <input type="password" wicket:id="password"/>
-			<br/>					
-		</form>
-		<button wicket:id="externalSubmitter">
-			Submit
-		</button>
-	</body>
-</html>
-{code}
-
-*Java code:*
-
-{code}
-public class HomePage extends WebPage {
-	
-	public HomePage(final PageParameters parameters) {		
-		Form form = new Form("form");
-	    
-		form.add(new PasswordTextField("password", Model.of("")));
-		//specify the form to submit
-		add(new SubmitLink("externalSubmitter", form));
-		add(form);
-	}
-}
-{code}
-
-h3. Disabling default form processing
-
-With an IFormSubmittingComponent we can choose to skip the default form submission process  by setting the appropriate flag to false with the setDefaultFormProcessing method. When the default form processing is disabled only the submitter's onSubmit is called while form's validation and models updating are skipped.
-
-This can be useful if we want to implement a \u201cCancel\u201d button on our form which redirects user to another page without validating his/her input. 
-
-When we set this flag to false we can decide to manually invoke the form processing by calling the process(IFormSubmittingComponent) method.

http://git-wip-us.apache.org/repos/asf/wicket/blob/533c2d36/wicket-user-guide/src/docs/guide/forms2/forms2_6.gdoc
----------------------------------------------------------------------
diff --git a/wicket-user-guide/src/docs/guide/forms2/forms2_6.gdoc b/wicket-user-guide/src/docs/guide/forms2/forms2_6.gdoc
deleted file mode 100644
index 3fb1ab7..0000000
--- a/wicket-user-guide/src/docs/guide/forms2/forms2_6.gdoc
+++ /dev/null
@@ -1,22 +0,0 @@
-
-
-As you might already known, HTLM doesn't allow to have nested forms. However with Wicket we can overcome this limitation by adding one or more form components to a parent form.
-
-This can be useful if we want to split a big form into smaller ones in order to reuse them and to better distribute responsibilities among different components.
-Forms can be nested to an arbitrary level:
-
-{code:html}
-<form wicket:id="outerForm"> 
-	...
-	<form wicket:id="innerForm"> 
-		...
-		<form wicket:id="veryInnerForm">
-			...
-		</form> 
-	</form> 
-</form>
-{code}
-
-When a form is submitted also its nested forms are submitted and they participate in the validation step. This means that if a nested form contains invalid input values, the outer form won't be submitted. On the contrary, nested forms can be singularly submitted without depending on the status of their outer form.
-
-To submit a parent form when one of its children forms is submitted, we must override its method wantSubmitOnNestedFormSubmit and make it return true. 
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/wicket/blob/533c2d36/wicket-user-guide/src/docs/guide/forms2/forms2_7.gdoc
----------------------------------------------------------------------
diff --git a/wicket-user-guide/src/docs/guide/forms2/forms2_7.gdoc b/wicket-user-guide/src/docs/guide/forms2/forms2_7.gdoc
deleted file mode 100644
index d293a4a..0000000
--- a/wicket-user-guide/src/docs/guide/forms2/forms2_7.gdoc
+++ /dev/null
@@ -1,17 +0,0 @@
-
-
-HTML provides a multi-line text input control with <textarea> tag. The Wicket counterpart for this kind of control is @org.apache.wicket.markup.html.form.TextArea@ component:
-
-*HTML:*
-
-{code:html}
-<textarea wicket:id="description" rows="5" cols="40"></textarea>
-{code}
-
-*Java code:*
-
-{code}
-form.add(new TextArea("description", Model.of("")));
-{code}
-
-Component TextArea is used just like any other single-line text field. To specify the size of the text area we can write attributes rows and cols directly in the markup file or we can create new attribute modifiers and add them to our TextArea component.
\ No newline at end of file