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 2012/10/08 10:50:29 UTC

git commit: Markdown articles added to examples

Updated Branches:
  refs/heads/master d3f3b43e6 -> 06f1d79f2


Markdown articles added to examples

It is now possible to write Markdown articles for the new Wicket
examples. Using Markdown makes it easier to author an article and keep
a sane document structure.

See the ComponentExamplesPage for its usage. This uses Markdown4j-core
as a dependency for converting the markdown syntax to HTML.


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

Branch: refs/heads/master
Commit: 06f1d79f2cd0514920e0d14bcdb5f9d75eae37aa
Parents: d3f3b43
Author: Martijn Dashorst <da...@apache.org>
Authored: Mon Oct 8 10:23:50 2012 +0200
Committer: Martijn Dashorst <da...@apache.org>
Committed: Mon Oct 8 10:50:21 2012 +0200

----------------------------------------------------------------------
 .../wicket-examples-jar/pom.xml                    |    5 +
 .../wicket/examples/base/AbstractBasePage.java     |    6 +-
 .../wicket/examples/base/MarkdownArticleModel.java |   59 +
 .../examples/base/components/AnchorLink.java       |   93 ++
 .../java/org/apache/wicket/examples/base/docs.css  | 1200 +--------------
 .../org/apache/wicket/examples/base/examples.js    |  185 +---
 .../examples/base/markdown/MarkdownLabel.java      |  127 ++
 .../wicket/examples/base/prettify/Prettify.java    |   22 +-
 .../examples/components/ComponentExamplesPage.html |  146 +--
 .../examples/components/ComponentExamplesPage.java |   45 +-
 .../apache/wicket/examples/components/Feedback.md  |    4 +
 .../org/apache/wicket/examples/components/Forms.md |    4 +
 .../examples/components/Internationalization.md    |    4 +
 .../apache/wicket/examples/components/Labels.md    |   99 ++
 .../apache/wicket/examples/components/Layout.md    |    4 +
 .../org/apache/wicket/examples/components/Links.md |   89 ++
 .../org/apache/wicket/examples/components/Lists.md |    4 +
 .../wicket/examples/components/Pagination.md       |   89 ++
 18 files changed, 669 insertions(+), 1516 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/wicket/blob/06f1d79f/wicket-experimental/wicket-examples-parent/wicket-examples-jar/pom.xml
----------------------------------------------------------------------
diff --git a/wicket-experimental/wicket-examples-parent/wicket-examples-jar/pom.xml b/wicket-experimental/wicket-examples-parent/wicket-examples-jar/pom.xml
index 6e2d0b0..fb0f6f2 100644
--- a/wicket-experimental/wicket-examples-parent/wicket-examples-jar/pom.xml
+++ b/wicket-experimental/wicket-examples-parent/wicket-examples-jar/pom.xml
@@ -59,6 +59,11 @@
 			<artifactId>wicket-spring</artifactId>
 		</dependency>
 		<dependency>
+			<groupId>com.madgag</groupId>
+			<artifactId>markdownj-core</artifactId>
+			<version>0.4.1</version>
+		</dependency>
+		<dependency>
 			<groupId>com.google.guava</groupId>
 			<artifactId>guava</artifactId>
 			<version>11.0.1</version>

http://git-wip-us.apache.org/repos/asf/wicket/blob/06f1d79f/wicket-experimental/wicket-examples-parent/wicket-examples-jar/src/main/java/org/apache/wicket/examples/base/AbstractBasePage.java
----------------------------------------------------------------------
diff --git a/wicket-experimental/wicket-examples-parent/wicket-examples-jar/src/main/java/org/apache/wicket/examples/base/AbstractBasePage.java b/wicket-experimental/wicket-examples-parent/wicket-examples-jar/src/main/java/org/apache/wicket/examples/base/AbstractBasePage.java
index ca07f0d..c9d2855 100644
--- a/wicket-experimental/wicket-examples-parent/wicket-examples-jar/src/main/java/org/apache/wicket/examples/base/AbstractBasePage.java
+++ b/wicket-experimental/wicket-examples-parent/wicket-examples-jar/src/main/java/org/apache/wicket/examples/base/AbstractBasePage.java
@@ -37,11 +37,13 @@ public abstract class AbstractBasePage extends WebPage
 		Bootstrap.renderHead(response);
 		Prettify.renderHead(response);
 
-		response.render(JavaScriptHeaderItem.forReference(new JavaScriptResourceReference(
-			AbstractBasePage.class, "examples.js")));
 		response.render(CssHeaderItem.forReference(new CssResourceReference(AbstractBasePage.class,
 			"docs.css")));
 		response.render(CssHeaderItem.forCSS("body { padding-top: 60px; padding-bottom: 40px; }",
 			"custom-wicket-examples"));
+
+		response.render(JavaScriptHeaderItem.forReference(new JavaScriptResourceReference(
+			AbstractBasePage.class, "examples.js")));
+
 	}
 }

http://git-wip-us.apache.org/repos/asf/wicket/blob/06f1d79f/wicket-experimental/wicket-examples-parent/wicket-examples-jar/src/main/java/org/apache/wicket/examples/base/MarkdownArticleModel.java
----------------------------------------------------------------------
diff --git a/wicket-experimental/wicket-examples-parent/wicket-examples-jar/src/main/java/org/apache/wicket/examples/base/MarkdownArticleModel.java b/wicket-experimental/wicket-examples-parent/wicket-examples-jar/src/main/java/org/apache/wicket/examples/base/MarkdownArticleModel.java
new file mode 100644
index 0000000..86ade38
--- /dev/null
+++ b/wicket-experimental/wicket-examples-parent/wicket-examples-jar/src/main/java/org/apache/wicket/examples/base/MarkdownArticleModel.java
@@ -0,0 +1,59 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.wicket.examples.base;
+
+import java.io.IOException;
+import java.nio.charset.Charset;
+
+import org.apache.wicket.WicketRuntimeException;
+import org.apache.wicket.model.LoadableDetachableModel;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+import com.google.common.io.Resources;
+
+public class MarkdownArticleModel extends LoadableDetachableModel<String>
+{
+	private static final long serialVersionUID = 1L;
+
+	private static final Logger log = LoggerFactory.getLogger(MarkdownArticleModel.class);
+
+	private final Class<?> parent;
+	private final String path;
+
+	public MarkdownArticleModel(Class<?> parent, String path)
+	{
+		this.parent = parent;
+		this.path = path;
+	}
+
+	@Override
+	protected String load()
+	{
+		String text;
+		try
+		{
+			text = Resources.toString(Resources.getResource(parent, path), Charset.forName("utf-8"));
+		}
+		catch (IOException e)
+		{
+			throw new WicketRuntimeException("Unable to load " + path + " relative to " +
+				parent.getName(), e);
+		}
+		return text;
+	}
+}

http://git-wip-us.apache.org/repos/asf/wicket/blob/06f1d79f/wicket-experimental/wicket-examples-parent/wicket-examples-jar/src/main/java/org/apache/wicket/examples/base/components/AnchorLink.java
----------------------------------------------------------------------
diff --git a/wicket-experimental/wicket-examples-parent/wicket-examples-jar/src/main/java/org/apache/wicket/examples/base/components/AnchorLink.java b/wicket-experimental/wicket-examples-parent/wicket-examples-jar/src/main/java/org/apache/wicket/examples/base/components/AnchorLink.java
new file mode 100644
index 0000000..015c11f
--- /dev/null
+++ b/wicket-experimental/wicket-examples-parent/wicket-examples-jar/src/main/java/org/apache/wicket/examples/base/components/AnchorLink.java
@@ -0,0 +1,93 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.wicket.examples.base.components;
+
+import org.apache.wicket.markup.ComponentTag;
+import org.apache.wicket.markup.MarkupStream;
+import org.apache.wicket.markup.html.WebComponent;
+import org.apache.wicket.model.IModel;
+import org.apache.wicket.model.Model;
+
+/**
+ * Renders an anchor tag with a link to an identified element in the document, and replaces its body
+ * with the model value if a model was set. Handy for in-document navigation (in-line menus).
+ */
+public class AnchorLink extends WebComponent
+{
+	private static final long serialVersionUID = 1L;
+	private final String anchor;
+
+	/**
+	 * Constructs an {@link AnchorLink} that doesn't replace its body.
+	 * 
+	 * @param id
+	 *            the component identifier
+	 * @param anchor
+	 *            the anchor to link to
+	 */
+	public AnchorLink(String id, String anchor)
+	{
+		this(id, Model.of(), anchor);
+	}
+
+	/**
+	 * Constructs an {@link AnchorLink} that replaces its body with the {@code contents}.
+	 * 
+	 * @param id
+	 *            the component identifier
+	 * @param contents
+	 *            the contents that replace the body of this link
+	 * @param anchor
+	 *            the anchor to link to
+	 */
+	public AnchorLink(String id, String contents, String anchor)
+	{
+		this(id, Model.of(contents), anchor);
+	}
+
+	/**
+	 * Constructs an {@link AnchorLink} that replaces its body with the {@code contents}.
+	 * 
+	 * @param id
+	 *            the component identifier
+	 * @param contents
+	 *            the contents that replace the body of this link
+	 * @param anchor
+	 *            the anchor to link to
+	 */
+	public AnchorLink(String id, IModel<?> contents, String anchor)
+	{
+		super(id, contents);
+		this.anchor = anchor;
+	}
+
+	@Override
+	protected void onComponentTag(ComponentTag tag)
+	{
+		super.onComponentTag(tag);
+		tag.put("href", "#" + anchor);
+	}
+
+	@Override
+	public void onComponentTagBody(MarkupStream markupStream, ComponentTag openTag)
+	{
+		if (getDefaultModel() != null && getDefaultModel().getObject() != null)
+		{
+			replaceComponentTagBody(markupStream, openTag, getDefaultModelObjectAsString());
+		}
+	}
+}

http://git-wip-us.apache.org/repos/asf/wicket/blob/06f1d79f/wicket-experimental/wicket-examples-parent/wicket-examples-jar/src/main/java/org/apache/wicket/examples/base/docs.css
----------------------------------------------------------------------
diff --git a/wicket-experimental/wicket-examples-parent/wicket-examples-jar/src/main/java/org/apache/wicket/examples/base/docs.css b/wicket-experimental/wicket-examples-parent/wicket-examples-jar/src/main/java/org/apache/wicket/examples/base/docs.css
index fb7ff79..f48f846 100644
--- a/wicket-experimental/wicket-examples-parent/wicket-examples-jar/src/main/java/org/apache/wicket/examples/base/docs.css
+++ b/wicket-experimental/wicket-examples-parent/wicket-examples-jar/src/main/java/org/apache/wicket/examples/base/docs.css
@@ -1,1198 +1,6 @@
-/* Add additional stylesheets below
--------------------------------------------------- */
-/*
-  Bootstrap's documentation styles
-  Special styles for presenting Bootstrap's documentation and examples
-*/
-
-
-/* Body and structure
--------------------------------------------------- */
 body {
-  position: relative;
-  padding-top: 90px;
-  background-color: #fff;
-  background-image: url(../img/grid-18px-masked.png);
-  background-repeat: repeat-x;
-  background-position: 0 40px;
-}
-
-
-/* Tweak navbar brand link to be super sleek
--------------------------------------------------- */
-.navbar-fixed-top .brand {
-  padding-right: 0;
-  padding-left: 0;
-  margin-left: 20px;
-  float: right;
-  font-weight: bold;
-  color: #000;
-  text-shadow: 0 1px 0 rgba(255,255,255,.1), 0 0 30px rgba(255,255,255,.125);
-  -webkit-transition: all .2s linear;
-     -moz-transition: all .2s linear;
-          transition: all .2s linear;
-}
-.navbar-fixed-top .brand:hover {
-  text-decoration: none;
-}
-
-
-/* Space out sub-sections more
--------------------------------------------------- */
-section {
-  padding-top: 60px;
-}
-
-/* Faded out hr */
-hr.soften {
-  height: 1px;
-  margin: 54px 0;
-  background-image: -webkit-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,.1), rgba(0,0,0,0));
-  background-image:    -moz-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,.1), rgba(0,0,0,0));
-  background-image:     -ms-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,.1), rgba(0,0,0,0));
-  background-image:      -o-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,.1), rgba(0,0,0,0));
-  border: 0;
-}
-
-
-/* Jumbotrons
--------------------------------------------------- */
-.jumbotron {
-  position: relative;
-}
-.jumbotron h1 {
-  margin-bottom: 9px;
-  font-size: 81px;
-  font-weight: bold;
-  letter-spacing: -1px;
-  line-height: 1;
-}
-.jumbotron p {
-  margin-bottom: 18px;
-  font-weight: 300;
-}
-.jumbotron .btn-large {
-  font-size: 20px;
-  font-weight: normal;
-  padding: 14px 24px;
-  margin-right: 10px;
-  -webkit-border-radius: 6px;
-     -moz-border-radius: 6px;
-          border-radius: 6px;
-}
-.jumbotron .btn-large small {
-  font-size: 14px;
-}
-
-/* Masthead (docs home) */
-.masthead {
-  padding-top: 36px;
-  margin-bottom: 72px;
-}
-.masthead h1,
-.masthead p {
-  text-align: center;
-}
-.masthead h1 {
-  margin-bottom: 18px;
-}
-.masthead p {
-  margin-left: 5%;
-  margin-right: 5%;
-  font-size: 30px;
-  line-height: 36px;
-}
-
-
-/* Specific jumbotrons
-------------------------- */
-/* supporting docs pages */
-.subhead {
-  padding-bottom: 0;
-  margin-bottom: 9px;
-}
-.subhead h1 {
-  font-size: 54px;
-}
-
-/* Subnav */
-.subnav {
-  width: 100%;
-  height: 36px;
-  background-color: #eeeeee; /* Old browsers */
-  background-repeat: repeat-x; /* Repeat the gradient */
-  background-image: -moz-linear-gradient(top, #f5f5f5 0%, #eeeeee 100%); /* FF3.6+ */
-  background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f5f5f5), color-stop(100%,#eeeeee)); /* Chrome,Safari4+ */
-  background-image: -webkit-linear-gradient(top, #f5f5f5 0%,#eeeeee 100%); /* Chrome 10+,Safari 5.1+ */
-  background-image: -ms-linear-gradient(top, #f5f5f5 0%,#eeeeee 100%); /* IE10+ */
-  background-image: -o-linear-gradient(top, #f5f5f5 0%,#eeeeee 100%); /* Opera 11.10+ */
-  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f5f5f5', endColorstr='#eeeeee',GradientType=0 ); /* IE6-9 */
-  background-image: linear-gradient(top, #f5f5f5 0%,#eeeeee 100%); /* W3C */
-  border: 1px solid #e5e5e5;
-  -webkit-border-radius: 4px;
-     -moz-border-radius: 4px;
-          border-radius: 4px;
-}
-.subnav .nav {
-  margin-bottom: 0;
-}
-.subnav .nav > li > a {
-  margin: 0;
-  padding-top:    11px;
-  padding-bottom: 11px;
-  border-left: 1px solid #f5f5f5;
-  border-right: 1px solid #e5e5e5;
-  -webkit-border-radius: 0;
-     -moz-border-radius: 0;
-          border-radius: 0;
-}
-.subnav .nav > .active > a,
-.subnav .nav > .active > a:hover {
-  padding-left: 13px;
-  color: #777;
-  background-color: #e9e9e9;
-  border-right-color: #ddd;
-  border-left: 0;
-  -webkit-box-shadow: inset 0 3px 5px rgba(0,0,0,.05);
-     -moz-box-shadow: inset 0 3px 5px rgba(0,0,0,.05);
-          box-shadow: inset 0 3px 5px rgba(0,0,0,.05);
-}
-.subnav .nav > .active > a .caret,
-.subnav .nav > .active > a:hover .caret {
-  border-top-color: #777;
-}
-.subnav .nav > li:first-child > a,
-.subnav .nav > li:first-child > a:hover {
-  border-left: 0;
-  padding-left: 12px;
-  -webkit-border-radius: 4px 0 0 4px;
-     -moz-border-radius: 4px 0 0 4px;
-          border-radius: 4px 0 0 4px;
-}
-.subnav .nav > li:last-child > a {
-  border-right: 0;
-}
-.subnav .dropdown-menu {
-  -webkit-border-radius: 0 0 4px 4px;
-     -moz-border-radius: 0 0 4px 4px;
-          border-radius: 0 0 4px 4px;
-}
-
-/* Fixed subnav on scroll, but only for 980px and up (sorry IE!) */
-@media (min-width: 980px) {
-  .subnav-fixed {
-    position: fixed;
-    top: 40px;
-    left: 0;
-    right: 0;
-    z-index: 1020; /* 10 less than .navbar-fixed to prevent any overlap */
-    border-color: #d5d5d5;
-    border-width: 0 0 1px; /* drop the border on the fixed edges */
-    -webkit-border-radius: 0;
-       -moz-border-radius: 0;
-            border-radius: 0;
-    -webkit-box-shadow: inset 0 1px 0 #fff, 0 1px 5px rgba(0,0,0,.1);
-       -moz-box-shadow: inset 0 1px 0 #fff, 0 1px 5px rgba(0,0,0,.1);
-            box-shadow: inset 0 1px 0 #fff, 0 1px 5px rgba(0,0,0,.1);
-    filter: progid:DXImageTransform.Microsoft.gradient(enabled=false); /* IE6-9 */
-  }
-  .subnav-fixed .nav {
-    width: 938px;
-    margin: 0 auto;
-    padding: 0 1px;
-  }
-  .subnav .nav > li:first-child > a,
-  .subnav .nav > li:first-child > a:hover {
-    -webkit-border-radius: 0;
-       -moz-border-radius: 0;
-            border-radius: 0;
-  }
-}
-
-
-/* Quick links
--------------------------------------------------- */
-.bs-links {
-  margin: 36px 0;
-}
-.quick-links {
-  min-height: 30px;
-  margin: 0;
-  padding: 5px 20px;
-  list-style: none;
-  text-align: center;
-  overflow: hidden;
-}
-.quick-links:first-child {
-  min-height: 0;
-}
-.quick-links li {
-  display: inline;
-  margin: 0 8px;
-  color: #999;
-}
-.quick-links .github-btn,
-.quick-links .tweet-btn,
-.quick-links .follow-btn {
-  position: relative;
-  top: 5px;
-}
-
-
-/* Marketing section of Overview
--------------------------------------------------- */
-.marketing .row {
-  margin-bottom: 9px;
-}
-.marketing h1 {
-  margin: 36px 0 27px;
-  font-size: 40px;
-  font-weight: 300;
-  text-align: center;
-}
-.marketing h2,
-.marketing h3 {
-  font-weight: 300;
-}
-.marketing h2 {
-  font-size: 22px;
-}
-.marketing p {
-  margin-right: 10px;
-}
-.marketing .bs-icon {
-  float: left;
-  margin: 7px 10px 0 0;
-  opacity: .8;
-}
-.marketing .small-bs-icon {
-  float: left;
-  margin: 4px 5px 0 0;
-}
-
-
-
-/* Footer
--------------------------------------------------- */
-.footer {
-  margin-top: 45px;
-  padding: 35px 0 36px;
-  border-top: 1px solid #e5e5e5;
-}
-.footer p {
-  margin-bottom: 0;
-  color: #555;
-}
-
-
-
-/* Special grid styles
--------------------------------------------------- */
-.show-grid {
-  margin-top: 10px;
-  margin-bottom: 20px;
-}
-.show-grid [class*="span"] {
-  background-color: #eee;
-  text-align: center;
-  -webkit-border-radius: 3px;
-     -moz-border-radius: 3px;
-          border-radius: 3px;
-  min-height: 30px;
-  line-height: 30px;
-}
-.show-grid:hover [class*="span"] {
-  background: #ddd;
-}
-.show-grid .show-grid {
-  margin-top: 0;
-  margin-bottom: 0;
-}
-.show-grid .show-grid [class*="span"] {
-  background-color: #ccc;
-}
-
-
-/* Render mini layout previews
--------------------------------------------------- */
-.mini-layout {
-  border: 1px solid #ddd;
-  -webkit-border-radius: 6px;
-     -moz-border-radius: 6px;
-          border-radius: 6px;
-  -webkit-box-shadow: 0 1px 2px rgba(0,0,0,.075);
-     -moz-box-shadow: 0 1px 2px rgba(0,0,0,.075);
-          box-shadow: 0 1px 2px rgba(0,0,0,.075);
-}
-.mini-layout {
-  height: 240px;
-  margin-bottom: 20px;
-  padding: 9px;
-}
-.mini-layout div {
-  -webkit-border-radius: 3px;
-     -moz-border-radius: 3px;
-          border-radius: 3px;
-}
-.mini-layout .mini-layout-body {
-  background-color: #dceaf4;
-  margin: 0 auto;
-  width: 70%;
-  height: 240px;
-}
-.mini-layout.fluid .mini-layout-sidebar,
-.mini-layout.fluid .mini-layout-header,
-.mini-layout.fluid .mini-layout-body {
-  float: left;
-}
-.mini-layout.fluid .mini-layout-sidebar {
-  background-color: #bbd8e9;
-  width: 20%;
-  height: 240px;
-}
-.mini-layout.fluid .mini-layout-body {
-  width: 77.5%;
-  margin-left: 2.5%;
-}
-
-
-/* Popover docs
--------------------------------------------------- */
-.popover-well {
-  min-height: 160px;
-}
-.popover-well .popover {
-  display: block;
-}
-.popover-well .popover-wrapper {
-  width: 50%;
-  height: 160px;
-  float: left;
-  margin-left: 55px;
-  position: relative;
-}
-.popover-well .popover-menu-wrapper {
-  height: 80px;
-}
-.large-bird {
-  margin: 5px 0 0 310px;
-  opacity: .1;
-}
-
-
-/* Download page
--------------------------------------------------- */
-.download .page-header {
-  margin-top: 36px;
-}
-.page-header .toggle-all {
-  margin-top: 5px;
-}
-
-/* Space out h3s when following a section */
-.download h3 {
-  margin-bottom: 5px;
-}
-.download-builder input + h3,
-.download-builder .checkbox + h3 {
-  margin-top: 9px;
-}
-
-/* Fields for variables */
-.download-builder input[type=text] {
-  margin-bottom: 9px;
-  font-family: Menlo, Monaco, "Courier New", monospace;
-  font-size: 12px;
-  color: #d14;
-}
-.download-builder input[type=text]:focus {
-  background-color: #fff;
-}
-
-/* Custom, larger checkbox labels */
-.download .checkbox {
-  padding: 6px 10px 6px 25px;
-  color: #555;
-  background-color: #f9f9f9;
-  -webkit-border-radius: 3px;
-     -moz-border-radius: 3px;
-          border-radius: 3px;
-  cursor: pointer;
-}
-.download .checkbox:hover {
-  color: #333;
-  background-color: #f5f5f5;
-}
-.download .checkbox small {
-  font-size: 12px;
-  color: #777;
-}
-
-/* Variables section */
-#variables label {
-  margin-bottom: 0;
-}
-
-/* Giant download button */
-.download-btn {
-  margin: 36px 0 108px;
-}
-#download p,
-#download h4 {
-  max-width: 50%;
-  margin: 0 auto;
-  color: #999;
-  text-align: center;
-}
-#download h4 {
-  margin-bottom: 0;
-}
-#download p {
-  margin-bottom: 18px;
-}
-.download-btn .btn {
-  display: block;
-  width: auto;
-  padding: 19px 24px;
-  margin-bottom: 27px;
-  font-size: 30px;
-  line-height: 1;
-  text-align: center;
-  -webkit-border-radius: 6px;
-     -moz-border-radius: 6px;
-          border-radius: 6px;
-}
-
-
-
-/* Color swatches on LESS docs page
--------------------------------------------------- */
-/* Sets the width of the td */
-.swatch-col {
-  width: 30px;
-}
-/* Le swatch */
-.swatch {
-  display: inline-block;
-  width: 30px;
-  height: 20px;
-  margin: -6px 0;
-  -webkit-border-radius: 3px;
-     -moz-border-radius: 3px;
-          border-radius: 3px;
-}
-/* For white swatches, give a border */
-.swatch-bordered {
-  width: 28px;
-  height: 18px;
-  border: 1px solid #eee;
-}
-
-
-/* Misc
--------------------------------------------------- */
-
-/* Make tables spaced out a bit more */
-h2 + table,
-h3 + table,
-h4 + table,
-h2 + .row {
-  margin-top: 5px;
-}
-
-/* Example sites showcase */
-.example-sites img {
-  max-width: 100%;
-  margin: 0 auto;
-}
-.marketing-byline {
-  margin: -18px 0 27px;
-  font-size: 18px;
-  font-weight: 300;
-  line-height: 24px;
-  color: #999;
-  text-align: center;
-}
-
-.scrollspy-example {
-  height: 200px;
-  overflow: auto;
-  position: relative;
-}
-
-/* Remove bottom margin on example forms in wells */
-form.well {
-  padding: 14px;
-}
-
-/* Tighten up spacing */
-.well hr {
-  margin: 18px 0;
-}
-
-/* Fake the :focus state to demo it */
-.focused {
-  border-color: rgba(82,168,236,.8);
-  -webkit-box-shadow: inset 0 1px 3px rgba(0,0,0,.1), 0 0 8px rgba(82,168,236,.6);
-     -moz-box-shadow: inset 0 1px 3px rgba(0,0,0,.1), 0 0 8px rgba(82,168,236,.6);
-          box-shadow: inset 0 1px 3px rgba(0,0,0,.1), 0 0 8px rgba(82,168,236,.6);
-  outline: 0;
-}
-
-/* For input sizes, make them display block */
-.docs-input-sizes select,
-.docs-input-sizes input[type=text] {
-  display: block;
-  margin-bottom: 9px;
-}
-
-/* Icons
-------------------------- */
-.the-icons {
-  margin-left: 0;
-  list-style: none;
-}
-.the-icons i:hover {
-  background-color: rgba(255,0,0,.25);
-}
-
-/* Eaxmples page
-------------------------- */
-.bootstrap-examples .thumbnail {
-  margin-bottom: 9px;
-  background-color: #fff;
-}
-
-/* Responsive table
-------------------------- */
-.responsive-utilities th small {
-  display: block;
-  font-weight: normal;
-  color: #999;
-}
-.responsive-utilities tbody th {
-  font-weight: normal;
-}
-.responsive-utilities td {
-  text-align: center;
-}
-.responsive-utilities td.is-visible {
-  color: #468847;
-  background-color: #dff0d8 !important;
-}
-.responsive-utilities td.is-hidden {
-  color: #ccc;
-  background-color: #f9f9f9 !important;
-}
-
-/* Responsive tests
-------------------------- */
-.responsive-utilities-test {
-  margin-top: 5px;
-  margin-left: 0;
-  list-style: none;
-  overflow: hidden; /* clear floats */
-}
-.responsive-utilities-test li {
-  position: relative;
-  float: left;
-  width: 25%;
-  height: 43px;
-  font-size: 14px;
-  font-weight: bold;
-  line-height: 43px;
-  color: #999;
-  text-align: center;
-  border: 1px solid #ddd;
-  -webkit-border-radius: 4px;
-     -moz-border-radius: 4px;
-          border-radius: 4px;
-}
-.responsive-utilities-test li + li {
-  margin-left: 10px;
-}
-.responsive-utilities-test span {
-  position: absolute;
-  top:    -1px;
-  left:   -1px;
-  right:  -1px;
-  bottom: -1px;
-  -webkit-border-radius: 4px;
-     -moz-border-radius: 4px;
-          border-radius: 4px;
-}
-.responsive-utilities-test span {
-  color: #468847;
-  background-color: #dff0d8;
-  border: 1px solid #d6e9c6;
-}
-
-
-/* Responsive Docs
--------------------------------------------------- */
-@media (max-width: 480px) {
-
-  /* Reduce padding above jumbotron */
-  body {
-    padding-top: 70px;
-  }
-
-  /* Change up some type stuff */
-  h2 {
-    margin-top: 27px;
-  }
-  h2 small {
-    display: block;
-    line-height: 18px;
-  }
-  h3 {
-    margin-top: 18px;
-  }
-
-  /* icons */
-  .marketing .bs-icon {
-    margin: 0;
-  }
-
-  /* Adjust the jumbotron */
-  .jumbotron h1,
-  .jumbotron p {
-    text-align: center;
-    margin-right: 0;
-  }
-  .jumbotron h1 {
-    font-size: 45px;
-    margin-right: 0;
-  }
-  .jumbotron p {
-    margin-right: 0;
-    margin-left: 0;
-    font-size: 18px;
-    line-height: 24px;
-  }
-  .jumbotron .btn {
-    display: block;
-    font-size: 18px;
-    padding: 10px 14px;
-    margin: 0 auto 10px;
-  }
-  /* Masthead (home page jumbotron) */
-  .masthead {
-    padding-top: 0;
-  }
-
-  /* Don't space out quick links so much */
-  .quick-links {
-    margin: 40px 0 0;
-  }
-  /* hide the bullets on mobile since our horizontal space is limited */
-  .quick-links .divider {
-    display: none;
-  }
-
-  /* center example sites */
-  .example-sites {
-    margin-left: 0;
-  }
-  .example-sites > li {
-    float: none;
-    display: block;
-    max-width: 280px;
-    margin: 0 auto 18px;
-    text-align: center;
-  }
-  .example-sites .thumbnail > img {
-    max-width: 270px;
-  }
-
-  table code {
-    white-space: normal;
-    word-wrap: break-word;
-    word-break: break-all;
-  }
-
-  /* Modal example */
-  .modal-example .modal {
-    position: relative;
-    top: auto;
-    right: auto;
-    bottom: auto;
-    left: auto;
-  }
-
-}
-
-
-@media (max-width: 768px) {
-
-  /* Remove any padding from the body */
-  body {
-    padding-top: 0;
-  }
-
-  /* Jumbotron buttons */
-  .jumbotron .btn {
-    margin-bottom: 10px;
-  }
-
-  /* Subnav */
-  .subnav {
-    position: static;
-    top: auto;
-    z-index: auto;
-    width: auto;
-    height: auto;
-    background: #fff; /* whole background property since we use a background-image for gradient */
-    -webkit-box-shadow: none;
-       -moz-box-shadow: none;
-            box-shadow: none;
-  }
-  .subnav .nav > li {
-    float: none;
-  }
-  .subnav .nav > li > a {
-    border: 0;
-  }
-  .subnav .nav > li + li > a {
-    border-top: 1px solid #e5e5e5;
-  }
-  .subnav .nav > li:first-child > a,
-  .subnav .nav > li:first-child > a:hover {
-      -webkit-border-radius: 4px 4px 0 0;
-         -moz-border-radius: 4px 4px 0 0;
-              border-radius: 4px 4px 0 0;
-  }
-
-  /* Popovers */
-  .large-bird {
-    display: none;
-  }
-  .popover-well .popover-wrapper {
-    margin-left: 0;
-  }
-
-  /* Space out the show-grid examples */
-  .show-grid [class*="span"] {
-    margin-bottom: 5px;
-  }
-
-  /* Unfloat the back to top link in footer */
-  .footer .pull-right {
-    float: none;
-  }
-  .footer p {
-    margin-bottom: 9px;
-  }
-
-}
-
-
-@media (min-width: 480px) and (max-width: 768px) {
-
-  /* Scale down the jumbotron content */
-  .jumbotron h1 {
-    font-size: 54px;
-  }
-  .jumbotron p {
-    margin-right: 0;
-    margin-left: 0;
-  }
-
-}
-
-
-@media (min-width: 768px) and (max-width: 980px) {
-
-  /* Remove any padding from the body */
-  body {
-    padding-top: 0;
-  }
-
-  /* Scale down the jumbotron content */
-  .jumbotron h1 {
-    font-size: 72px;
-  }
-
-}
-
-
-@media (max-width: 980px) {
-
-  /* Unfloat brand */
-  .navbar-fixed-top .brand {
-    float: left;
-    margin-left: 0;
-    padding-left: 10px;
-    padding-right: 10px;
-  }
-
-  /* Inline-block quick links for more spacing */
-  .quick-links li {
-    display: inline-block;
-    margin: 5px;
-  }
-
-}
-
-
-/* LARGE DESKTOP SCREENS */
-@media (min-width: 1210px) {
-
-  /* Update subnav container */
-  .subnav-fixed .nav {
-    width: 1168px; /* 2px less to account for left/right borders being removed when in fixed mode */
-  }
-
-}
-
-
-/* Browser */
-
-/*
- * Base Layout
- */
-.chrome div {
-	cursor: default;
-}
-
-.browser {
-	font-family: "Lucida Grande", "Lucida Sans Unicode", Arial;
-	width: 900px;
-	margin: 0 auto;
-	position: relative;
-	text-shadow: 0px 1px 0px rgba(255, 255, 255, 0.5);
-	border: 1px solid rgba(0, 0, 0, 0.4);
-	background-color: .969696;
-	-webkit-border-top-left-radius: 5px;
-	-webkit-border-top-right-radius: 5px;
-	-webkit-box-shadow: 0px 5px 40px rgba(0, 0, 0, 0.4);
-}
-
-.chrome {
-	height: 71px;
-	position: relative;
-	background-image: -webkit-gradient(linear, left top, left bottom,
-			from(rgb(226, 226, 226)),
-			color-stop(0.02, rgb(201, 201, 201)),
-			color-stop(0.98, rgb(167, 167, 167)),
-			to(rgb(201, 201, 201))
-		);
-	border-bottom: 1px solid rgb(105, 105, 105);
-	-webkit-border-top-left-radius: 5px;
-	-webkit-border-top-right-radius: 5px;
-	-webkit-user-select: none;
-}
-
-/* Nullify any <a>'s in the chrome */
-.chrome a {
-	color: rgb(0, 0, 0);
-	text-decoration: none;
-}
-
-.chrome a:hover {
-	color: rgb(255, 255, 255);
-	cursor: default;
-}
-
-.viewport {
-	overflow: auto;
-	padding: 8px;
-	height: 600px;
-	font-family: serif;
-	text-shadow: 0px 0px 0px transparent;
-	background-color: rgba(255, 255, 255, 1);
-}
-
-/*
- * Window
- */
-.window-title {
-	width: 45%;
-	margin: 0 auto;
-	font-size: 13px;
-	left: 48%;
-	top: 3px;
-	position: absolute;
-}
-
-.window-controls {
-	width: 56px;
-	position: absolute;
-	top: 4px;
-	left: 8px;
-}
-
-.window-controls div {
-	width: 12px;
-	height: 12px;
-	float: left;
-	margin-right: 7px;
-	color: rgba(67, 74, 87, 0);
-	background-color: rgb(134, 139, 146);
-	border: 1px solid rgb(84, 93, 109);
-	background-image: -webkit-gradient(radial, 50% 2, 1, 50% 1, 3, from(rgba(255,255,255,0.8)), to(rgba(255,255,255,0)));
-	-webkit-border-radius: 20px;
-	-webkit-box-shadow: 0px 1px 0px rgb(226, 226, 226);
-}
-
-.window-controls div:last-child {
-	margin-right: 0;
-}
-
-.window-controls div:active {
-	background-color: rgb(84, 88, 93);
-}
-
-.window-controls div:active span {
-	opacity: 0.7;
-}
-
-.window-controls span {
-	width: 12px;
-	height: 12px;
-	position: absolute;
-	font-family: "Lithos Pro";
-	font-size: 12px;
-	font-weight: bold;
-	line-height: 15px;
-	text-align: center;
-	color: rgba(0, 0, 0, 0);
-	text-shadow: none;
-	text-align: center;
-	-webkit-border-radius: 20px;
-	z-index: 10;
-	background-image: -webkit-gradient(radial,
-			6 50%, 7,
-			6 60%, 5,
-			from(rgba(0, 0, 0, 0.5)),
-			to(rgba(0, 0, 0, 0))
-		),
-	 -webkit-gradient(radial,
-			6 80%, 8,
-			6 80%, 2,
-			from(rgba(225, 225, 225, 0)),
-			to(rgba(255, 255, 255, 0.8))
-		);
-}
-
-.window-controls:hover span {
-	color: rgba(67, 74, 87, 1)
-}
-
-.close-window span {
-	font-size: 10px;
-}
-
-.minimize-window span {
-	font-family: "Helvetica";
-	font-size: 23px;
-	line-height: 10px;
-	font-weight: normal;
-}
-
-.expand-window span {
-	font-size: 15px;
-	line-height: 12px;
-}
-
-/*
- * The actual interface area
- */
-.interface {
-	width: 98%;
-	position: absolute;
-	top: 24px;
-	left: 8px;
-}
-
-/* Bookmark Button */
-.bookmark {
-	width: 28px;
-	left: 62px;
-	position: absolute;
-	font-family: "Myriad Pro";
-	font-size: 20.25px;
-	line-height: 22px;
-	text-align: center;
-	font-weight: bold;
-	-webkit-border-top-left-radius: 4px;
-	-webkit-border-bottom-left-radius: 4px;
-}
-
-.chrome input[type="text"],
-.chrome input[type="search"] {
-	height: 20px;
-	padding: 0 4px;
-	position: absolute;
-	font-size: 13px;
-	line-height: 10px;
-	border: 1px solid rgb(61, 61, 61);
-	border-bottom-color: rgb(114, 114, 114);
-	border-left-color: rgb(58, 58, 58);
-	border-right-color: rgb(58, 58, 58);
-	background-image: -webkit-gradient(linear, left top, left bottom, from(rgb(220, 220, 220)), to(rgb(255, 255, 255)), color-stop(0.1, rgb(255, 255, 255)));
-	-webkit-box-shadow: 0px 1px 0px rgba(225, 225, 225, 0.7);
-}
-
-input.url {
-	width: 578px;
-	left: 90px;
-	-webkit-border-top-right-radius: 3px;
-	-webkit-border-bottom-right-radius: 3px;
-}
-
-.chrome input[type="search"] {
-	width: 195px;
-	height: 23px;
-	left: 78%;
-	font-size: 16px;
-	-webkit-border-radius: 20px;
-	/*-webkit-appearance: none;*/
-}
-
-/*
- * Back/Forward Buttons
- */
-.back-forward {
-	width: 53px;
-	position: absolute;
-	text-align: center;
-}
-
-.back-forward div {
-	width: 25px;
-}
-
-.button-back {
-	float: left;
-	-webkit-border-top-left-radius: 4px;
-	-webkit-border-bottom-left-radius: 4px;
-}
-
-.back-forward span {
-	left: 7px;
-	top: 3px;
-}
-
-.button-back span {
-	-webkit-transform: rotate(-90deg);
-	text-shadow: -1px 0px 0px rgba(255, 255, 255, 0.7);
-}
-
-.button-forward {
-	left: 26px;
-	float: right;
-	border-left: none;
-	-webkit-border-top-right-radius: 4px;
-	-webkit-border-bottom-right-radius: 4px;
-}
-
-.button-forward span {
-	-webkit-transform: rotate(90deg);
-	text-shadow: 1px 0px 0px rgba(255, 255, 255, 0.7);
-}
-
-.button:active {
-	background-image: -webkit-gradient(linear, left top, left bottom,
-			from(rgba(0, 0, 0, 0.7)),
-			color-stop(0.2, rgba(0, 0, 0, 0.1)),
-			color-stop(0.75, rgba(0, 0, 0, 0.1)),
-			to(rgba(0, 0, 0, 0.3))
-		),
-	-webkit-gradient(linear, left top, right top,
-			from(rgba(0, 0, 0, 0.4)),
-			color-stop(0.2, rgba(0, 0, 0, 0.2)),
-			color-stop(0.8, rgba(0, 0, 0, 0.2)),
-			to(rgba(0, 0, 0, 0.5))
-		),
-		-webkit-gradient(linear, left top, left bottom, from(rgb(253, 253, 253)), to(rgb(169, 169, 169)));
-}
-
-.button,
-.disabled:active {
-	height: 20px;
-	position: absolute;
-	border: 1px solid rgb(61, 61, 61);
-	background-image: -webkit-gradient(linear, left top, left bottom,
-			from(rgb(253, 253, 253)),
-			to(rgb(169, 169, 169))
-		);
-	-webkit-box-shadow: 0px 1px 0px rgba(225, 225, 225, 0.7);
-}
-
-.button span {
-	position: absolute;
-	font-size: 11px;
-}
-
-.disabled {
-	color: rgba(0, 0, 0, 0.4);
-}
-
-/* Reload Button */
-.reload {
-	-webkit-transform: rotate(50deg);
-	position: absolute;
-	z-index: 999;
-	top: 6px;
-	left: 657px;
-	width: 28px;
-	font-family: Menlo, Arial;
-	font-size: 21px;
-	font-weight: 500;
-	line-height:1.05;
-	border:none;
-	background:transparent;
-	color:#555;
-}
-
-	.reload:active {
-		color: #444;
-	}
-
-/*
- * Bookmarks Bar
- */
-.bookmarks-bar {
-	width: 90%;
-	top: 27px;
-	left: -3px;
-	position: absolute;
-}
-
-.bookmarks-bar ul li {
-	padding: 1px 7px;
-	margin: 0 1px 0 0;
-	float: left;
-	list-style-type: none;
-	font-size: 11px;
-	font-weight: 600;
-	line-height: 14px;
-	-webkit-border-radius: 10px;
-}
-
-.bookmarks-bar ul {
-	margin: 0;
-	padding: 0;
-}
-
-.bookmarks-bar ul li span {
-	font-size: 7px;
-}
-
-.bookmarks-bar ul li:hover,
-.bookmarks-bar ul li:hover a {
-	text-shadow: 0px 1px 0px rgb(0, 0, 0);
-	color: rgb(255, 255, 255) !important;
-}
-
-.bookmarks-bar ul li:hover {
-	background: gray;
-}
-
-.bookmarks-bar ul li:active {
-	text-shadow: 0px 1px 0px rgb(0, 0, 0);
-	color: rgb(255, 255, 255);
-	background: rgba(0, 0, 0, 0.6);
-	-webkit-box-shadow: 0px 1px 0px rgba(255, 255, 255, 0.5);
+	margin-top : 60px;
 }
+article {
+  padding-top: 30px;
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/wicket/blob/06f1d79f/wicket-experimental/wicket-examples-parent/wicket-examples-jar/src/main/java/org/apache/wicket/examples/base/examples.js
----------------------------------------------------------------------
diff --git a/wicket-experimental/wicket-examples-parent/wicket-examples-jar/src/main/java/org/apache/wicket/examples/base/examples.js b/wicket-experimental/wicket-examples-parent/wicket-examples-jar/src/main/java/org/apache/wicket/examples/base/examples.js
index 0213246..dd5acb6 100644
--- a/wicket-experimental/wicket-examples-parent/wicket-examples-jar/src/main/java/org/apache/wicket/examples/base/examples.js
+++ b/wicket-experimental/wicket-examples-parent/wicket-examples-jar/src/main/java/org/apache/wicket/examples/base/examples.js
@@ -1,184 +1,15 @@
-// NOTICE!! DO NOT USE ANY OF THIS JAVASCRIPT
-// IT'S ALL JUST JUNK FOR OUR DOCS!
-// ++++++++++++++++++++++++++++++++++++++++++
-
 !function ($) {
 
   $(function(){
 
-    // Disable certain links in docs
-    $('section [href^=#]').click(function (e) {
-      e.preventDefault()
-    })
-
-    // make code pretty
-    window.prettyPrint && prettyPrint()
-
-    // add-ons
-    $('.add-on :checkbox').on('click', function () {
-      var $this = $(this)
-        , method = $this.attr('checked') ? 'addClass' : 'removeClass'
-      $(this).parents('.add-on')[method]('active')
-    })
-
-    // position static twipsies for components page
-    if ($(".twipsies a").length) {
-      $(window).on('load resize', function () {
-        $(".twipsies a").each(function () {
-          $(this)
-            .tooltip({
-              placement: $(this).attr('title')
-            , trigger: 'manual'
-            })
-            .tooltip('show')
-          })
-      })
-    }
-
-    // add tipsies to grid for scaffolding
-    if ($('#grid-system').length) {
-      $('#grid-system').tooltip({
-          selector: '.show-grid > div'
-        , title: function () { return $(this).width() + 'px' }
-      })
-    }
-
-    // fix sub nav on scroll
-    var $win = $(window)
-      , $nav = $('.subnav')
-      , navTop = $('.subnav').length && $('.subnav').offset().top - 40
-      , isFixed = 0
-
-    processScroll()
-
-    // hack sad times - holdover until rewrite for 2.1
-    $nav.on('click', function () {
-      if (!isFixed) setTimeout(function () {  $win.scrollTop($win.scrollTop() - 47) }, 10)
-    })
+    var $window = $(window)
 
-    $win.on('scroll', processScroll)
-
-    function processScroll() {
-      var i, scrollTop = $win.scrollTop()
-      if (scrollTop >= navTop && !isFixed) {
-        isFixed = 1
-        $nav.addClass('subnav-fixed')
-      } else if (scrollTop <= navTop && isFixed) {
-        isFixed = 0
-        $nav.removeClass('subnav-fixed')
+    // side bar
+    $('.bs-docs-sidenav').affix({
+      offset: {
+        top: function () { return $window.width() <= 980 ? 290 : 210 }
+      , bottom: 270
       }
-    }
-
-    // tooltip demo
-    $('.tooltip-demo.well').tooltip({
-      selector: "a[rel=tooltip]"
-    })
-
-    $('.tooltip-test').tooltip()
-    $('.popover-test').popover()
-
-    // popover demo
-    $("a[rel=popover]")
-      .popover()
-      .click(function(e) {
-        e.preventDefault()
-      })
-
-    // button state demo
-    $('#fat-btn')
-      .click(function () {
-        var btn = $(this)
-        btn.button('loading')
-        setTimeout(function () {
-          btn.button('reset')
-        }, 3000)
-      })
-
-    // carousel demo
-    $('#myCarousel').carousel()
-
-    // javascript build logic
-    var inputsComponent = $("#components.download input")
-      , inputsPlugin = $("#plugins.download input")
-      , inputsVariables = $("#variables.download input")
-
-    // toggle all plugin checkboxes
-    $('#components.download .toggle-all').on('click', function (e) {
-      e.preventDefault()
-      inputsComponent.attr('checked', !inputsComponent.is(':checked'))
-    })
-
-    $('#plugins.download .toggle-all').on('click', function (e) {
-      e.preventDefault()
-      inputsPlugin.attr('checked', !inputsPlugin.is(':checked'))
-    })
-
-    $('#variables.download .toggle-all').on('click', function (e) {
-      e.preventDefault()
-      inputsVariables.val('')
-    })
-
-    // request built javascript
-    $('.download-btn').on('click', function () {
-
-      var css = $("#components.download input:checked")
-            .map(function () { return this.value })
-            .toArray()
-        , js = $("#plugins.download input:checked")
-            .map(function () { return this.value })
-            .toArray()
-        , vars = {}
-        , img = ['glyphicons-halflings.png', 'glyphicons-halflings-white.png']
-
-    $("#variables.download input")
-      .each(function () {
-        $(this).val() && (vars[ $(this).prev().text() ] = $(this).val())
-      })
-
-      $.ajax({
-        type: 'POST'
-      , url: /\?dev/.test(window.location) ? 'http://localhost:3000' : 'http://bootstrap.herokuapp.com'
-      , dataType: 'jsonpi'
-      , params: {
-          js: js
-        , css: css
-        , vars: vars
-        , img: img
-      }
-      })
-    })
+    });
   })
-
-// Modified from the original jsonpi https://github.com/benvinegar/jquery-jsonpi
-$.ajaxTransport('jsonpi', function(opts, originalOptions, jqXHR) {
-  var url = opts.url;
-
-  return {
-    send: function(_, completeCallback) {
-      var name = 'jQuery_iframe_' + jQuery.now()
-        , iframe, form
-
-      iframe = $('<iframe>')
-        .attr('name', name)
-        .appendTo('head')
-
-      form = $('<form>')
-        .attr('method', opts.type) // GET or POST
-        .attr('action', url)
-        .attr('target', name)
-
-      $.each(opts.params, function(k, v) {
-
-        $('<input>')
-          .attr('type', 'hidden')
-          .attr('name', k)
-          .attr('value', typeof v == 'string' ? v : JSON.stringify(v))
-          .appendTo(form)
-      })
-
-      form.appendTo('body').submit()
-    }
-  }
-})
-
-}(window.jQuery);
+}(window.jQuery)
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/wicket/blob/06f1d79f/wicket-experimental/wicket-examples-parent/wicket-examples-jar/src/main/java/org/apache/wicket/examples/base/markdown/MarkdownLabel.java
----------------------------------------------------------------------
diff --git a/wicket-experimental/wicket-examples-parent/wicket-examples-jar/src/main/java/org/apache/wicket/examples/base/markdown/MarkdownLabel.java b/wicket-experimental/wicket-examples-parent/wicket-examples-jar/src/main/java/org/apache/wicket/examples/base/markdown/MarkdownLabel.java
new file mode 100644
index 0000000..ddd061f
--- /dev/null
+++ b/wicket-experimental/wicket-examples-parent/wicket-examples-jar/src/main/java/org/apache/wicket/examples/base/markdown/MarkdownLabel.java
@@ -0,0 +1,127 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.wicket.examples.base.markdown;
+
+import org.apache.wicket.markup.ComponentTag;
+import org.apache.wicket.markup.MarkupStream;
+import org.apache.wicket.markup.html.basic.Label;
+import org.apache.wicket.model.IModel;
+import org.apache.wicket.util.convert.IConverter;
+
+import com.petebevin.markdown.MarkdownProcessor;
+
+public class MarkdownLabel extends Label
+{
+	private static final long serialVersionUID = 1L;
+
+	public MarkdownLabel(String id)
+	{
+		super(id);
+	}
+
+	public MarkdownLabel(String id, IModel<?> model)
+	{
+		super(id, model);
+	}
+
+	@Override
+	protected void onInitialize()
+	{
+		super.onInitialize();
+		setEscapeModelStrings(false);
+	}
+
+	@Override
+	public void onComponentTagBody(MarkupStream markupStream, ComponentTag openTag)
+	{
+		String article = getModelObjectAsUnescapedString();
+
+		MarkdownProcessor processor = new MarkdownProcessor();
+		String markup;
+		String text = processor.markdown(article);
+
+		text = processLiquidTags(text);
+
+		replaceComponentTagBody(markupStream, openTag, text);
+	}
+
+	private String processLiquidTags(String text)
+	{
+		String markup;
+		StringBuilder sb = new StringBuilder();
+
+		int previousStart = 0;
+		int start = text.indexOf("{% highlight");
+		while (start > 0)
+		{
+			int end = text.indexOf("{% endhighlight %}", start) + 18;
+			sb.append(text.substring(previousStart, start));
+
+			String codeblock = text.substring(start, end);
+
+			codeblock = escapeTags(codeblock);
+			sb.append(codeblock);
+			sb.append("\n");
+
+			previousStart = end;
+			start = text.indexOf("{% highlight", end);
+		}
+		if (previousStart < text.length())
+			sb.append(text.substring(previousStart));
+
+		markup = sb.toString();
+		return markup;
+	}
+
+	@SuppressWarnings({ "rawtypes", "unchecked" })
+	private String getModelObjectAsUnescapedString()
+	{
+		Object modelObject = getDefaultModelObject();
+		if (modelObject != null)
+		{
+			// Get converter
+			final Class<?> objectClass = modelObject.getClass();
+
+			final IConverter converter = getConverter(objectClass);
+
+			// Model string from property
+			final String modelString = converter.convertToString(modelObject, getLocale());
+
+			return modelString;
+		}
+		return null;
+	}
+
+	private String escapeTags(String codeblock)
+	{
+		codeblock = codeblock.replaceAll("\\{\\% highlight (.+) \\%\\}",
+			"<pre class=\"prettyprint linenums\" lang=\"$1\">");
+		codeblock = codeblock.replaceAll("\\{\\% endhighlight \\%\\}", "</pre>");
+
+		int start = codeblock.indexOf(">") + 1;
+		int end = codeblock.indexOf("</pre>");
+		String result = codeblock.substring(start, end);
+		result = result.replaceAll("\n\\ {4}", "\n");
+		if (!codeblock.contains("\"java\""))
+		{
+			result = result.replaceAll("&", "&amp;");
+			result = result.replaceAll("<", "&lt;");
+			result = result.replaceAll(">", "&gt;");
+		}
+		return codeblock.substring(0, start) + result + "</pre>";
+	}
+}

http://git-wip-us.apache.org/repos/asf/wicket/blob/06f1d79f/wicket-experimental/wicket-examples-parent/wicket-examples-jar/src/main/java/org/apache/wicket/examples/base/prettify/Prettify.java
----------------------------------------------------------------------
diff --git a/wicket-experimental/wicket-examples-parent/wicket-examples-jar/src/main/java/org/apache/wicket/examples/base/prettify/Prettify.java b/wicket-experimental/wicket-examples-parent/wicket-examples-jar/src/main/java/org/apache/wicket/examples/base/prettify/Prettify.java
index 28bd295..50de977 100644
--- a/wicket-experimental/wicket-examples-parent/wicket-examples-jar/src/main/java/org/apache/wicket/examples/base/prettify/Prettify.java
+++ b/wicket-experimental/wicket-examples-parent/wicket-examples-jar/src/main/java/org/apache/wicket/examples/base/prettify/Prettify.java
@@ -6,30 +6,36 @@ import org.apache.wicket.markup.head.CssHeaderItem;
 import org.apache.wicket.markup.head.HeaderItem;
 import org.apache.wicket.markup.head.IHeaderResponse;
 import org.apache.wicket.markup.head.JavaScriptHeaderItem;
+import org.apache.wicket.markup.head.OnDomReadyHeaderItem;
 import org.apache.wicket.request.resource.CssResourceReference;
 import org.apache.wicket.request.resource.JavaScriptResourceReference;
 
-public class Prettify extends JavaScriptResourceReference {
+public class Prettify extends JavaScriptResourceReference
+{
 	private static final long serialVersionUID = 1L;
 
 	private static final Prettify instance = new Prettify();
 
-	public static Prettify get() {
+	public static Prettify get()
+	{
 		return instance;
 	}
 
-	public static void renderHead(IHeaderResponse response) {
+	public static void renderHead(IHeaderResponse response)
+	{
 		response.render(JavaScriptHeaderItem.forReference(Prettify.get()));
+		response.render(OnDomReadyHeaderItem.forScript("prettyPrint();"));
 	}
 
-	private Prettify() {
+	private Prettify()
+	{
 		super(Prettify.class, "prettify.js");
 	}
 
 	@Override
-	public Iterable<? extends HeaderItem> getDependencies() {
-		return Arrays.asList(CssHeaderItem
-				.forReference(new CssResourceReference(Prettify.class,
-						"prettify.css")));
+	public Iterable<? extends HeaderItem> getDependencies()
+	{
+		return Arrays.asList(CssHeaderItem.forReference(new CssResourceReference(Prettify.class,
+			"prettify.css")));
 	}
 }

http://git-wip-us.apache.org/repos/asf/wicket/blob/06f1d79f/wicket-experimental/wicket-examples-parent/wicket-examples-jar/src/main/java/org/apache/wicket/examples/components/ComponentExamplesPage.html
----------------------------------------------------------------------
diff --git a/wicket-experimental/wicket-examples-parent/wicket-examples-jar/src/main/java/org/apache/wicket/examples/components/ComponentExamplesPage.html b/wicket-experimental/wicket-examples-parent/wicket-examples-jar/src/main/java/org/apache/wicket/examples/components/ComponentExamplesPage.html
index 037fef3..1afc980 100644
--- a/wicket-experimental/wicket-examples-parent/wicket-examples-jar/src/main/java/org/apache/wicket/examples/components/ComponentExamplesPage.html
+++ b/wicket-experimental/wicket-examples-parent/wicket-examples-jar/src/main/java/org/apache/wicket/examples/components/ComponentExamplesPage.html
@@ -1,144 +1,28 @@
 <!DOCTYPE html>
-<html>
+<html xmlns:wicket>
 <head>
 	<meta charset="utf-8" />
 	<title>Apache Wicket Examples</title>
 </head>
-<body data-spy="scroll" data-target=".subnav">
-	<div wicket:id="topnavbar">
-	</div>
-	<div class="container">
-		<header class="jumbotron subhead">
+<body data-spy="scroll" data-target=".bs-docs-sidebar">
+	<div wicket:id="topnavbar"></div>
+	<header class="jumbotron subhead">
+		<div class="container">
 			<h1>Component Reference</h1>
 			<p class="lead">A comprehensive list of Apache Wicket's components.</p>
-			<div class="subnav">
-				<ul class="nav nav-pills">
-					<li><a href="#labels">Labels</a></li>
-					<li><a href="#links">Links</a></li>
-					<li><a href="#lists">Lists</a></li>
-					<li><a href="#forms">Forms</a></li>
-					<li><a href="#feedback">Feedback</a></li>
-					<li><a href="#i18n">Internationalization</a></li>
-					<li><a href="#layout">Layout &amp; Grouping</a></li>
+		</div>
+	</header>
+	<div class="container">
+		<div class="row">
+			<div class="span3 bs-docs-sidebar">
+				<ul class="nav nav-list bs-docs-sidenav affix-top">
+					<li wicket:id="menuitems"><a wicket:id="menuitem" href="#Labels">Labels</a></li>
 				</ul>
 			</div>
-		</header>
-		<section id="labels">
-			<div class="page-header">
-				<h1>Labels <small>Displaying text using labels, MultiLineLabels and escaping markup</small></h1>
-			</div>
-			<div class="row">
-				<div class="span6">
-					<h3>Labels</h3>
-					<p>
-						With <code>Label</code> components you can display dynamic
-						text in your pages and components.
-					</p>
-					<pre class="prettyprint linenums" lang="java">add(new Label&lt;String&gt;("text", "Hello, World!"));</pre>
-					<p>
-						Like all Wicket components, the label needs a counterpart in the markup with the same <code>wicket:id</code>:
-					</p>
-					<pre class="prettyprint linenums" lang="html">&lt;span wicket:id="text"&gt;gets replaced&lt;/span&gt;</pre>
-					<p>
-						Using models you can display fields from your entities in your
-						pages:
-					</p>
-					<pre class="prettyprint linenums" lang="java">Person person = ...;
-add(new Label&lt;String&gt;("text",
-        new PropertyModel&lt;String&gt;(person, "name")));</pre>
-				</div>
-				<div class="span6">
-					<h3>Multi-line text</h3>
-					<p>
-						HTML notoriously strips newlines from your text and renders everything
-						like it is just one line of text. With <code>MultiLineLabel</code> you
-						can render text like it is supposed to look with paragraphs and 
-						line-breaks.
-					</p>
-					<pre class="prettyprint linenums">add(new Label("txt", "Hello,\nWorld!"));
-add(new MultiLineLabel("multi", "Hello,\nWorld!"));</pre>
-					<p>
-						Will render the following markup:
-					</p>
-					<pre class="prettyprint linenums">&lt;p&gt;Hello,
-World!&lt;/p&gt;
-&lt;p&gt;Hello,&lt;br /&gt;World!&lt;/p&gt;</pre>
-					<p>And that will result in text like:</p>
-					<pre class="prettyprint linenums">Hello, World!
-Hello,
-World!</pre>
-					<p>
-						Notice that the first label is displayed on a single line, while the 
-						<code>MultiLineLabel</code> correctly renders the text across multiple
-						lines. 
-				</div>
-				<div class="span6">
-					<h2>Label tags</h2>
-					<p>
-						The associated markup tag can be anything: a <code>&lt;span&gt;</code>, <code>&lt;a&gt;</code>nchor, 
-						<code>&lt;p&gt;</code>aragraph, or even if you don't want a surrounding tag in the final markup 
-						a <code>&lt;wicket:container&gt;</code>. So for example:
-					</p>
-					<pre class="prettyprint linenums" lang="html">&lt;span wicket:id="t1"&gt;&lt;/span&gt;
-&lt;p wicket:id="t2"&gt;&lt;/p&gt;
-&lt;wicket:container wicket:id="t3"&gt;&lt;/wicket:container&gt;</pre>
-					<p>Will render as:</p>
-					<pre class="prettyprint linenums" lang="html">&lt;span&gt;Hello, World!&lt;/span&gt;
-&lt;p&gt;Hello, World!&lt;/p&gt;
-Hello, World!</pre>
-					<p>
-						You can also use <code>label.setRenderBodyOnly(true)</code> to instruct Wicket to
-						just render the body.</p>
-				</div>
-				<div class="span6">
-					<h2>Escaping markup</h2>
-					<p>
-						By default, Wicket escapes all rendered text, preventing JavaScript injection attacks:
-					</p>
-					<pre class="prettyprint linenums">add(new Label("bad", 
-      "&lt;a onclick=\"alert('Booh')\">Click me&lt;/a>"));
-					</pre>
-					<p>
-						Will render safely as the following markup:
-					</p>
-					<pre class="prettyprint linenums">&amp;lt;a onclick=\&amp;quot;alert(&amp;#x27;Booh&amp;#x27;)\&amp;quot;&amp;gt;Click me&amp;lt;/a&amp;gt;</pre>
-					<p>
-						Which displays in the browser as:
-					</p>
-					<pre class="prettyprint linenums">&lt;a onclick=\&quot;alert(&#x27;Booh&#x27;)\&quot;&gt;Click me&lt;/a&gt;</pre>
-				</div>
-			</div>
-		</section>
-		<section id="links">
-			<div class="page-header">
-				<h1>Links <small>Action links, page links, bookmarks and external links</small></h1>
-			</div>
-		</section>
-		<section id="lists">
-			<div class="page-header">
-				<h1>Lists <small>Repeating content with Repeaters, ListViews and DataViews</small></h1>
-			</div>
-		</section>
-		<section id="forms">
-			<div class="page-header">
-				<h1>Forms <small>Form components, fields and other input devices</small></h1>
-			</div>
-		</section>
-		<section id="feedback">
-			<div class="page-header">
-				<h1>Feedback</h1>
-			</div>
-		</section>
-		<section id="i18n">
-			<div class="page-header">
-				<h1>Internationalization</h1>
-			</div>
-		</section>
-		<section id="layout">
-			<div class="page-header">
-				<h1>Layout &amp; grouping <small>Panels, borders, fragments, tabs and markup inheritance</small></h1>
+			<div class="span9">
+				<article wicket:id="articles"></article>
 			</div>
-		</section>
+		</div>
 	</div>
 </body>
 </html>

http://git-wip-us.apache.org/repos/asf/wicket/blob/06f1d79f/wicket-experimental/wicket-examples-parent/wicket-examples-jar/src/main/java/org/apache/wicket/examples/components/ComponentExamplesPage.java
----------------------------------------------------------------------
diff --git a/wicket-experimental/wicket-examples-parent/wicket-examples-jar/src/main/java/org/apache/wicket/examples/components/ComponentExamplesPage.java b/wicket-experimental/wicket-examples-parent/wicket-examples-jar/src/main/java/org/apache/wicket/examples/components/ComponentExamplesPage.java
index af6ce5b..d3fee08 100644
--- a/wicket-experimental/wicket-examples-parent/wicket-examples-jar/src/main/java/org/apache/wicket/examples/components/ComponentExamplesPage.java
+++ b/wicket-experimental/wicket-examples-parent/wicket-examples-jar/src/main/java/org/apache/wicket/examples/components/ComponentExamplesPage.java
@@ -1,13 +1,54 @@
 package org.apache.wicket.examples.components;
 
 import org.apache.wicket.examples.base.AbstractBasePage;
+import org.apache.wicket.examples.base.MarkdownArticleModel;
+import org.apache.wicket.examples.base.components.AnchorLink;
+import org.apache.wicket.examples.base.markdown.MarkdownLabel;
 import org.apache.wicket.markup.head.IHeaderResponse;
+import org.apache.wicket.markup.html.WebMarkupContainer;
+import org.apache.wicket.markup.repeater.RepeatingView;
 
-public class ComponentExamplesPage extends AbstractBasePage {
+public class ComponentExamplesPage extends AbstractBasePage
+{
 	private static final long serialVersionUID = 1L;
 
+	private RepeatingView articles = new RepeatingView("articles");
+	private RepeatingView menuitems = new RepeatingView("menuitems");
+
+	public ComponentExamplesPage()
+	{
+		add(articles);
+		add(menuitems);
+
+		addArticle("Labels.md");
+		addArticle("Links.md");
+		addArticle("Lists.md");
+		addArticle("Pagination.md");
+		addArticle("Forms.md");
+		addArticle("Feedback.md");
+		addArticle("Internationalization.md");
+		addArticle("Layout.md");
+	}
+
+	private void addArticle(String article)
+	{
+		String title = article.substring(0, article.length() - 3);
+
+		MarkdownLabel markdownLabel = new MarkdownLabel(articles.newChildId(),
+			new MarkdownArticleModel(ComponentExamplesPage.class, article));
+		articles.add(markdownLabel);
+		markdownLabel.setMarkupId(title);
+		markdownLabel.setOutputMarkupId(true);
+
+		WebMarkupContainer menuitem = new WebMarkupContainer(menuitems.newChildId());
+		menuitems.add(menuitem);
+
+		menuitem.add(new AnchorLink("menuitem", title, title));
+	}
+
 	@Override
-	public void renderHead(IHeaderResponse response) {
+	public void renderHead(IHeaderResponse response)
+	{
 		super.renderHead(response);
 	}
 }

http://git-wip-us.apache.org/repos/asf/wicket/blob/06f1d79f/wicket-experimental/wicket-examples-parent/wicket-examples-jar/src/main/java/org/apache/wicket/examples/components/Feedback.md
----------------------------------------------------------------------
diff --git a/wicket-experimental/wicket-examples-parent/wicket-examples-jar/src/main/java/org/apache/wicket/examples/components/Feedback.md b/wicket-experimental/wicket-examples-parent/wicket-examples-jar/src/main/java/org/apache/wicket/examples/components/Feedback.md
new file mode 100644
index 0000000..3176d14
--- /dev/null
+++ b/wicket-experimental/wicket-examples-parent/wicket-examples-jar/src/main/java/org/apache/wicket/examples/components/Feedback.md
@@ -0,0 +1,4 @@
+<div class="page-header">
+	<h2>Feedback</h2>
+</div>
+

http://git-wip-us.apache.org/repos/asf/wicket/blob/06f1d79f/wicket-experimental/wicket-examples-parent/wicket-examples-jar/src/main/java/org/apache/wicket/examples/components/Forms.md
----------------------------------------------------------------------
diff --git a/wicket-experimental/wicket-examples-parent/wicket-examples-jar/src/main/java/org/apache/wicket/examples/components/Forms.md b/wicket-experimental/wicket-examples-parent/wicket-examples-jar/src/main/java/org/apache/wicket/examples/components/Forms.md
new file mode 100644
index 0000000..c5e1ebf
--- /dev/null
+++ b/wicket-experimental/wicket-examples-parent/wicket-examples-jar/src/main/java/org/apache/wicket/examples/components/Forms.md
@@ -0,0 +1,4 @@
+<div class="page-header">
+	<h2>Forms <small>Form components, fields and other input devices</small></h2>
+</div>
+

http://git-wip-us.apache.org/repos/asf/wicket/blob/06f1d79f/wicket-experimental/wicket-examples-parent/wicket-examples-jar/src/main/java/org/apache/wicket/examples/components/Internationalization.md
----------------------------------------------------------------------
diff --git a/wicket-experimental/wicket-examples-parent/wicket-examples-jar/src/main/java/org/apache/wicket/examples/components/Internationalization.md b/wicket-experimental/wicket-examples-parent/wicket-examples-jar/src/main/java/org/apache/wicket/examples/components/Internationalization.md
new file mode 100644
index 0000000..6214449
--- /dev/null
+++ b/wicket-experimental/wicket-examples-parent/wicket-examples-jar/src/main/java/org/apache/wicket/examples/components/Internationalization.md
@@ -0,0 +1,4 @@
+<div class="page-header">
+	<h2>Internationalization</h2>
+</div>
+

http://git-wip-us.apache.org/repos/asf/wicket/blob/06f1d79f/wicket-experimental/wicket-examples-parent/wicket-examples-jar/src/main/java/org/apache/wicket/examples/components/Labels.md
----------------------------------------------------------------------
diff --git a/wicket-experimental/wicket-examples-parent/wicket-examples-jar/src/main/java/org/apache/wicket/examples/components/Labels.md b/wicket-experimental/wicket-examples-parent/wicket-examples-jar/src/main/java/org/apache/wicket/examples/components/Labels.md
new file mode 100644
index 0000000..a636c66
--- /dev/null
+++ b/wicket-experimental/wicket-examples-parent/wicket-examples-jar/src/main/java/org/apache/wicket/examples/components/Labels.md
@@ -0,0 +1,99 @@
+<div class="page-header">
+	<h2>Labels <small>Displaying text using labels, MultiLineLabels and escaping markup</small></h2>
+</div>
+
+With `Label` components you can display dynamic text in
+your pages and components.
+
+{% highlight java %}
+    add(new Label<String>("text", "Hello, World!"));
+{% endhighlight %}
+
+Like all Wicket components, the label needs a counterpart in the
+markup with the same wicket:id:
+
+{% highlight html %}
+    <span wicket:id="text">gets replaced</span>
+{% endhighlight %}
+
+Using models you can display fields from your entities in your pages:
+
+{% highlight java %}
+    Person person = ...;
+    add(new Label<String>("text", new PropertyModel<String>(person, "name")));
+{% endhighlight %}
+
+### Multi-line text
+
+HTML notoriously strips newlines from your text and renders
+everything like it is just one line of text. With MultiLineLabel you
+can render text like it is supposed to look with paragraphs and
+line-breaks.
+
+{% highlight java %}
+    add(new Label("txt", "Hello,\nWorld!"));
+    add(new MultiLineLabel("multi", "Hello,\nWorld!"));
+{% endhighlight %}
+
+Will render the following markup:
+
+{% highlight html %}
+    <p>Hello,
+    World!</p>
+    <p>Hello,<br />World!</p>
+{% endhighlight %}
+
+And that will result in text like:
+
+{% highlight html %}
+    Hello, World!
+    Hello,
+    World!
+{% endhighlight %}
+
+Notice that the first label is displayed on a single line, while the
+`MultiLineLabel` correctly renders the text across multiple lines.
+
+### Label tags
+
+The associated markup tag can be anything: a `<span>`, `<a>`nchor,
+`<p>`aragraph, or even if you don't want a surrounding tag in the
+final markup a `<wicket:container>`. So for example:
+
+{% highlight html %}
+    <span wicket:id="t1"></span>
+    <p wicket:id="t2"></p>
+    <wicket:container wicket:id="t3"></wicket:container>
+{% endhighlight %}
+
+Will render as:
+
+{% highlight html %}
+    <span>Hello, World!</span>
+    <p>Hello, World!</p>
+    Hello, World!
+{% endhighlight %}
+
+You can also use `label.setRenderBodyOnly(true)` to instruct Wicket
+to just render the body.
+
+### Escaping markup
+
+By default, Wicket escapes all rendered text, preventing JavaScript
+injection attacks:
+
+{% highlight java %}
+    add(new Label("bad",  "<a onclick=\"alert('Booh')\">Click me</a>"));
+{% endhighlight %}
+					
+Will render safely as the following markup:
+
+{% highlight html %}
+    &lt;a onclick=\&quot;alert(&#x27;Booh&#x27;)\&quot;&gt;Click me&lt;/a&gt;
+{% endhighlight %}
+
+Which displays in the browser as:
+
+{% highlight html %}
+    <a onclick=\"alert('Booh')\">Click me</a>
+{% endhighlight %}

http://git-wip-us.apache.org/repos/asf/wicket/blob/06f1d79f/wicket-experimental/wicket-examples-parent/wicket-examples-jar/src/main/java/org/apache/wicket/examples/components/Layout.md
----------------------------------------------------------------------
diff --git a/wicket-experimental/wicket-examples-parent/wicket-examples-jar/src/main/java/org/apache/wicket/examples/components/Layout.md b/wicket-experimental/wicket-examples-parent/wicket-examples-jar/src/main/java/org/apache/wicket/examples/components/Layout.md
new file mode 100644
index 0000000..26079ac
--- /dev/null
+++ b/wicket-experimental/wicket-examples-parent/wicket-examples-jar/src/main/java/org/apache/wicket/examples/components/Layout.md
@@ -0,0 +1,4 @@
+<div class="page-header">
+	<h2>Layout <small>Panels, borders, fragments, tabs and markup inheritance</small></h2>
+</div>
+

http://git-wip-us.apache.org/repos/asf/wicket/blob/06f1d79f/wicket-experimental/wicket-examples-parent/wicket-examples-jar/src/main/java/org/apache/wicket/examples/components/Links.md
----------------------------------------------------------------------
diff --git a/wicket-experimental/wicket-examples-parent/wicket-examples-jar/src/main/java/org/apache/wicket/examples/components/Links.md b/wicket-experimental/wicket-examples-parent/wicket-examples-jar/src/main/java/org/apache/wicket/examples/components/Links.md
new file mode 100644
index 0000000..043f5c1
--- /dev/null
+++ b/wicket-experimental/wicket-examples-parent/wicket-examples-jar/src/main/java/org/apache/wicket/examples/components/Links.md
@@ -0,0 +1,89 @@
+<div class="page-header">
+	<h2>Links <small>Action links, page links, bookmarks and external links</small></h2>
+</div>
+
+With links you can trigger actions on the server side, navigate to
+other pages or to external sites.
+
+### Action links
+
+When you want to perform some action on the server, triggered by a
+click in the browser, you can use `Link` as the serverside component.
+
+{% highlight java %}
+    add(new Link<Void>("action") {
+		@Override
+		public void onClick() {
+			// do something
+		}
+	});
+{% endhighlight %}
+
+For a `Link` it doesn't matter if you attach it to an `a` tag,
+`input` or even a `div` or `span`. The link will generate for
+non-anchor tags javascript onclick handlers automatically. So the
+link of our previous example could be attached to:
+
+{% highlight html %}
+    <a href="#" wicket:id="action">Click me for some action</a>
+{% endhighlight %}
+
+Or a `div` like:
+
+{% highlight html %}
+    <div wicket:id="action">Click me for some action</div>
+{% endhighlight %}
+
+#### Generics of a Link
+
+The type parameter for a link component is used for the model the
+link is supposed to work on. For example you can have a link that
+increments a counter on each click:
+
+{% highlight java %}
+    add(new Link<Integer>("inc", new Model<Integer>(0)) {
+		@Override
+		public void onClick() {
+			int count = getModelObject();
+			setModelObject(count + 1);
+		}
+	});
+{% endhighlight %}
+
+If your link doesn't require a model, but just performs some actions,
+then you can use the `Void` type to denote such uses.
+
+#### Going to another page after some action
+
+With the `setResponsePage` method you can instruct Wicket to render a
+different page. By default Wicket will re-render the current page
+unless you instruct otherwise.
+
+##### Example: refresh current page
+
+The following Java snippet just refreshes the current page:
+
+{% highlight java %}
+    add(new Link<Void>("refresh") {
+		@Override
+		public void onClick() {
+		}
+	});
+{% endhighlight %}
+
+Note that you don't perform any action in the `onClick` handler.
+
+##### Example: navigate to another page
+
+The following example instructs Wicket to render the `OtherPage` as
+the response to your user.
+
+{% highlight java %}
+    add(new Link<Void>("action") {
+		@Override
+		public void onClick() {
+			setResponsePage(new OtherPage());
+		}
+	});
+{% endhighlight %}
+

http://git-wip-us.apache.org/repos/asf/wicket/blob/06f1d79f/wicket-experimental/wicket-examples-parent/wicket-examples-jar/src/main/java/org/apache/wicket/examples/components/Lists.md
----------------------------------------------------------------------
diff --git a/wicket-experimental/wicket-examples-parent/wicket-examples-jar/src/main/java/org/apache/wicket/examples/components/Lists.md b/wicket-experimental/wicket-examples-parent/wicket-examples-jar/src/main/java/org/apache/wicket/examples/components/Lists.md
new file mode 100644
index 0000000..76c474f
--- /dev/null
+++ b/wicket-experimental/wicket-examples-parent/wicket-examples-jar/src/main/java/org/apache/wicket/examples/components/Lists.md
@@ -0,0 +1,4 @@
+<div class="page-header">
+	<h2>Lists <small>Repeating content with Repeaters, ListViews and DataViews</small></h2>
+</div>
+

http://git-wip-us.apache.org/repos/asf/wicket/blob/06f1d79f/wicket-experimental/wicket-examples-parent/wicket-examples-jar/src/main/java/org/apache/wicket/examples/components/Pagination.md
----------------------------------------------------------------------
diff --git a/wicket-experimental/wicket-examples-parent/wicket-examples-jar/src/main/java/org/apache/wicket/examples/components/Pagination.md b/wicket-experimental/wicket-examples-parent/wicket-examples-jar/src/main/java/org/apache/wicket/examples/components/Pagination.md
new file mode 100644
index 0000000..043f5c1
--- /dev/null
+++ b/wicket-experimental/wicket-examples-parent/wicket-examples-jar/src/main/java/org/apache/wicket/examples/components/Pagination.md
@@ -0,0 +1,89 @@
+<div class="page-header">
+	<h2>Links <small>Action links, page links, bookmarks and external links</small></h2>
+</div>
+
+With links you can trigger actions on the server side, navigate to
+other pages or to external sites.
+
+### Action links
+
+When you want to perform some action on the server, triggered by a
+click in the browser, you can use `Link` as the serverside component.
+
+{% highlight java %}
+    add(new Link<Void>("action") {
+		@Override
+		public void onClick() {
+			// do something
+		}
+	});
+{% endhighlight %}
+
+For a `Link` it doesn't matter if you attach it to an `a` tag,
+`input` or even a `div` or `span`. The link will generate for
+non-anchor tags javascript onclick handlers automatically. So the
+link of our previous example could be attached to:
+
+{% highlight html %}
+    <a href="#" wicket:id="action">Click me for some action</a>
+{% endhighlight %}
+
+Or a `div` like:
+
+{% highlight html %}
+    <div wicket:id="action">Click me for some action</div>
+{% endhighlight %}
+
+#### Generics of a Link
+
+The type parameter for a link component is used for the model the
+link is supposed to work on. For example you can have a link that
+increments a counter on each click:
+
+{% highlight java %}
+    add(new Link<Integer>("inc", new Model<Integer>(0)) {
+		@Override
+		public void onClick() {
+			int count = getModelObject();
+			setModelObject(count + 1);
+		}
+	});
+{% endhighlight %}
+
+If your link doesn't require a model, but just performs some actions,
+then you can use the `Void` type to denote such uses.
+
+#### Going to another page after some action
+
+With the `setResponsePage` method you can instruct Wicket to render a
+different page. By default Wicket will re-render the current page
+unless you instruct otherwise.
+
+##### Example: refresh current page
+
+The following Java snippet just refreshes the current page:
+
+{% highlight java %}
+    add(new Link<Void>("refresh") {
+		@Override
+		public void onClick() {
+		}
+	});
+{% endhighlight %}
+
+Note that you don't perform any action in the `onClick` handler.
+
+##### Example: navigate to another page
+
+The following example instructs Wicket to render the `OtherPage` as
+the response to your user.
+
+{% highlight java %}
+    add(new Link<Void>("action") {
+		@Override
+		public void onClick() {
+			setResponsePage(new OtherPage());
+		}
+	});
+{% endhighlight %}
+