Added announce for 6.27.0
Project: http://git-wip-us.apache.org/repos/asf/wicket-site/repo Commit: http://git-wip-us.apache.org/repos/asf/wicket-site/commit/be50bb6d Tree: http://git-wip-us.apache.org/repos/asf/wicket-site/tree/be50bb6d Diff: http://git-wip-us.apache.org/repos/asf/wicket-site/diff/be50bb6d Branch: refs/heads/asf-site Commit: be50bb6dce0dfa296a8776c7532f929f29baa635 Parents: 68ac365 Author: Andrea Del Bene <adelb...@apache.org> Authored: Thu Jul 6 21:19:26 2017 +0200 Committer: Andrea Del Bene <adelb...@apache.org> Committed: Thu Jul 6 21:19:26 2017 +0200 ---------------------------------------------------------------------- .../_posts/2017-07-06-wicket-6.27.0-released.md | 141 +++++++++ _config.yml | 4 +- content/archetype-catalog.xml | 8 +- content/atom.xml | 310 +++++++++---------- content/contribute/build.html | 22 +- content/contribute/ides.html | 6 +- content/contribute/patch.html | 2 +- content/contribute/release.html | 52 ++-- content/contribute/write.html | 4 +- content/help/index.html | 10 +- content/index.html | 58 ++-- content/learn/examples/ajaxcounter.html | 18 +- content/learn/examples/dropdownchoice.html | 8 +- content/learn/examples/guestbook.html | 28 +- content/learn/examples/helloworld.html | 6 +- content/learn/examples/markupinheritance.html | 6 +- content/learn/examples/navomatic.html | 10 +- content/learn/examples/servlet3x.html | 14 +- content/learn/examples/usingfragments.html | 10 +- content/learn/index.html | 6 +- ...-1.4-takes-typesafety-to-the-next-level.html | 8 +- content/news/2009/07/index.html | 1 + content/news/2009/08/index.html | 1 + content/news/2009/10/index.html | 1 + content/news/2009/12/index.html | 1 + content/news/2009/index.html | 1 + content/news/2010/02/index.html | 1 + content/news/2010/03/index.html | 1 + content/news/2010/05/index.html | 1 + .../news/2010/08/11/wicket-1.4.10-released.html | 4 +- content/news/2010/08/index.html | 1 + content/news/2010/09/index.html | 1 + content/news/2010/11/index.html | 1 + content/news/2010/12/index.html | 1 + content/news/2010/index.html | 1 + content/news/2011/01/index.html | 1 + content/news/2011/02/index.html | 1 + content/news/2011/03/index.html | 1 + content/news/2011/04/index.html | 1 + content/news/2011/05/index.html | 1 + content/news/2011/06/index.html | 1 + content/news/2011/08/23/cve-2011-2712.html | 2 +- content/news/2011/08/index.html | 1 + .../news/2011/09/07/wicket-1.5-released.html | 8 +- content/news/2011/09/index.html | 1 + content/news/2011/10/index.html | 1 + content/news/2011/11/index.html | 1 + content/news/2011/index.html | 1 + content/news/2012/01/index.html | 1 + .../news/2012/03/22/wicket-cve-2012-1089.html | 2 +- content/news/2012/03/index.html | 1 + .../2012/05/29/wicket-6.0.0-beta2-released.html | 4 +- content/news/2012/05/index.html | 1 + content/news/2012/06/index.html | 1 + content/news/2012/07/index.html | 1 + content/news/2012/08/index.html | 1 + content/news/2012/09/index.html | 1 + content/news/2012/10/index.html | 1 + content/news/2012/11/index.html | 1 + content/news/2012/12/index.html | 1 + content/news/2012/index.html | 1 + .../news/2013/01/23/wicket-6.5.0-released.html | 2 +- content/news/2013/01/index.html | 1 + content/news/2013/02/index.html | 1 + content/news/2013/03/index.html | 1 + content/news/2013/04/index.html | 1 + content/news/2013/05/index.html | 1 + .../news/2013/06/27/wicket-6.9.0-released.html | 2 +- content/news/2013/06/index.html | 1 + .../news/2013/07/10/wicket-6.9.1-released.html | 2 +- content/news/2013/07/index.html | 1 + .../news/2013/08/18/wicket-6.10.0-released.html | 2 +- content/news/2013/08/index.html | 1 + .../news/2013/09/20/wicket-6.11.0-released.html | 2 +- content/news/2013/09/index.html | 1 + .../news/2013/11/01/wicket-6.12.0-released.html | 2 +- content/news/2013/11/index.html | 1 + content/news/2013/index.html | 1 + .../news/2014/01/05/wicket-6.13.0-released.html | 2 +- content/news/2014/01/index.html | 1 + content/news/2014/02/index.html | 1 + content/news/2014/04/index.html | 1 + content/news/2014/06/index.html | 1 + content/news/2014/08/index.html | 1 + content/news/2014/09/index.html | 1 + content/news/2014/11/index.html | 1 + content/news/2014/index.html | 1 + content/news/2015/02/index.html | 1 + content/news/2015/06/index.html | 1 + content/news/2015/07/index.html | 1 + content/news/2015/10/index.html | 1 + content/news/2015/11/index.html | 1 + content/news/2015/index.html | 1 + content/news/2016/01/index.html | 1 + content/news/2016/02/index.html | 1 + content/news/2016/03/index.html | 1 + content/news/2016/05/index.html | 1 + .../2016/07/25/wicket-8.0.0-M1-released.html | 4 +- content/news/2016/07/index.html | 1 + content/news/2016/08/index.html | 1 + content/news/2016/10/index.html | 1 + content/news/2016/11/index.html | 1 + content/news/2016/12/index.html | 1 + content/news/2016/index.html | 1 + content/news/2017/02/index.html | 1 + content/news/2017/03/index.html | 1 + content/news/2017/05/index.html | 1 + .../news/2017/07/06/wicket-6.27.0-released.html | 174 +++++++++++ content/news/2017/07/index.html | 173 +++++++++++ content/news/2017/index.html | 13 + content/news/index.html | 7 + content/start/download.html | 2 +- content/start/quickstart.html | 6 +- content/start/wicket-6.x.html | 38 +-- 114 files changed, 912 insertions(+), 343 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/wicket-site/blob/be50bb6d/2017/_posts/2017-07-06-wicket-6.27.0-released.md ---------------------------------------------------------------------- diff --git a/2017/_posts/2017-07-06-wicket-6.27.0-released.md b/2017/_posts/2017-07-06-wicket-6.27.0-released.md new file mode 100644 index 0000000..a6028dc --- /dev/null +++ b/2017/_posts/2017-07-06-wicket-6.27.0-released.md @@ -0,0 +1,141 @@ +--- +layout: post +title: Apache Wicket 6.27.0 released +--- +The Apache Wicket PMC is proud to announce Apache Wicket 6.27.0! + +Apache Wicket is an open source Java component oriented web application +framework that powers thousands of web applications and web sites for +governments, stores, universities, cities, banks, email providers, and +more. You can find more about Apache Wicket at https://wicket.apache.org + +This release marks another minor release of Wicket 6. We +use semantic versioning for the development of Wicket, and as such no +API breaks are present breaks are present in this release compared to +6.0.0. + +New and noteworthy +------------------ +With this version Wicket changed its internal JSON implementation (package org.apache.wicket.ajax.json) switching from project JSON-java (https://github.com/stleary/JSON-java) to Open JSON (https://github.com/openjson/openjson). This was necessery as JSON-java's license is no longer compatible with Apache License 2.0. + +Using this release +------------------ + +With Apache Maven update your dependency to (and don't forget to +update any other dependencies on Wicket projects to the same version): + +{% highlight xml%} +<dependency> + <groupId>org.apache.wicket</groupId> + <artifactId>wicket-core</artifactId> + <version>6.27.0</version> +</dependency> +{% endhighlight%} + +Or download and build the distribution yourself, or use our +convenience binary package + + * Source: [6.27.0 source download](http://www.apache.org/dyn/closer.cgi/wicket/6.27.0) + * Binary: [6.27.0 binary download](http://www.apache.org/dyn/closer.cgi/wicket/6.27.0/binaries) + +<!--more--> + +Upgrading from earlier versions +------------------------------- + +If you upgrade from 6.y.z this release is a drop in replacement. If +you come from a version prior to 6.0.0, please read our Wicket 6 +migration guide found at + + * http://s.apache.org/wicket6migrate + +Have fun! + +â The Wicket team + + +======================================================================== + + The signatures for the source release artefacts: + + +Signature for apache-wicket-6.27.0.zip: + +<div class='highlight'><pre> +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1 + +iQIcBAABAgAGBQJZWT9KAAoJEAzCjx+CMhBVx/kQAJKCnO4CJtfIGQCj2zulMxi6 +s3cRF+suIzFUHCeRXH4B+zU9wkcLEyAu2XfmZ1mjOVChpVdXDCZJ2zVquVoXq87f +iq2iowJkvQIgax+rvin6CxtGfJz9tNIiwT+cJd++ValqLgTJl3j6MPTTcbA8vE+Q +O95DOMe4lZHT2KcBwRVtbc4/xb6njh0ZT8rBCtyp9LgBwsN7ulrSVWRmYjtdF5FG +LIK2DkDdYUKdF6JwIfA4kSViFRXfNoNZDBGb3TpX1tqf0VnMBhdex10cQHxA5Ztw +JYsilCSzDc2BhnBggN3lerOphT6Zm0PMBAVVWjbv4Xcwm6GeL2LP+abk5xTv2YBQ +kQGv0P4VNj15849z5xST3UdJcIHFpZfuTCdHtmC0yG0VUK7YN8lmNGZgRbV9emF8 +lIp0baZ2m7SlmAHVTdmdDHIBCq0du0G3o7kBS8KF5IoeLTLDC2STuo8WFU5CLiAi +YoN9BLKSYL+ePZe2gAinZ1Wp78tHDmhAWsAnmmOnN05VSWEH8cBZ6Ak7fxYzLfvp +f2mPw9baJN6asL/FDJhiwiYEDov7dHs3n4Y8uB1MU4P5D1o5k4GwLLXC/yMY1CG1 +9u/3wy5JWrNqdrXVnbGLNvkAuzSiCI/MFcwNBaAY80Z17NhpeXrIp3JDRrZmQQ/K +4A3getDZ89j0cN6sOcNY +=hZAF +-----END PGP SIGNATURE----- +</pre></div> + + +Signature for apache-wicket-6.27.0.tar.gz: + +<div class='highlight'><pre> +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1 + +iQIcBAABAgAGBQJZWT9KAAoJEAzCjx+CMhBVShYQAIKMOg2d84EFhw+vzJY4m/OV +pAND+nwA8/iH8dvK1M7ZtQPYaDlwFDnGHpSnJaW1xo4FMXzvICbOURQiluc3JMJ4 +KESvXF2zOTgt6mC5Wb8409o+S3xnkr9F4AAK/Rf2NtB+xVBHyfnUqFx8KPNEUy5Q ++2dx9FkQwwLF6FZ/GQC1BIi4e0exxOJ6XxhXfxaj3ur8Sy71lHu5L/iapojnbdAN +Dr3nSAxttfWW/5Xc5HMl9Av09EXQ6FjmW8kb3Errn0Tm4zqrg5hc+TbSy8fgsfbS +yk94tObaRFTn6ckfV53GDMy1YCUbUgGd2LzKNor++11YlCogf7TgeP4IlKJ1ooKi +lxRJ2Q3TLaEWmZnCIgADLpcOLzjFAWzNA18pPEjPvZjODtCUtnvhzO1Za3dxY7ZE +fiI3MzWG33WyEIW/ejjEj+rjoN6XrVClRXXfFHqsiLz9NlSKgHTSZPuCy3JBWTwo +9iry27zFInHKpunXecs6PhQfHVhA5L3mEy90xEn6ipcOdp59zTuiZhY8CA7M7hHY +0iad47CkzHltAwTSOlaK+O3esWxRoLVOZUUIDZFsbtA/mg4/AUlRi34Atv3GLZWO +EA56yVo3BeK4O9c7z9GLJRoG9XNNJn6SxmP8q1vvfEBpWT8BVBfVfq8pnV032o+Q +MfALKqCOD4Ta2B4w9ES0 +=3H98 +-----END PGP SIGNATURE----- +</pre></div> + + +======================================================================== + +### This Release + +#### CHANGELOG for 6.27.0: + +##### Bug + + * [WICKET-6165] - Inconsistent behavior of Markupstream.hasMore vs. MarkupStream.next. + * [WICKET-6314] - 7.6 release references 7.5-SNAPSHOT poms + * [WICKET-6316] - Wicket tester encodes page id for stateless links in stateless pages + * [WICKET-6340] - The Ajax reponse of an AjaxSubmitButton creates invalid XHTML markup for multipart forms + * [WICKET-6356] - Clustering failover not working on Tomcat + * [WICKET-6362] - HeaderItems with different PageParameters are treated as identical + * [WICKET-6366] - Autocomplete race condition makes page unresponsive + * [WICKET-6387] - ModalWindow PageReference broken + * [WICKET-6398] - WICKET-6204 breaks jQuery.noConflict() + * [WICKET-6399] - Dequeuing of Border component with nested body fails + * [WICKET-6400] - Object with array property fails on NPE when construction JSON object + * [WICKET-6409] - Session should use #getSessionStore() instead of 'sessionStore' + +##### Improvement + + * [WICKET-6212] - CheckChoice / add a getAdditionalAttributes() also for <label>-tag + * [WICKET-6307] - SubmitLink does not work in Chrome "ff.onsubmit is not a function" + * [WICKET-6323] - Allow ResourceBundles to use the defer attribute + * [WICKET-6351] - Form.anyFormComponentError performance degradation + * [WICKET-6364] - The autogenerated input field when a form has a default button should not gain the focus when navigating with tab + +##### Task + + * [WICKET-6287] - Switch from json.org to open-json + * [WICKET-6391] - Deprecate the classes and methods which now throw runtime exception after the switch to OpenJson + http://git-wip-us.apache.org/repos/asf/wicket-site/blob/be50bb6d/_config.yml ---------------------------------------------------------------------- diff --git a/_config.yml b/_config.yml index fa09522..ba62d6b 100644 --- a/_config.yml +++ b/_config.yml @@ -18,12 +18,12 @@ wicket: version: 7.7.0 version_80: 8.0.0-M6 version_70: 7.7.0 - version_60: 6.26.0 + version_60: 6.27.0 version_15: 1.5.17 version_14: 1.4.23 version_13: 1.3.7 released: 2017-05-16 - versions: [6.26.0, 1.5.17, 1.4.23, 7.7.0, 1.5-SNAPSHOT, 6.27.0-SNAPSHOT, 7.8.0-SNAPSHOT, 8.0.0-M6, 8.0.0-SNAPSHOT] + versions: [6.27.0, 1.5.17, 1.4.23, 7.7.0, 1.5-SNAPSHOT, 6.28.0-SNAPSHOT, 7.8.0-SNAPSHOT, 8.0.0-M6, 8.0.0-SNAPSHOT] navigation: - id: start http://git-wip-us.apache.org/repos/asf/wicket-site/blob/be50bb6d/content/archetype-catalog.xml ---------------------------------------------------------------------- diff --git a/content/archetype-catalog.xml b/content/archetype-catalog.xml index e280de6..5b75b02 100644 --- a/content/archetype-catalog.xml +++ b/content/archetype-catalog.xml @@ -26,8 +26,8 @@ <archetype> <groupId>org.apache.wicket</groupId> <artifactId>wicket-archetype-quickstart</artifactId> - <version>6.27.0-SNAPSHOT</version> - <description>Wicket 6.27.0-SNAPSHOT Quickstart</description> + <version>6.28.0-SNAPSHOT</version> + <description>Wicket 6.28.0-SNAPSHOT Quickstart</description> </archetype> <archetype> @@ -61,8 +61,8 @@ <archetype> <groupId>org.apache.wicket</groupId> <artifactId>wicket-archetype-quickstart</artifactId> - <version>6.26.0</version> - <description>Wicket 6.26.0 Quickstart</description> + <version>6.27.0</version> + <description>Wicket 6.27.0 Quickstart</description> </archetype> </archetypes> http://git-wip-us.apache.org/repos/asf/wicket-site/blob/be50bb6d/content/atom.xml ---------------------------------------------------------------------- diff --git a/content/atom.xml b/content/atom.xml index 71dfaa7..762213f 100644 --- a/content/atom.xml +++ b/content/atom.xml @@ -3,7 +3,7 @@ <title>Apache Wicket</title> <link href="http://wicket.apache.org/atom.xml" rel="self"/> <link href="http://wicket.apache.org/"/> - <updated>2017-05-18T15:55:48+02:00</updated> + <updated>2017-07-06T21:18:44+02:00</updated> <id>http://wicket.apache.org/</id> <author> <name>Apache Wicket</name> @@ -12,6 +12,154 @@ <entry> + <title>Apache Wicket 6.27.0 released</title> + <link href="http://wicket.apache.org/news/2017/07/06/wicket-6.27.0-released.html"/> + <updated>2017-07-06T00:00:00+02:00</updated> + <id>http://wicket.apache.org/news/2017/07/06/wicket-6.27.0-released</id> + <content type="html"><p>The Apache Wicket PMC is proud to announce Apache Wicket 6.27.0!</p> + +<p>Apache Wicket is an open source Java component oriented web application +framework that powers thousands of web applications and web sites for +governments, stores, universities, cities, banks, email providers, and +more. You can find more about Apache Wicket at https://wicket.apache.org</p> + +<p>This release marks another minor release of Wicket 6. We +use semantic versioning for the development of Wicket, and as such no +API breaks are present breaks are present in this release compared to +6.0.0.</p> + +<h2 id="new-and-noteworthy">New and noteworthy</h2> +<p>With this version Wicket changed its internal JSON implementation (package org.apache.wicket.ajax.json) switching from project JSON-java (https://github.com/stleary/JSON-java) to Open JSON (https://github.com/openjson/openjson). This was necessery as JSON-javaâs license is no longer compatible with Apache License 2.0.</p> + +<h2 id="using-this-release">Using this release</h2> + +<p>With Apache Maven update your dependency to (and donât forget to +update any other dependencies on Wicket projects to the same version):</p> + +<figure class="highlight"><pre><code class="language-xml" data-lang="xml"><span class="nt">&lt;dependency&gt;</span> + <span class="nt">&lt;groupId&gt;</span>org.apache.wicket<span class="nt">&lt;/groupId&gt;</span> + <span class="nt">&lt;artifactId&gt;</span>wicket-core<span class="nt">&lt;/artifactId&gt;</span> + <span class="nt">&lt;version&gt;</span>6.27.0<span class="nt">&lt;/version&gt;</span> +<span class="nt">&lt;/dependency&gt;</span></code></pre></figure> + +<p>Or download and build the distribution yourself, or use our +convenience binary package</p> + +<ul> + <li>Source: <a href="http://www.apache.org/dyn/closer.cgi/wicket/6.27.0">6.27.0 source download</a></li> + <li>Binary: <a href="http://www.apache.org/dyn/closer.cgi/wicket/6.27.0/binaries">6.27.0 binary download</a></li> +</ul> + +<!--more--> + +<h2 id="upgrading-from-earlier-versions">Upgrading from earlier versions</h2> + +<p>If you upgrade from 6.y.z this release is a drop in replacement. If +you come from a version prior to 6.0.0, please read our Wicket 6 +migration guide found at</p> + +<ul> + <li>http://s.apache.org/wicket6migrate</li> +</ul> + +<p>Have fun!</p> + +<p>â The Wicket team</p> + +<p>========================================================================</p> + +<div class="highlighter-rouge"><pre class="highlight"><code>The signatures for the source release artefacts: +</code></pre> +</div> + +<p>Signature for apache-wicket-6.27.0.zip:</p> + +<div class="highlight"><pre> +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1 + +iQIcBAABAgAGBQJZWT9KAAoJEAzCjx+CMhBVx/kQAJKCnO4CJtfIGQCj2zulMxi6 +s3cRF+suIzFUHCeRXH4B+zU9wkcLEyAu2XfmZ1mjOVChpVdXDCZJ2zVquVoXq87f +iq2iowJkvQIgax+rvin6CxtGfJz9tNIiwT+cJd++ValqLgTJl3j6MPTTcbA8vE+Q +O95DOMe4lZHT2KcBwRVtbc4/xb6njh0ZT8rBCtyp9LgBwsN7ulrSVWRmYjtdF5FG +LIK2DkDdYUKdF6JwIfA4kSViFRXfNoNZDBGb3TpX1tqf0VnMBhdex10cQHxA5Ztw +JYsilCSzDc2BhnBggN3lerOphT6Zm0PMBAVVWjbv4Xcwm6GeL2LP+abk5xTv2YBQ +kQGv0P4VNj15849z5xST3UdJcIHFpZfuTCdHtmC0yG0VUK7YN8lmNGZgRbV9emF8 +lIp0baZ2m7SlmAHVTdmdDHIBCq0du0G3o7kBS8KF5IoeLTLDC2STuo8WFU5CLiAi +YoN9BLKSYL+ePZe2gAinZ1Wp78tHDmhAWsAnmmOnN05VSWEH8cBZ6Ak7fxYzLfvp +f2mPw9baJN6asL/FDJhiwiYEDov7dHs3n4Y8uB1MU4P5D1o5k4GwLLXC/yMY1CG1 +9u/3wy5JWrNqdrXVnbGLNvkAuzSiCI/MFcwNBaAY80Z17NhpeXrIp3JDRrZmQQ/K +4A3getDZ89j0cN6sOcNY +=hZAF +-----END PGP SIGNATURE----- +</pre></div> + +<p>Signature for apache-wicket-6.27.0.tar.gz:</p> + +<div class="highlight"><pre> +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1 + +iQIcBAABAgAGBQJZWT9KAAoJEAzCjx+CMhBVShYQAIKMOg2d84EFhw+vzJY4m/OV +pAND+nwA8/iH8dvK1M7ZtQPYaDlwFDnGHpSnJaW1xo4FMXzvICbOURQiluc3JMJ4 +KESvXF2zOTgt6mC5Wb8409o+S3xnkr9F4AAK/Rf2NtB+xVBHyfnUqFx8KPNEUy5Q ++2dx9FkQwwLF6FZ/GQC1BIi4e0exxOJ6XxhXfxaj3ur8Sy71lHu5L/iapojnbdAN +Dr3nSAxttfWW/5Xc5HMl9Av09EXQ6FjmW8kb3Errn0Tm4zqrg5hc+TbSy8fgsfbS +yk94tObaRFTn6ckfV53GDMy1YCUbUgGd2LzKNor++11YlCogf7TgeP4IlKJ1ooKi +lxRJ2Q3TLaEWmZnCIgADLpcOLzjFAWzNA18pPEjPvZjODtCUtnvhzO1Za3dxY7ZE +fiI3MzWG33WyEIW/ejjEj+rjoN6XrVClRXXfFHqsiLz9NlSKgHTSZPuCy3JBWTwo +9iry27zFInHKpunXecs6PhQfHVhA5L3mEy90xEn6ipcOdp59zTuiZhY8CA7M7hHY +0iad47CkzHltAwTSOlaK+O3esWxRoLVOZUUIDZFsbtA/mg4/AUlRi34Atv3GLZWO +EA56yVo3BeK4O9c7z9GLJRoG9XNNJn6SxmP8q1vvfEBpWT8BVBfVfq8pnV032o+Q +MfALKqCOD4Ta2B4w9ES0 +=3H98 +-----END PGP SIGNATURE----- +</pre></div> + +<p>========================================================================</p> + +<h3 id="this-release">This Release</h3> + +<h4 id="changelog-for-6270">CHANGELOG for 6.27.0:</h4> + +<h5 id="bug">Bug</h5> + +<ul> + <li>[WICKET-6165] - Inconsistent behavior of Markupstream.hasMore vs. MarkupStream.next.</li> + <li>[WICKET-6314] - 7.6 release references 7.5-SNAPSHOT poms</li> + <li>[WICKET-6316] - Wicket tester encodes page id for stateless links in stateless pages</li> + <li>[WICKET-6340] - The Ajax reponse of an AjaxSubmitButton creates invalid XHTML markup for multipart forms</li> + <li>[WICKET-6356] - Clustering failover not working on Tomcat</li> + <li>[WICKET-6362] - HeaderItems with different PageParameters are treated as identical</li> + <li>[WICKET-6366] - Autocomplete race condition makes page unresponsive</li> + <li>[WICKET-6387] - ModalWindow PageReference broken</li> + <li>[WICKET-6398] - WICKET-6204 breaks jQuery.noConflict()</li> + <li>[WICKET-6399] - Dequeuing of Border component with nested body fails</li> + <li>[WICKET-6400] - Object with array property fails on NPE when construction JSON object</li> + <li>[WICKET-6409] - Session should use #getSessionStore() instead of âsessionStoreâ</li> +</ul> + +<h5 id="improvement">Improvement</h5> + +<ul> + <li>[WICKET-6212] - CheckChoice / add a getAdditionalAttributes() also for <label>-tag</label></li> + <li>[WICKET-6307] - SubmitLink does not work in Chrome âff.onsubmit is not a functionâ</li> + <li>[WICKET-6323] - Allow ResourceBundles to use the defer attribute</li> + <li>[WICKET-6351] - Form.anyFormComponentError performance degradation</li> + <li>[WICKET-6364] - The autogenerated input field when a form has a default button should not gain the focus when navigating with tab</li> +</ul> + +<h5 id="task">Task</h5> + +<ul> + <li>[WICKET-6287] - Switch from json.org to open-json</li> + <li>[WICKET-6391] - Deprecate the classes and methods which now throw runtime exception after the switch to OpenJson</li> +</ul> + +</content> + </entry> + + <entry> <title>Apache Wicket 8.0.0-M6 released</title> <link href="http://wicket.apache.org/news/2017/05/18/wicket-8.0.0-M6-released.html"/> <updated>2017-05-18T00:00:00+02:00</updated> @@ -1095,164 +1243,4 @@ component was introduced in 6.20.0.</p> </content> </entry> - <entry> - <title>Apache Wicket 8.0.0-M2 released</title> - <link href="http://wicket.apache.org/news/2016/10/26/wicket-8.0.0-M2-released.html"/> - <updated>2016-10-26T00:00:00+02:00</updated> - <id>http://wicket.apache.org/news/2016/10/26/wicket-8.0.0-M2-released</id> - <content type="html"><p>The Apache Wicket PMC is proud to announce Apache Wicket 8.0.0-M2!</p> - -<p>Apache Wicket is an open source Java component oriented web application -framework that powers thousands of web applications and web sites for -governments, stores, universities, cities, banks, email providers, and -more. You can find more about Apache Wicket at https://wicket.apache.org</p> - -<p>This release marks the first milestone of the major release of Wicket 8. We -use semantic versioning for the development of Wicket, and as such no -API breaks are present breaks are present in this release compared to -8.0.0.</p> - -<h2 id="using-this-release">Using this release</h2> - -<p>With Apache Maven update your dependency to (and donât forget to -update any other dependencies on Wicket projects to the same version):</p> - -<figure class="highlight"><pre><code class="language-xml" data-lang="xml"><span class="nt">&lt;dependency&gt;</span> - <span class="nt">&lt;groupId&gt;</span>org.apache.wicket<span class="nt">&lt;/groupId&gt;</span> - <span class="nt">&lt;artifactId&gt;</span>wicket-core<span class="nt">&lt;/artifactId&gt;</span> - <span class="nt">&lt;version&gt;</span>8.0.0-M2<span class="nt">&lt;/version&gt;</span> -<span class="nt">&lt;/dependency&gt;</span></code></pre></figure> - -<p>Or download and build the distribution yourself, or use our -convenience binary package</p> - -<ul> - <li>Source: <a href="http://www.apache.org/dyn/closer.cgi/wicket/8.0.0-M2">8.0.0-M2 source download</a></li> - <li>Binary: <a href="http://www.apache.org/dyn/closer.cgi/wicket/8.0.0-M2/binaries">8.0.0-M2 binary download</a></li> -</ul> - -<!--more--> - -<h2 id="upgrading-from-earlier-versions">Upgrading from earlier versions</h2> - -<p>If you upgrade from 8.y.z this release is a drop in replacement. If -you come from a version prior to 8.0.0, please read our Wicket 7 -migration guide found at</p> - -<ul> - <li><a href="http://s.apache.org/wicket8migration">http://s.apache.org/wicket8migration</a></li> -</ul> - -<p>Have fun!</p> - -<p>â The Wicket team</p> - -<p>================================</p> - -<p>The signatures for the source release artefacts:</p> - -<p>Signature for apache-wicket-8.0.0-M2.zip:</p> - -<div class="highlight"><pre> ------BEGIN PGP SIGNATURE----- -Comment: GPGTools - https://gpgtools.org - -iEYEABECAAYFAlgHzXgACgkQJBX8W/xy/UU4+ACgxCcY0zPKiw3x7n0rizY9CkiN -3tkAmwYX0hrkfkSYJKkkBaMSrI+z/zSf -=9mFS ------END PGP SIGNATURE----- -</pre></div> - -<p>Signature for apache-wicket-8.0.0-M2.tar.gz:</p> - -<div class="highlight"><pre> ------BEGIN PGP SIGNATURE----- -Comment: GPGTools - https://gpgtools.org - -iEYEABECAAYFAlgHzXgACgkQJBX8W/xy/UU+GQCgsvsRwloc9JSMB1ieJT+6aoqR -CWsAnAmmb+z3Exzbn2bT8zE3IrY6wUHw -=LVj6 ------END PGP SIGNATURE----- -</pre></div> -<p>================================</p> - -<h3 id="this-release">This Release</h3> - -<h4 id="changelog-for-800-m2">CHANGELOG for 8.0.0-M2:</h4> - -<h5 id="sub-task">Sub-task</h5> - -<ul> - <li>[WICKET-6243] - ResourceReferenceAutolink component resolved by -AutoLinkResolver ignores session locale changes</li> -</ul> - -<h5 id="bug">Bug</h5> - -<ul> - <li>[WICKET-5836] - Update the version of clirr-maven-plugin (current 2.6.1)</li> - <li>[WICKET-5972] - Datepicker âCloseâ text overlays âxâ icon.</li> - <li>[WICKET-6041] - Nested forms / parent FormComponents do not reflect updated model when nested form submitted</li> - <li>[WICKET-6136] - AutoCompleteTextField issue in Android 5.1.1</li> - <li>[WICKET-6161] - SecuritySettings.setEnforceMounts() should be applicable for all kind of pages</li> - <li>[WICKET-6192] - Remove recreateBookmarkablePagesAfterExpiry check in AbstractBookmarkableMapper#mapHandler</li> - <li>[WICKET-6196] - CheckingObjectOutputStream broken in Wicket 7</li> - <li>[WICKET-6198] - Unable to disable a MultiFileUploadField</li> - <li>[WICKET-6202] - Guide: 26.1 Page storing, section HttpSessionDataStore - example code is not correct</li> - <li>[WICKET-6204] - Copy only the provided attributes for Ajax link inclusion</li> - <li>[WICKET-6209] - requesting focus on disabled field fails with error in IE8</li> - <li>[WICKET-6214] - ModalWindow broken on IE</li> - <li>[WICKET-6215] - Test fail when non empty model is set to PasswordTextField</li> - <li>[WICKET-6216] - Problem with queued components and border</li> - <li>[WICKET-6217] - Enclosure broken within Border/Panel</li> - <li>[WICKET-6219] - Fragment fails to report an error in development mode</li> - <li>[WICKET-6220] - TagTester incomplete support for void elements</li> - <li>[WICKET-6221] - WicketTester - missing border path</li> - <li>[WICKET-6222] - renderHead not called with anonymous inner Border class</li> - <li>[WICKET-6225] - Button wrongly sets its model object as âvalueâ attribute</li> - <li>[WICKET-6227] - CharSequenceResource calculates wrong length when there are unicode symbols</li> - <li>[WICKET-6230] - Infinite redirection when using UrlPathPageParametersEncoder</li> - <li>[WICKET-6231] - wicket:enclosure and getVariation().</li> - <li>[WICKET-6232] - When sending binary data from server to client, wicket-websocket-jquery.js throws error âmessage.indexOf is not a functionâ</li> - <li>[WICKET-6235] - TableTree#updateNode() fails if no corresponding node is visible</li> - <li>[WICKET-6236] - Files.remove() causes a 5 seconds delay instead of 500ms as was intended</li> - <li>[WICKET-6237] - PageRequestHandlerTracker doesnât work with IRequestHandlerDelegate</li> - <li>[WICKET-6238] - pub2 Wicket example isnât switching the beer images</li> - <li>[WICKET-6241] - CheckingObjectOutputStream should track the original instance, before writeReplace()</li> - <li>[WICKET-6242] - Weak concurrency management in AuthenticatedWebSession#signedIn</li> - <li>[WICKET-6244] - Palette does not list unselected options</li> - <li>[WICKET-6245] - Open up CsrfPreventionRequestCycleListener for extension</li> - <li>[WICKET-6249] - Invalid state of LoadableDetachableModel with exception during load()</li> - <li>[WICKET-6250] - FileUploadField does not deteach models and fails to null the reference to the transient fileUploads field if forceCloseStreamsOnDetach is false</li> - <li>[WICKET-6254] - Wicket WebSockets problem behind HTTP proxy without servlet context</li> -</ul> - -<h5 id="improvement">Improvement</h5> - -<ul> - <li>[WICKET-5866] - Reconsider generics of IConverterLocator#getConverter()</li> - <li>[WICKET-5920] - roll a version of ListDataProvider implementing ISortableDetachable model</li> - <li>[WICKET-6200] - Add default converters for Java 8 classes</li> - <li>[WICKET-6203] - Rename IModel#mapWith() to IModel#combineWith() and reorder the parameters</li> - <li>[WICKET-6206] - Allow to use custom anticache parameter value for Image component</li> - <li>[WICKET-6210] - FileUpload does not support files of zero size</li> - <li>[WICKET-6211] - PasswordTextField should clear password by default</li> - <li>[WICKET-6226] - DOCTYPE URL in properties.xml example in wicket documentation wonât work.</li> - <li>[WICKET-6228] - Hide AuthenticatedWebSession#signOut() from the public API</li> - <li>[WICKET-6229] - Introduce a new setting in ExceptionSettings to control whether to throw exception or log a WARN when requesting for markup id on non-renderable component</li> - <li>[WICKET-6233] - Add component info in the error messages related to WicketTester #assertComponentOnAjaxResponse()</li> - <li>[WICKET-6234] - Log the decrypted url in CryptoMapper for debugging purposes</li> - <li>[WICKET-6239] - Use Response#addHeader() instead of #setContentLength()</li> - <li>[WICKET-6240] - Hook method to display more information on ExceptionErrorPage</li> -</ul> - -<h5 id="new-feature">New Feature</h5> - -<ul> - <li>[WICKET-5623] - Custom Getters and Setters for PropertyResolver</li> - <li>[WICKET-6194] - PushBuilder API integration</li> -</ul> -</content> - </entry> - </feed> http://git-wip-us.apache.org/repos/asf/wicket-site/blob/be50bb6d/content/contribute/build.html ---------------------------------------------------------------------- diff --git a/content/contribute/build.html b/content/contribute/build.html index db3c2de..666e260 100644 --- a/content/contribute/build.html +++ b/content/contribute/build.html @@ -66,7 +66,7 @@ maintainable, enterprise ready build. The book is available for free from the Mergere website.</p> <h2 id="getting-your-wicket-version">Getting your Wicket version</h2> <p>Clone the master branch from Apache Git Wicket repository</p> -<figure class="highlight"><pre><code class="language-console" data-lang="console">$ git clone http://git-wip-us.apache.org/repos/asf/wicket.git</code></pre></figure> +<figure class="highlight"><pre><code class="language-console" data-lang="console"><span class="w">$ </span><span class="nc">git</span><span class="kv"> clone http://git-wip-us.apache.org/repos/asf/wicket.git</span></code></pre></figure> <p>This will give you a directory structure like the following directory tree:</p> <figure class="highlight"><pre><code class="language-console" data-lang="console">wicket wicket/wicket-core @@ -75,12 +75,12 @@ wicket/wicket-spring wicket/wicket-auth-roles wicket/wicket-examples wicket/wicket-spring-annot -...</code></pre></figure> +<span class="err">...</span></code></pre></figure> <p>To check out a different branch use:</p> -<figure class="highlight"><pre><code class="language-console" data-lang="console">$ cd wicket -$ git checkout -b release/wicket-x.y.z release/wicket-x.y.z -# verify the branch with: -$ git branch</code></pre></figure> +<figure class="highlight"><pre><code class="language-console" data-lang="console"><span class="w">$ </span><span class="nc">cd</span><span class="kv"> wicket +</span><span class="w">$ </span><span class="nc">git</span><span class="kv"> checkout -b release/wicket-x.y.z release/wicket-x.y.z +</span><span class="ni"># </span><span class="nc">verify</span><span class="kv"> the branch with: +</span><span class="w">$ </span><span class="nc">git</span><span class="kv"> branch</span></code></pre></figure> <p>In this document we focus at the maven project descriptor located in the top level directory, which enforces default settings for all Wicket projects such as plug-in settings, versioning of the Wicket projects, managing the various @@ -93,9 +93,9 @@ This top-level project doesnât have sources for itself.</p> fully compatible with that Java version, you will need to build it with a Java 6 compiler and runtime library.</p> <p>If you havenât done so already change into the Wicket root directory:</p> -<figure class="highlight"><pre><code class="language-console" data-lang="console">cd wicket</code></pre></figure> +<figure class="highlight"><pre><code class="language-console" data-lang="console"><span class="err">cd wicket</span></code></pre></figure> <p>Now building all of Wicket is as simple as issuing the following command:</p> -<figure class="highlight"><pre><code class="language-console" data-lang="console">mvn install</code></pre></figure> +<figure class="highlight"><pre><code class="language-console" data-lang="console"><span class="err">mvn install</span></code></pre></figure> <p>This will compile, test, package and install all Wicket projects. Installation means putting the jar files into your local Maven repository, including the source, but without the javadoc jars (this is a Wicket specific configuration, @@ -114,7 +114,7 @@ automatically.</p> <h3 id="coping-with-test-failures">Coping with test failures</h3> <p>As this is our main development you might/will encounter failing unit tests. These can be skipped using:</p> -<figure class="highlight"><pre><code class="language-console" data-lang="console">mvn -Dmaven.test.skip=true install</code></pre></figure> +<figure class="highlight"><pre><code class="language-console" data-lang="console"><span class="err">mvn -Dmaven.test.skip=true install</span></code></pre></figure> <p>Of course, all bets are off then and your mileage may vary if you use such a built jar.</p> <h3 id="using-your-own-built-artifacts">Using your own built artifacts</h3> @@ -129,7 +129,7 @@ version. So in your pom.xml you can use:</p> <span class="nt"></dependency></span></code></pre></figure> <p>And adding this to your Eclipse, NetBeans or IntelliJ IDEA project classpath is then as simple as:</p> -<figure class="highlight"><pre><code class="language-console" data-lang="console">mvn eclipse:eclipse</code></pre></figure> +<figure class="highlight"><pre><code class="language-console" data-lang="console"><span class="err">mvn eclipse:eclipse</span></code></pre></figure> <p>or opening the project using Netbeans or IDEAs Maven integration.</p> <p>Maven will then add all the necessary JAR files to the projectâs classpath.</p> <p>One thing you need to make sure is that you have set the <code class="highlighter-rouge">M2_REPO</code> classpath @@ -137,7 +137,7 @@ variable in Eclipse (or a similar construct in Netbeans), and point it to your local repository, typically found in <code class="highlighter-rouge">C:\Documents and Settings\username\.m2\repo</code> or (for unix buffs) <code class="highlighter-rouge">~/.m2/repo</code></p> <p>You can add this setting using maven:</p> -<figure class="highlight"><pre><code class="language-console" data-lang="console">mvn -Declipse.workspace=<path-to-eclipse-workspace> eclipse:add-maven-repo</code></pre></figure> +<figure class="highlight"><pre><code class="language-console" data-lang="console"><span class="err">mvn -Declipse.workspace=<path-to-eclipse-workspace> eclipse:add-maven-repo</span></code></pre></figure> </section> </div> </main> http://git-wip-us.apache.org/repos/asf/wicket-site/blob/be50bb6d/content/contribute/ides.html ---------------------------------------------------------------------- diff --git a/content/contribute/ides.html b/content/contribute/ides.html index e76f5b7..1315729 100644 --- a/content/contribute/ides.html +++ b/content/contribute/ides.html @@ -63,13 +63,13 @@ by their respective development teams.</p> <h3 id="eclipse">Eclipse</h3> <p>Eclipse offers a good support for Maven based projects with <a href="http://www.eclipse.org/m2e/">plugin M2Eclipse</a>. Once installed you can go to âImportâ¦->Existing Maven Projectsâ and import one or more Maven projects into your workspace.</p> <p>Alternatively, you can generate an Eclipse project typing the following command on projectâs root:</p> -<figure class="highlight"><pre><code class="language-console" data-lang="console">mvn eclipse:eclipse</code></pre></figure> +<figure class="highlight"><pre><code class="language-console" data-lang="console"><span class="err">mvn eclipse:eclipse</span></code></pre></figure> <p>Maven will add all the necessary JAR files to the projectâs classpath. Now the sources can be imported in Eclipse using the âExisting Projects into Workspaceâ wizard.</p> <p>If not already present the <code class="highlighter-rouge">M2_REPO</code> classpath variable has to point to your local Maven repository. The repository is typically found in <code class="highlighter-rouge">C:\Documents and Settings\<username>\.m2\repo</code> or (for unix buffs) <code class="highlighter-rouge">~/.m2/repo</code>. It can be set within Eclipse (Preferences->Java->Build Path->Classpath Variables) or with the help of Maven:</p> -<figure class="highlight"><pre><code class="language-console" data-lang="console">mvn -Declipse.workspace=<path-to-eclipse-workspace> eclipse:add-maven-repo</code></pre></figure> +<figure class="highlight"><pre><code class="language-console" data-lang="console"><span class="err">mvn -Declipse.workspace=<path-to-eclipse-workspace> eclipse:add-maven-repo</span></code></pre></figure> <p>If you want to go along with the Wicket way of code formatting you should import the Wicket code format profile into your workspace (Preferences->Java->Code Style->Formatter), found in:</p> -<figure class="highlight"><pre><code class="language-console" data-lang="console"><path-to-eclipse-workspace>/wicket-core/EclipseCodeFormat.xml</code></pre></figure> +<figure class="highlight"><pre><code class="language-console" data-lang="console"><span class="err"><path-to-eclipse-workspace>/wicket-core/EclipseCodeFormat.xml</span></code></pre></figure> <p>Finally configure the editor to automatically format all edited lines and organize imports on save (Preferences->Java->Editor->Save Actions).</p> <h3 id="netbeans">NetBeans</h3> <p>NetBeans comes with Maven integration. Further help can be found at their <a href="http://wiki.netbeans.org/MavenBestPractices" title="NetBeans Community Wiki">Wiki</a></p> http://git-wip-us.apache.org/repos/asf/wicket-site/blob/be50bb6d/content/contribute/patch.html ---------------------------------------------------------------------- diff --git a/content/contribute/patch.html b/content/contribute/patch.html index 716d7bf..755722e 100644 --- a/content/contribute/patch.html +++ b/content/contribute/patch.html @@ -116,7 +116,7 @@ Git</a> and when you have finished your work create a patch with the following commands:</p> <figure class="highlight"><pre><code class="language-console" data-lang="console">git add any_files_you_created_modified_or_deleted -git diff --cached > /tmp/WICKET-NNNN.patch</code></pre></figure> +<span class="err">git diff --cached > /tmp/WICKET-NNNN.patch</span></code></pre></figure> <p>where NNNN is the issue number. Finally, attach that file (/tmp/WICKET-NNNN.patch) to the <a href="https://issues.apache.org/jira/browse/WICKET">JIRA</a></p> http://git-wip-us.apache.org/repos/asf/wicket-site/blob/be50bb6d/content/contribute/release.html ---------------------------------------------------------------------- diff --git a/content/contribute/release.html b/content/contribute/release.html index 391b218..c23f0aa 100644 --- a/content/contribute/release.html +++ b/content/contribute/release.html @@ -75,24 +75,24 @@ <ul> <li>Start gpg-agent as a daemon (OS X, using homebrew installation of gpg, gpg-agent, pinentry):</li> </ul> -<figure class="highlight"><pre><code class="language-console" data-lang="console"> eval `gpg-agent --daemon --pinentry-program /usr/local/bin/pinentry`</code></pre></figure> +<figure class="highlight"><pre><code class="language-console" data-lang="console"><span class="err"> eval `gpg-agent --daemon --pinentry-program /usr/local/bin/pinentry`</span></code></pre></figure> <ul> <li>Create an environment variable such that you can copy/paste several of the following commands (substitute 6.0.0 with the number youâre actually going to release):</li> </ul> -<figure class="highlight"><pre><code class="language-console" data-lang="console">export NEWVERSION=6.0.0</code></pre></figure> +<figure class="highlight"><pre><code class="language-console" data-lang="console"><span class="err">export NEWVERSION=6.0.0</span></code></pre></figure> <ul> <li>Sign pom.xml such that gpg-agent has enabled your key (and remove the .asc file). This triggers the pinentry program and sets the stage for gpg-agent:</li> </ul> <figure class="highlight"><pre><code class="language-console" data-lang="console">gpg --armor --detach-sign --use-agent --sign pom.xml -rm pom.xml.asc</code></pre></figure> +<span class="err">rm pom.xml.asc</span></code></pre></figure> <ul> <li>Create release branch:</li> </ul> -<figure class="highlight"><pre><code class="language-console" data-lang="console">mvn release:branch -DbranchName=build/wicket-$NEWVERSION</code></pre></figure> +<figure class="highlight"><pre><code class="language-console" data-lang="console"><span class="err">mvn release:branch -DbranchName=build/wicket-$NEWVERSION</span></code></pre></figure> <ul> <li>Checkout the release branch:</li> </ul> -<figure class="highlight"><pre><code class="language-console" data-lang="console">git checkout build/wicket-$NEWVERSION</code></pre></figure> +<figure class="highlight"><pre><code class="language-console" data-lang="console"><span class="err">git checkout build/wicket-$NEWVERSION</span></code></pre></figure> <ul> <li> <p>Update archetypes/quickstart/src/main/archetype-resources/pom.xml to use NEWVERSION of Wicket and commit</p> @@ -106,16 +106,16 @@ rm pom.xml.asc</code></pre></figure> </ul> </li> </ul> -<figure class="highlight"><pre><code class="language-console" data-lang="console">mvn release:prepare</code></pre></figure> +<figure class="highlight"><pre><code class="language-console" data-lang="console"><span class="err">mvn release:prepare</span></code></pre></figure> <ul> <li>Remove last commit such that HEAD points to the NEWVERSION release, not the new development version</li> </ul> -<figure class="highlight"><pre><code class="language-console" data-lang="console">git reset HEAD^ --hard</code></pre></figure> +<figure class="highlight"><pre><code class="language-console" data-lang="console"><span class="err">git reset HEAD^ --hard</span></code></pre></figure> <ul> <li>Create source archive:</li> </ul> <figure class="highlight"><pre><code class="language-console" data-lang="console">git archive --format=tar.gz --prefix=apache-wicket-$NEWVERSION/ -o apache-wicket-$NEWVERSION.tar.gz wicket-$NEWVERSION -git archive --format=zip --prefix=apache-wicket-$NEWVERSION/ -o apache-wicket-$NEWVERSION.zip wicket-$NEWVERSION</code></pre></figure> +<span class="err">git archive --format=zip --prefix=apache-wicket-$NEWVERSION/ -o apache-wicket-$NEWVERSION.zip wicket-$NEWVERSION</span></code></pre></figure> <ul> <li><strong>NOTE 1</strong> the trailing â/â after âprefix=NEWVERSION is vital for the tarball</li> <li><strong>NOTE 2</strong> you can ignore the gpg generated messages telling âYou need a passphrase to unlock the secret key forâ, unless an error occurredâthese messages are not error messages</li> @@ -126,21 +126,21 @@ gpg --armor --detach-sign --use-agent --sign apache-wicket-$NEWVERSION.zip gpg --print-md SHA1 apache-wicket-$NEWVERSION.tar.gz > apache-wicket-$NEWVERSION.tar.gz.sha gpg --print-md MD5 apache-wicket-$NEWVERSION.tar.gz > apache-wicket-$NEWVERSION.tar.gz.md5 gpg --print-md SHA1 apache-wicket-$NEWVERSION.zip > apache-wicket-$NEWVERSION.zip.sha -gpg --print-md MD5 apache-wicket-$NEWVERSION.zip > apache-wicket-$NEWVERSION.zip.md5</code></pre></figure> +<span class="err">gpg --print-md MD5 apache-wicket-$NEWVERSION.zip > apache-wicket-$NEWVERSION.zip.md5</span></code></pre></figure> <p>To sign the tag (overwrites the maven generated tag), execute:</p> -<figure class="highlight"><pre><code class="language-console" data-lang="console">git tag -s --force wicket-$NEWVERSION</code></pre></figure> +<figure class="highlight"><pre><code class="language-console" data-lang="console"><span class="err">git tag -s --force wicket-$NEWVERSION</span></code></pre></figure> <h4 id="staging-the-build">Staging the build</h4> <figure class="highlight"><pre><code class="language-console" data-lang="console">ssh apache...@people.apache.org mkdir public_html/wicket-$NEWVERSION -scp apache-wicket-* apache...@people.apache.org:public_html/wicket-$NEWVERSION</code></pre></figure> +<span class="err">scp apache-wicket-* apache...@people.apache.org:public_html/wicket-$NEWVERSION</span></code></pre></figure> <p><strong>TODO</strong> figure out how to let <code class="highlighter-rouge">release:perform</code> work from a local checkout, such that we can actually <em>stage</em> the build instead of having to push the tag to our git repo.</p> <p>The following steps are ONLY necessary as long as the above TODO has not been resolved.</p> <figure class="highlight"><pre><code class="language-console" data-lang="console">git push origin build/wicket-$NEWVERSION:refs/heads/build/wicket-$NEWVERSION -git push -tags origin</code></pre></figure> +<span class="err">git push -tags origin</span></code></pre></figure> <p>The step below uploads the artifacts to a staging area for Maven. * assumes you have an Apache nexus account * will checkout a fresh copy and build it (ask Maven for why) * artifacts will have different signature than in previous release:prepare build (due to times changing)</p> -<figure class="highlight"><pre><code class="language-console" data-lang="console">mvn release:perform</code></pre></figure> +<figure class="highlight"><pre><code class="language-console" data-lang="console"><span class="err">mvn release:perform</span></code></pre></figure> <p>This will upload artifacts and signatures to Apache nexus in a staging repository.</p> <h4 id="create-a-binary-release">Create a binary release</h4> <p>As we donât vote on binary packages, but do want to cater to developers not using Maven, it is very convenient to create a download for non-Maven users.</p> @@ -163,14 +163,14 @@ gpg --print-md MD5 apache-wicket-$NEWVERSION-bin.tar.gz > apache-wicket-$NEW gpg --print-md SHA1 apache-wicket-$NEWVERSION-bin.zip > apache-wicket-$NEWVERSION.-binzip.sha gpg --print-md MD5 apache-wicket-$NEWVERSION-bin.zip > apache-wicket-$NEWVERSION-bin.zip.md5 ssh apache...@people.apache.org mkdir public_html/wicket-$NEWVERSION/bin -scp apache-wicket-*bin.* apache...@people.apache.org:public_html/wicket-$NEWVERSION/bin</code></pre></figure> +<span class="err">scp apache-wicket-*bin.* apache...@people.apache.org:public_html/wicket-$NEWVERSION/bin</span></code></pre></figure> <p>This binary release contains all required files to comply with the release policy, and the binary artefacts generated by our Maven release build, including the experimental modules and examples.</p> <h4 id="vote-the-build">Vote the build</h4> <p>Start a vote on dev@ for this release. Allow for at least 72 hours, and ensure you take into account weekends.</p> <h4 id="promoting-the-build">Promoting the build</h4> <p>The following two steps are only necessary when the previous TODO is resolved (you canât push the tag twice).</p> <figure class="highlight"><pre><code class="language-console" data-lang="console">git push origin build/wicket-$NEWVERSION:refs/heads/build/wicket-$NEWVERSION -git push -tags origin</code></pre></figure> +<span class="err">git push -tags origin</span></code></pre></figure> <p>You only need to do them if you havenât done so yet.</p> <p>See also <a href="#nexus">managing nexus</a> for the steps needed to publish the artifacts to Maven Central. And donât forget to announce the release!</p> <h2 id="release-14">Releasing Apache Wicket 1.4.x+</h2> @@ -192,7 +192,7 @@ git push -tags origin</code></pre></figure> <password>$your_apache_password</password> </server> </servers> -</settings></code></pre></figure> +<span class="err"></settings></span></code></pre></figure> <ul> <li>Make sure you have a GnuPG key which is added to <a href="https://svn.apache.org/repos/asf/wicket/common/KEYS">KEYS</a>. Read the header of KEYS file to see how to add it.</li> @@ -207,7 +207,7 @@ will copy the assemblies to your people.apache.org account.</li> <figure class="highlight"><pre><code class="language-console" data-lang="console">ssh people.apache.org mkdir /www/www.apache.org/dist/wicket/x.y.z mv ~/public_html/wicket-x.y.z/dist/* /www/www.apache.org/dist/wicket/x.y.z -chown -R :wicket /www/www.apache.org/dist/wicket/x.y.z</code></pre></figure> +<span class="err">chown -R :wicket /www/www.apache.org/dist/wicket/x.y.z</span></code></pre></figure> <ul> <li>Login to <a href="https://repository.apache.org">Apache Nexus Staging repo</a>, select the closed repository and click <strong>Release</strong>. It will be accessible immediately through the apache release repo and then within 1-2 hours through maven central.</li> <li>If the release is voted down you can <strong>Drop</strong> the staged release and then restage later after incorporating the necessary changes.</li> @@ -215,7 +215,7 @@ chown -R :wicket /www/www.apache.org/dist/wicket/x.y.z</code></pre></figure> </ul> <figure class="highlight"><pre><code class="language-console" data-lang="console">git checkout build/wicket-x.y.z git tag release/wicket-x.y.z -git push --tags</code></pre></figure> +<span class="err">git push --tags</span></code></pre></figure> <ul> <li>Wait until repo1.maven.org has picked up the release artifacts.</li> <li>Wait 24 hours until mirrors picked up release artifacts</li> @@ -238,7 +238,7 @@ git push --tags</code></pre></figure> <password>$password</password> </server> </servers> -</settings></code></pre></figure> +<span class="err"></settings></span></code></pre></figure> <p>This works if you can deploy artifacts into the repository.apache.org properly (i.e. you donât see failures mentioning 401 errors).</p> <h3 id="managing-staged-artifacts">Managing Staged Artifacts</h3> <p>By logging in with your Apache committer credentials to <a href="https://repository.apache.org">Apache Nexus Staging repo</a> you can access the management interface for the staged artifacts.</p> @@ -273,14 +273,14 @@ contains your announcement.</li> <a href="https://svn.apache.org/repos/asf/wicket/common/site/apidocs/1.4">https://svn.apache.org/repos/asf/wicket/common/site/apidocs/1.4</a> svnpubsub will push this directly to our website. (example script below)</li> </ul> -<figure class="highlight"><pre><code class="language-console" data-lang="console"># do this in your locally-checked-out release branch (i.e. svn.../releases/wicket-1.4.13) -mvn javadoc:aggregate -# note that you may need to tweak these paths to fit your configuration: -cp -r target/site/apidocs/* ../wicket-common/site/apidocs/1.4/ +<figure class="highlight"><pre><code class="language-console" data-lang="console"><span class="ni"># </span><span class="nc">do</span><span class="kv"> this in your locally-checked-out release branch (i.e. svn.../releases/wicket-1.4.13) +</span>mvn javadoc:aggregate +<span class="ni"># </span><span class="nc">note</span><span class="kv"> that you may need to tweak these paths to fit your configuration: +</span>cp -r target/site/apidocs/* ../wicket-common/site/apidocs/1.4/ cd ../wicket-common/ -# call "svn add" for files that are new (there's probably an easier way to do this) -svn stat | grep -e '^?' | sed 's/\?\W*//' | xargs svn add -svn commit -m "changes to update javadocs to latest release"</code></pre></figure> +<span class="ni"># </span><span class="nc">call</span><span class="kv"> "svn add" for files that are new (there's probably an easier way to do this) +</span>svn stat | grep -e '^?' | sed 's/\?\W*//' | xargs svn add +<span class="err">svn commit -m "changes to update javadocs to latest release"</span></code></pre></figure> </section> </div> </main> http://git-wip-us.apache.org/repos/asf/wicket-site/blob/be50bb6d/content/contribute/write.html ---------------------------------------------------------------------- diff --git a/content/contribute/write.html b/content/contribute/write.html index 85ea5a8..8dc7162 100644 --- a/content/contribute/write.html +++ b/content/contribute/write.html @@ -69,14 +69,14 @@ announcements, adding new committers and other important Wicket related news.</p <h2 id="install">Install Jekyll</h2> <p>Follow the instructions available on the <a href="http://github.com/mojombo/jekyll">Jekyll website</a>. Basically it boils down to:</p> -<figure class="highlight"><pre><code class="language-console" data-lang="console">gem install jekyll</code></pre></figure> +<figure class="highlight"><pre><code class="language-console" data-lang="console"><span class="err">gem install jekyll</span></code></pre></figure> <p>You also need to install the Pygments Python module.</p> <h2 id="clone">Clone wicket-site</h2> <p>Before you can edit the site, you need to clone it:</p> <figure class="highlight"><pre><code class="language-bash" data-lang="bash">git clone g...@github.com:apache/wicket-site.git</code></pre></figure> <h2 id="run">Run the site</h2> <p>You can run the website and edit it live:</p> -<figure class="highlight"><pre><code class="language-console" data-lang="console">jekyll serve -w</code></pre></figure> +<figure class="highlight"><pre><code class="language-console" data-lang="console"><span class="err">jekyll serve -w</span></code></pre></figure> <p>This not only runs the server, but watches for modifications and regenerates any modified files.</p> <p>You can check out the website running at <a href="http://localhost:4000">localhost, port 4000</a>.</p> http://git-wip-us.apache.org/repos/asf/wicket-site/blob/be50bb6d/content/help/index.html ---------------------------------------------------------------------- diff --git a/content/help/index.html b/content/help/index.html index bf1b1ca..4fdafb7 100644 --- a/content/help/index.html +++ b/content/help/index.html @@ -145,7 +145,7 @@ experience to it, possibly including a <a href="#bugquickstart">quick start</a>. <p>Wicket releases new versions on a regular basis. Chances are that your bug has been solved in a recent version. So if for instance you discover a bug in Wicket 6.2.0, it might be fixed in a newer version -(the current version of Wicket 6.x is 6.26.0).</p> +(the current version of Wicket 6.x is 6.27.0).</p> <p>So we ask you to try the latest version of the branch of Wicket you are working on. If the bug still remains,</p> <p>Check if your version is no longer maintained on our download page. If @@ -159,18 +159,18 @@ Wicket Stuff or another project, please ensure that the version you use is compatible with your Wicket version.</p> <p>You canât use Wicket 1.5.x libraries with Wicket 6.x, Wicket 7.x or Wicket 8.x. It should be safe to use a library compatible with Wicket 6.0 with -6.26.0</p> +6.27.0</p> <p>For example:</p> <ul> - <li>wicket-extensions-1.5.12.jar is not compatible with wicket-core-6.26.0</li> + <li>wicket-extensions-1.5.12.jar is not compatible with wicket-core-6.27.0</li> </ul> <p>Possible, but not advisable:</p> <ul> - <li>wicket-extensions-6.10.0 should be compatible with wicket-core-6.26.0</li> + <li>wicket-extensions-6.10.0 should be compatible with wicket-core-6.27.0</li> </ul> <p>Advised:</p> <ul> - <li>Use wicket-extensions-6.26.0 with wicket-core-6.26.0</li> + <li>Use wicket-extensions-6.27.0 with wicket-core-6.27.0</li> </ul> <p>This also holds true for release of our sister project <em>Wicket Stuff</em>.</p> <h3 id="bugquickstart">Provide a Quick Start</h3> http://git-wip-us.apache.org/repos/asf/wicket-site/blob/be50bb6d/content/index.html ---------------------------------------------------------------------- diff --git a/content/index.html b/content/index.html index dcbfbef..3e5df1c 100644 --- a/content/index.html +++ b/content/index.html @@ -225,67 +225,67 @@ </div> <div class="l-two-third"> <article> - <h2>Apache Wicket 8.0.0-M6 released</h2> - <small>18 May 2017</small> - <p>The Apache Wicket PMC is proud to announce Apache Wicket 8.0.0-M6!</p> + <h2>Apache Wicket 6.27.0 released</h2> + <small>06 Jul 2017</small> + <p>The Apache Wicket PMC is proud to announce Apache Wicket 6.27.0!</p> <p>Apache Wicket is an open source Java component oriented web application framework that powers thousands of web applications and web sites for governments, stores, universities, cities, banks, email providers, and more. You can find more about Apache Wicket at https://wicket.apache.org</p> -<p>This release marks another minor release of Wicket 8. We +<p>This release marks another minor release of Wicket 6. We use semantic versioning for the development of Wicket, and as such no API breaks are present breaks are present in this release compared to -8.0.0.</p> +6.0.0.</p> <h2 id="new-and-noteworthy">New and noteworthy</h2> -<p>With this version Wicket removed its internal JSON implementation -(based on project <a href="https://github.com/stleary/JSON-java">JSON-java</a>) replacing it with -external project <a href="https://github.com/openjson/openjson">Open JSON</a>. -This was necessary as JSON-javaâs license is no longer compatible with Apache License 2.0.</p> +<p>With this version Wicket changed its internal JSON implementation (package org.apache.wicket.ajax.json) switching from project JSON-java (https://github.com/stleary/JSON-java) to Open JSON (https://github.com/openjson/openjson). This was necessery as JSON-javaâs license is no longer compatible with Apache License 2.0.</p> <h2 id="using-this-release">Using this release</h2> <p>With Apache Maven update your dependency to (and donât forget to update any other dependencies on Wicket projects to the same version):</p> <figure class="highlight"><pre><code class="language-xml" data-lang="xml"><span class="nt"><dependency></span> <span class="nt"><groupId></span>org.apache.wicket<span class="nt"></groupId></span> <span class="nt"><artifactId></span>wicket-core<span class="nt"></artifactId></span> - <span class="nt"><version></span>8.0.0-M6<span class="nt"></version></span> + <span class="nt"><version></span>6.27.0<span class="nt"></version></span> <span class="nt"></dependency></span></code></pre></figure> <p>Or download and build the distribution yourself, or use our convenience binary package</p> <ul> - <li>Source: <a href="http://www.apache.org/dyn/closer.cgi/wicket/8.0.0-M6">8.0.0-M6 source download</a></li> - <li>Binary: <a href="http://www.apache.org/dyn/closer.cgi/wicket/8.0.0-M6/binaries">8.0.0-M6 binary download</a></li> + <li>Source: <a href="http://www.apache.org/dyn/closer.cgi/wicket/6.27.0">6.27.0 source download</a></li> + <li>Binary: <a href="http://www.apache.org/dyn/closer.cgi/wicket/6.27.0/binaries">6.27.0 binary download</a></li> </ul> - <a href="/news/2017/05/18/wicket-8.0.0-M6-released.html">Read more...</a> + <a href="/news/2017/07/06/wicket-6.27.0-released.html">Read more...</a> </article> <article> - <h2>Apache Wicket 7.7.0 released</h2> - <small>16 May 2017</small> - <p>The Apache Wicket PMC is proud to announce Apache Wicket 7.7.0!</p> + <h2>Apache Wicket 8.0.0-M6 released</h2> + <small>18 May 2017</small> + <p>The Apache Wicket PMC is proud to announce Apache Wicket 8.0.0-M6!</p> <p>Apache Wicket is an open source Java component oriented web application framework that powers thousands of web applications and web sites for governments, stores, universities, cities, banks, email providers, and more. You can find more about Apache Wicket at https://wicket.apache.org</p> -<p>This release marks another minor release of Wicket 7. We +<p>This release marks another minor release of Wicket 8. We use semantic versioning for the development of Wicket, and as such no API breaks are present breaks are present in this release compared to -7.0.0.</p> +8.0.0.</p> <h2 id="new-and-noteworthy">New and noteworthy</h2> -<p>With this version Wicket changed its internal JSON implementation (package org.apache.wicket.ajax.json) switching from project JSON-java (https://github.com/stleary/JSON-java) to Open JSON (https://github.com/openjson/openjson). This was necessery as JSON-javaâs license is no longer compatible with Apache License 2.0.</p> +<p>With this version Wicket removed its internal JSON implementation +(based on project <a href="https://github.com/stleary/JSON-java">JSON-java</a>) replacing it with +external project <a href="https://github.com/openjson/openjson">Open JSON</a>. +This was necessary as JSON-javaâs license is no longer compatible with Apache License 2.0.</p> <h2 id="using-this-release">Using this release</h2> <p>With Apache Maven update your dependency to (and donât forget to update any other dependencies on Wicket projects to the same version):</p> <figure class="highlight"><pre><code class="language-xml" data-lang="xml"><span class="nt"><dependency></span> <span class="nt"><groupId></span>org.apache.wicket<span class="nt"></groupId></span> <span class="nt"><artifactId></span>wicket-core<span class="nt"></artifactId></span> - <span class="nt"><version></span>7.7.0<span class="nt"></version></span> + <span class="nt"><version></span>8.0.0-M6<span class="nt"></version></span> <span class="nt"></dependency></span></code></pre></figure> <p>Or download and build the distribution yourself, or use our convenience binary package</p> <ul> - <li>Source: <a href="http://www.apache.org/dyn/closer.cgi/wicket/7.7.0">7.7.0 source download</a></li> - <li>Binary: <a href="http://www.apache.org/dyn/closer.cgi/wicket/7.7.0/binaries">7.7.0 binary download</a></li> + <li>Source: <a href="http://www.apache.org/dyn/closer.cgi/wicket/8.0.0-M6">8.0.0-M6 source download</a></li> + <li>Binary: <a href="http://www.apache.org/dyn/closer.cgi/wicket/8.0.0-M6/binaries">8.0.0-M6 binary download</a></li> </ul> - <a href="/news/2017/05/16/wicket-7.7.0-released.html">Read more...</a> + <a href="/news/2017/05/18/wicket-8.0.0-M6-released.html">Read more...</a> </article> </div> <div class="l-one-third news"> @@ -297,6 +297,12 @@ title="Atom 1.0 feed" href="/atom.xml">RSS feed</a> to get updates in your favorite RSS reader the moment they happen.</p> <ul> <li> + <h3>Apache Wicket 8.0.0-M6 released</h3> + <small>18 May 2017</small> + The Apache Wicket PMC is proud to announce Apache Wicket 8.0.0-M6! Apache Wicket is an open source Java component oriented web application framework that powers... + <a href="/news/2017/05/18/wicket-8.0.0-M6-released.html">more</a> +</li> +<li> <h3>Apache Wicket 7.7.0 released</h3> <small>16 May 2017</small> The Apache Wicket PMC is proud to announce Apache Wicket 7.7.0! Apache Wicket is an open source Java component oriented web application framework that powers... @@ -320,12 +326,6 @@ get updates in your favorite RSS reader the moment they happen.</p> Severity: Low Vendor: The Apache Software Foundation Versions Affected: Apache Wicket 6.x and 1.5.x Description: Depending on the ISerializer set in the Wicket application, itâs... <a href="/news/2016/12/31/cve-2016-6793.html">more</a> </li> -<li> - <h3>Apache Wicket 8.0.0-M3 released</h3> - <small>29 Dec 2016</small> - The Apache Wicket PMC is proud to announce Apache Wicket 8.0.0-M3! Apache Wicket is an open source Java component oriented web application framework that powers... - <a href="/news/2016/12/29/wicket-8.0.0-M3-released.html">more</a> -</li> </ul> </div> <div class="l-first"></div> http://git-wip-us.apache.org/repos/asf/wicket-site/blob/be50bb6d/content/learn/examples/ajaxcounter.html ---------------------------------------------------------------------- diff --git a/content/learn/examples/ajaxcounter.html b/content/learn/examples/ajaxcounter.html index e013c2d..6b99e5b 100644 --- a/content/learn/examples/ajaxcounter.html +++ b/content/learn/examples/ajaxcounter.html @@ -81,15 +81,15 @@ how it works on the Java side:</p> <span class="kn">import</span> <span class="nn">wicket.markup.html.link.Link</span><span class="o">;</span> <span class="kn">import</span> <span class="nn">wicket.model.Model</span><span class="o">;</span> <span class="kd">public</span> <span class="kd">class</span> <span class="nc">Index</span> <span class="kd">extends</span> <span class="n">QuickStartPage</span> <span class="o">{</span> - <span class="kd">public</span> <span class="n">Index</span><span class="o">()</span> <span class="o">{</span> + <span class="kd">public</span> <span class="nf">Index</span><span class="o">()</span> <span class="o">{</span> <span class="n">Model</span><span class="o"><</span><span class="n">Integer</span><span class="o">></span> <span class="n">model</span> <span class="o">=</span> <span class="k">new</span> <span class="n">Model</span><span class="o"><</span><span class="n">Integer</span><span class="o">>()</span> <span class="o">{</span> <span class="kd">private</span> <span class="kt">int</span> <span class="n">counter</span> <span class="o">=</span> <span class="mi">0</span><span class="o">;</span> - <span class="kd">public</span> <span class="n">Integer</span> <span class="n">getObject</span><span class="o">()</span> <span class="o">{</span> + <span class="kd">public</span> <span class="n">Integer</span> <span class="nf">getObject</span><span class="o">()</span> <span class="o">{</span> <span class="k">return</span> <span class="n">counter</span><span class="o">++;</span> <span class="o">}</span> <span class="o">};</span> <span class="n">add</span><span class="o">(</span><span class="k">new</span> <span class="n">Link</span><span class="o">(</span><span class="s">"link"</span><span class="o">)</span> <span class="o">{</span> - <span class="kd">public</span> <span class="kt">void</span> <span class="n">onClick</span><span class="o">()</span> <span class="o">{</span> + <span class="kd">public</span> <span class="kt">void</span> <span class="nf">onClick</span><span class="o">()</span> <span class="o">{</span> <span class="c1">// do nothing.</span> <span class="o">}</span> <span class="o">});</span> @@ -117,15 +117,15 @@ provides a fallback to a normal request in case no Ajax is available.</p> <span class="kn">import</span> <span class="nn">wicket.markup.html.basic.Label</span><span class="o">;</span> <span class="kn">import</span> <span class="nn">wicket.model.Model</span><span class="o">;</span> <span class="kd">public</span> <span class="kd">class</span> <span class="nc">Index</span> <span class="kd">extends</span> <span class="n">QuickStartPage</span> <span class="o">{</span> - <span class="kd">public</span> <span class="n">Index</span><span class="o">()</span> <span class="o">{</span> + <span class="kd">public</span> <span class="nf">Index</span><span class="o">()</span> <span class="o">{</span> <span class="n">Model</span><span class="o"><</span><span class="n">Integer</span><span class="o">></span> <span class="n">model</span> <span class="o">=</span> <span class="k">new</span> <span class="n">Model</span><span class="o"><</span><span class="n">Integer</span><span class="o">>()</span> <span class="o">{</span> <span class="kd">private</span> <span class="kt">int</span> <span class="n">counter</span> <span class="o">=</span> <span class="mi">0</span><span class="o">;</span> - <span class="kd">public</span> <span class="n">Integer</span> <span class="n">getObject</span><span class="o">()</span> <span class="o">{</span> + <span class="kd">public</span> <span class="n">Integer</span> <span class="nf">getObject</span><span class="o">()</span> <span class="o">{</span> <span class="k">return</span> <span class="n">counter</span><span class="o">++;</span> <span class="o">}</span> <span class="o">};</span> <span class="n">add</span><span class="o">(</span><span class="k">new</span> <span class="n">AjaxFallbackLink</span><span class="o">(</span><span class="s">"link"</span><span class="o">)</span> <span class="o">{</span> - <span class="kd">public</span> <span class="kt">void</span> <span class="n">onClick</span><span class="o">(</span><span class="n">AjaxRequestTarget</span> <span class="n">target</span><span class="o">)</span> <span class="o">{</span> + <span class="kd">public</span> <span class="kt">void</span> <span class="nf">onClick</span><span class="o">(</span><span class="n">AjaxRequestTarget</span> <span class="n">target</span><span class="o">)</span> <span class="o">{</span> <span class="c1">// add the components that need to be updated to </span> <span class="c1">// the target</span> <span class="o">}</span> @@ -145,17 +145,17 @@ request target.</p> <span class="kn">import</span> <span class="nn">wicket.markup.html.basic.Label</span><span class="o">;</span> <span class="kn">import</span> <span class="nn">wicket.model.Model</span><span class="o">;</span> <span class="kd">public</span> <span class="kd">class</span> <span class="nc">Index</span> <span class="kd">extends</span> <span class="n">QuickStartPage</span> <span class="o">{</span> - <span class="kd">public</span> <span class="n">Index</span><span class="o">()</span> <span class="o">{</span> + <span class="kd">public</span> <span class="nf">Index</span><span class="o">()</span> <span class="o">{</span> <span class="n">Model</span><span class="o"><</span><span class="n">Integer</span><span class="o">></span> <span class="n">model</span> <span class="o">=</span> <span class="k">new</span> <span class="n">Model</span><span class="o"><</span><span class="n">Integer</span><span class="o">>()</span> <span class="o">{</span> <span class="kd">private</span> <span class="kt">int</span> <span class="n">counter</span> <span class="o">=</span> <span class="mi">0</span><span class="o">;</span> - <span class="kd">public</span> <span class="n">Integer</span> <span class="n">getObject</span><span class="o">()</span> <span class="o">{</span> + <span class="kd">public</span> <span class="n">Integer</span> <span class="nf">getObject</span><span class="o">()</span> <span class="o">{</span> <span class="k">return</span> <span class="n">counter</span><span class="o">++;</span> <span class="o">}</span> <span class="o">};</span> <span class="kd">final</span> <span class="n">Label</span><span class="o"><</span><span class="n">Integer</span><span class="o">></span> <span class="n">label</span> <span class="o">=</span> <span class="k">new</span> <span class="n">Label</span><span class="o"><</span><span class="n">Integer</span><span class="o">>(</span><span class="s">"counter"</span><span class="o">,</span> <span class="n">model</span><span class="o">);</span> <span class="n">label</span><span class="o">.</span><span class="na">setOutputMarkupId</span><span class="o">(</span><span class="kc">true</span><span class="o">);</span> <span class="n">add</span><span class="o">(</span><span class="k">new</span> <span class="n">AjaxFallbackLink</span><span class="o">(</span><span class="s">"link"</span><span class="o">)</span> <span class="o">{</span> - <span class="kd">public</span> <span class="kt">void</span> <span class="n">onClick</span><span class="o">(</span><span class="n">AjaxRequestTarget</span> <span class="n">target</span><span class="o">)</span> <span class="o">{</span> + <span class="kd">public</span> <span class="kt">void</span> <span class="nf">onClick</span><span class="o">(</span><span class="n">AjaxRequestTarget</span> <span class="n">target</span><span class="o">)</span> <span class="o">{</span> <span class="k">if</span> <span class="o">(</span><span class="n">target</span> <span class="o">!=</span> <span class="kc">null</span><span class="o">)</span> <span class="o">{</span> <span class="c1">// target is only available in an Ajax request</span> <span class="n">target</span><span class="o">.</span><span class="na">addComponent</span><span class="o">(</span><span class="n">label</span><span class="o">);</span> http://git-wip-us.apache.org/repos/asf/wicket-site/blob/be50bb6d/content/learn/examples/dropdownchoice.html ---------------------------------------------------------------------- diff --git a/content/learn/examples/dropdownchoice.html b/content/learn/examples/dropdownchoice.html index be6d985..633c5f2 100644 --- a/content/learn/examples/dropdownchoice.html +++ b/content/learn/examples/dropdownchoice.html @@ -69,13 +69,13 @@ select the manager of an employee.</p> <span class="cm">/** * Used to display the person. */</span> - <span class="kd">public</span> <span class="n">String</span> <span class="n">toString</span><span class="o">()</span> <span class="o">{</span> + <span class="kd">public</span> <span class="n">String</span> <span class="nf">toString</span><span class="o">()</span> <span class="o">{</span> <span class="k">return</span> <span class="n">name</span><span class="o">;</span> <span class="o">}</span> <span class="cm">/** * Gets the list of possible managers from the database. */</span> - <span class="kd">public</span> <span class="kd">static</span> <span class="n">List</span><span class="o"><</span><span class="n">Person</span><span class="o">></span> <span class="n">getManagers</span><span class="o">()</span> <span class="o">{</span> + <span class="kd">public</span> <span class="kd">static</span> <span class="n">List</span><span class="o"><</span><span class="n">Person</span><span class="o">></span> <span class="nf">getManagers</span><span class="o">()</span> <span class="o">{</span> <span class="c1">// gets the managers from the database</span> <span class="o">}</span> <span class="o">}</span></code></pre></figure> @@ -115,7 +115,7 @@ The <code class="highlighter-rouge"><option></code> tags are there for pre with the generated choices.</p> <p>Letâs see how the page looks like from the Java side:</p> <figure class="highlight"><pre><code class="language-java" data-lang="java"><span class="kd">public</span> <span class="kd">class</span> <span class="nc">AssignManagerPage</span> <span class="kd">extends</span> <span class="n">WebPage</span> <span class="o">{</span> - <span class="kd">public</span> <span class="n">AssignManagerPage</span><span class="o">(</span><span class="n">Person</span> <span class="n">employee</span><span class="o">)</span> <span class="o">{</span> + <span class="kd">public</span> <span class="nf">AssignManagerPage</span><span class="o">(</span><span class="n">Person</span> <span class="n">employee</span><span class="o">)</span> <span class="o">{</span> <span class="n">Form</span> <span class="n">form</span> <span class="o">=</span> <span class="k">new</span> <span class="n">Form</span><span class="o">(</span><span class="s">"form"</span><span class="o">);</span> <span class="n">add</span><span class="o">(</span><span class="n">form</span><span class="o">);</span> <span class="n">form</span><span class="o">.</span><span class="na">add</span><span class="o">(</span><span class="k">new</span> <span class="n">Label</span><span class="o">(</span><span class="s">"name"</span><span class="o">,</span> <span class="k">new</span> <span class="n">PropertyModel</span><span class="o"><</span><span class="n">String</span><span class="o">>(</span><span class="n">employee</span><span class="o">,</span> <span class="s">"name"</span><span class="o">)));</span> @@ -124,7 +124,7 @@ with the generated choices.</p> <span class="k">new</span> <span class="n">PropertyModel</span><span class="o"><</span><span class="n">Person</span><span class="o">>(</span><span class="n">employee</span><span class="o">,</span> <span class="s">"managedBy"</span><span class="o">),</span> <span class="k">new</span> <span class="n">LoadableDetachableModel</span><span class="o"><</span><span class="n">List</span><span class="o"><</span><span class="n">Person</span><span class="o">>>()</span> <span class="o">{</span> <span class="nd">@Override</span> - <span class="kd">protected</span> <span class="n">Object</span> <span class="n">load</span><span class="o">()</span> <span class="o">{</span> + <span class="kd">protected</span> <span class="n">Object</span> <span class="nf">load</span><span class="o">()</span> <span class="o">{</span> <span class="k">return</span> <span class="n">Person</span><span class="o">.</span><span class="na">getManagers</span><span class="o">();</span> <span class="o">}</span> <span class="o">}</span>