<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>STUQ.nl &#187; Wicket</title>
	<atom:link href="http://stuq.nl/category/wicket/feed" rel="self" type="application/rss+xml" />
	<link>http://stuq.nl</link>
	<description></description>
	<lastBuildDate>Thu, 30 Dec 2010 10:23:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>London Wicket Meetup: Wicket 1.5, WiQuery, Brix and more..</title>
		<link>http://stuq.nl/weblog/2009-11-27/london-wicket-meetup-wicket-1-5-wiquery-brix-and-more</link>
		<comments>http://stuq.nl/weblog/2009-11-27/london-wicket-meetup-wicket-1-5-wiquery-brix-and-more#comments</comments>
		<pubDate>Thu, 26 Nov 2009 23:05:45 +0000</pubDate>
		<dc:creator>Daan</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Wicket]]></category>
		<category><![CDATA[London]]></category>
		<category><![CDATA[Meetup]]></category>

		<guid isPermaLink="false">http://stuq.nl/?p=507</guid>
		<description><![CDATA[On November 21st the London Wicket meetup took place in "The Gallery" at the central London Foyles Bookshop. At the venue some well-known Wicket-related speakers made their entrance and held talks about Brix, Wicket 1.5, WiQuery, and how having a baby compares to writing a book.<p>Read the original at <a href="http://stuq.nl/weblog/2009-11-27/london-wicket-meetup-wicket-1-5-wiquery-brix-and-more">London Wicket Meetup: Wicket 1.5, WiQuery, Brix and more..</a> or go to the homepage of <a href="http://stuq.nl">STUQ.nl</a></p>


<br/><br/>
Related posts:<ul><li><a href='http://stuq.nl/weblog/2009-11-01/automatically-test-your-wicket-panel-html-markup' rel='bookmark' title='Automatically test your Wicket panel HTML markup'>Automatically test your Wicket panel HTML markup</a></li>
<li><a href='http://stuq.nl/weblog/2008-12-02/847-is-a-resource-statistics-about-wicket' rel='bookmark' title='8.47% is a Resource: statistics about Wicket'>8.47% is a Resource: statistics about Wicket</a></li>
<li><a href='http://stuq.nl/weblog/2008-09-03/user-friendly-form-validation-with-wicket' rel='bookmark' title='User friendly form validation with Wicket'>User friendly form validation with Wicket</a></li>
</ul>]]></description>
			<content:encoded><![CDATA[<p><img style="float: right; clear: both; margin-top: 10px; margin-left: 10px" class="alignright size-full wp-image-534" title="London Wicket Meetup" src="http://stuq.nl/media/london-wicket-meetup.png" alt="London Wicket Meetup" width="300" />On November 21st the London Wicket meetup took place in &#8220;The Gallery&#8221; at the central London Foyles Bookshop. At the venue some well-known Wicket-related speakers made their entrance and held talks about Brix, Wicket 1.5, WiQuery, and how having a baby compares to writing a book.</p>
<p>This is the summary of that afternoon. You should have been there&#8230;</p>
<p>Keep an eye <a href="http://stuq.nl/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL2p3ZWVrZW5kLmNvLnVrL2Rldi9MV1VHUmVnLw==" target=\"_blank\">on this page</a> for when the next London Wicket event is scheduled.</p>
<h3>Overview</h3>
<p>Click on an item to jump down (same page) to the notes from that presentation.</p>
<ul>
<li><a href="http://stuq.nl/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=I2ludHJvZHVjdGlvbg==">Cemal Bayramoglu: Introduction</a></li>
<li><a href="http://stuq.nl/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=I2plcmVteV90aG9tZXJzb24=">Jeremy Thomerson (USA): Custom JavaScript Integrations with Wicket + Auto Resolvers</a></li>
<li><a href="http://stuq.nl/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=I2xpb25lbF9hcm1hbmV0">Lionel Armanet (FR): Announcing WiQuery 1.0: Introduction &amp; Demo</a></li>
<li><a href="http://stuq.nl/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=I21hdGVqX2tub3Bw">Matej Knopp (SK): BRIX CMS + Wicket 1.5 Developments Q&amp;A</a></li>
<li><a href="http://stuq.nl/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=I3N2ZW5fbWVpZXI=">Sven Meier (DE): Trees, Drag&amp;Drop and more:</a></li>
<li><a href="http://stuq.nl/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=I21hcnRpam5fZGFzaG9yc3Q=">Martijn Dashorst (NL): Writing Books vs Making Babies</a></li>
<li><a href="http://stuq.nl/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=I3FfYW5kX2E=">Wicket Q&amp;A</a></li>
</ul>
<p>(Unfortunately Alastair Maw couldn&#8217;t make it as he was sick. Hope you will soon be better!)</p>
<div id="attachment_512" class="wp-caption alignright" style="width: 160px"><a href="http://stuq.nl/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3N0dXEubmwvbWVkaWEvY2VtYWxfYmF5cmFtb2dsdS5qcGc="><img class="size-thumbnail wp-image-512" title="Cemal Bayramoglu of jWeekend giving the introductory talk for the London Wicket meetup." src="http://stuq.nl/media/cemal_bayramoglu-150x150.jpg" alt="Cemal Bayramoglu of jWeekend giving the introductory talk for the London Wicket meetup." width="150" height="150" /></a><p class="wp-caption-text">Cemal giving the introductory talk</p></div>
<h3><a name="introduction"></a>Cemal Bayramoglu: Introduction</h3>
<p>As usual, the London Wicket Meetup is kindly hosted by Cemal Bayramoglu of <a href="http://stuq.nl/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL2p3ZWVrZW5kLmNvLnVrLw==">jWeekend</a>. Thanks Cemal!<br />
<br style="clear: both" /></p>
<div id="attachment_519" class="wp-caption alignright" style="width: 160px"><a href="http://stuq.nl/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3N0dXEubmwvbWVkaWEvamVyZW15X3Rob21lcnNvbi5qcGc="><img class="size-thumbnail wp-image-519 " title="Jeremy Thomerson showing some code at the London Wicket meetup." src="http://stuq.nl/media/jeremy_thomerson-150x150.jpg" alt="Jeremy Thomerson showing some code at the London Wicket meetup." width="150" height="150" /></a><p class="wp-caption-text">Jeremy Thomerson showing some code</p></div>
<h3><a name="jeremy_thomerson"></a>Jeremy Thomerson (USA): Custom JavaScript Integrations with Wicket + Auto Resolvers</h3>
<p>Jeremy Thomerson started his talk with an example of how to do client side validation in Wicket. He showed abstract validation behaviors that validated form input with jQuery.</p>
<p>The remarkable thing was that by adding just one behavior to a component, validation was added for both the server side and the client side. This makes it very easy to keep client and server side validation in sync.</p>
<p>The Javascript behavior is added by letting the behavior implement iHeaderContributor and adding the script in the onRenderHead method call.</p>
<h4>Auto component resolution</h4>
<p>The next part of Jeremy&#8217;s presentation was about the AutoComponentResolver. The AutoComponentResolver makes it possible to wire components directly in HTML, without adding the component explicitly in Java. His demo showed how to use an AutoComponentResolver.</p>
<p>Matej Knopp commented that it is not really recommended to use automatic component resolving, because it has a limited use. The main purpose of auto component resolvers is for simple components that do not have a long lifetime on the page. For example the &lt;wicket:message&gt; tag is handled by automatic component resolving and is replaced by a Label with a ResourceModel. More complicated use cases are not supported nor recommended.</p>
<p>Components added via auto-resolving are not serialized or stored in the session and lose all state.</p>
<div id="attachment_521" class="wp-caption alignright" style="width: 160px"><a href="http://stuq.nl/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3N0dXEubmwvbWVkaWEvbGlvbmVsX2FybWFuZXQuanBn"><img class="size-thumbnail wp-image-521" title="Lionel Armanet showing us the WiQuery goodness at the London Wicket meetup." src="http://stuq.nl/media/lionel_armanet-150x150.jpg" alt="Lionel Armanet showing us the WiQuery goodness at the London Wicket meetup." width="150" height="150" /></a><p class="wp-caption-text">Lionel Armanet showing us the WiQuery goodness he and his fellow Frenchmen created.</p></div>
<h3><a name="lionel_armanet"></a>Lionel Armanet (FR): Announcing WiQuery 1.0: Introduction &amp; Demo</h3>
<p>The presentation of Lionel Armanet was an impressive demo of what <a href="http://stuq.nl/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL2NvZGUuZ29vZ2xlLmNvbS9wL3dpcXVlcnk=">WiQuery</a> is capable of. WiQuery integrates jQuery with Wicket, with clever tricks that ease development. WickeXt was merged with jQuery4Wicket and changed its name to WiQuery. Last week was the 1.0 release, and the library is available under the MIT license.</p>
<p>The rationale behind WiQuery is that to build rich internet applications, you need rich behaviors and components. jQuery is simple, unobtrusive and powerful, there are tons of plugins and jQuery UI has fancy components. So, let&#8217;s get jQuery, integrate it with Wicket and have the best of both worlds!</p>
<p>WiQuery has standard components and behaviors like the resize behavior, drag and drop behavior, datepicker component, etcetera. By simply adding Java components, WiQuery generates the Javascript for you and imports the required libraries.</p>
<h4>Setting up WiQuery</h4>
<p>There are two ways to setup wiquery:</p>
<p>With a WiQueryCoreInstantiationListener:</p>

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;">addComponentInstantiationListener<span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> WiQueryInstantiationListener<span style="color: #009900;">&#41;</span></pre></div></div>

<p>Or by extending the Abstract class WiQueryWebApplication.</p>
<h4>Demo</h4>
<p>After the theory, Lionel showed an impressive demo with a drag-and-drop Scrum taskboard. The task board had three columns (new, in progress, done), from which task items could be dragged and dropped around. Double clicking an item showes the details for that task.</p>
<p>The double click action is easily added with:</p>

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;">add<span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> WiQueryAjaxEventBehavior<span style="color: #009900;">&#40;</span><span style="color: #003399;">MouseEvent</span>.<span style="color: #006633;">DBLCLICK</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
   ....
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>With the IThemableApplication interface you can make your application themable, like the themes that jQuery UI has.</p>
<div id="attachment_531" class="wp-caption alignright" style="width: 160px"><a href="http://stuq.nl/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3N0dXEubmwvbWVkaWEvbWF0ZWpfa25vcHAuanBn"><img class="size-thumbnail wp-image-531" title="Matej Knopp talked about Brix and Wicket 1.5 on the London Wicket meetup" src="http://stuq.nl/media/matej_knopp-150x150.jpg" alt="Matej Knopp talked about Brix and Wicket 1.5 on the London Wicket meetup" width="150" height="150" /></a><p class="wp-caption-text">Matej Knopp talked about Brix and Wicket 1.5.</p></div>
<h3><a name="matej_knopp"></a>Matej Knopp (SK): BRIX CMS + Wicket 1.5 Developments Q&amp;A</h3>
<p>Matej Knopp showed what the content management system <a href="http://stuq.nl/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL2NvZGUuZ29vZ2xlLmNvbS9wL2JyaXgtY21zLw==">Brix</a> is all about. Brix is based on Wicket and is a component based content management system based on JCR for storage.</p>
<p>Brix is meant for integration with Wicket web applications and looks very interesting. The basic building blocks in Brix are Tiles, Pages, and Templates.</p>
<p>In Brix, Tiles are like a factory for embedding Wicket components. So any Wicket component can be added to a Page which is nearly impossible in &#8216;regular&#8217; CMS systems. More information about Brix can be found on <a href="http://stuq.nl/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL2NvZGUuZ29vZ2xlLmNvbS9wL2JyaXgtY21zLw==">the Brix website.</a></p>
<h4>Wicket 1.5</h4>
<p>Matej also talked about some new developments that can possibly be shipped in Wicket 1.5:</p>
<ul>
<li>New RequestCycle</li>
<li>New RequestMapper</li>
<li>New Ajax implementation</li>
</ul>
<p><strong>New RequestCycle and RequestMapper</strong></p>
<p><strong><span style="font-weight: normal;">One of the areas where improvements can be made is the RequestCycle. The RequestCycle in Wicket 1.4.x is big and complicated, and hard to step through while debugging. Matej worked on an improved RequestCycle.</span></strong></p>
<p>Matej talked about the drawbacks of the Wicket 1.4 code for handling requests and mapping requests to URL&#8217;s:</p>
<ul>
<li>Complicated, huge code base</li>
<li>Many abstractions, most of them on wrong level</li>
<li>Complicated class hierarchy, hard to find proper extension point</li>
</ul>
<p>He proposed a new RequestMapper that handles Request mapping in a different way.</p>
<p><strong>RequestMapper Interface</strong></p>
<p>The RequestMapper will get the following interface.</p>

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">interface</span> RequestMapper <span style="color: #009900;">&#123;</span>
<span style="color: #000066; font-weight: bold;">int</span> getCompatibilityScore<span style="color: #009900;">&#40;</span><span style="color: #003399;">Request</span> request<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
RequestHandler mapRequest<span style="color: #009900;">&#40;</span><span style="color: #003399;">Request</span> request<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
Url mapHandler<span style="color: #009900;">&#40;</span>RequestHandler requestHandler<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>With the RequestMapper interface you can implement your own Request Mapping behavior for various URL&#8217;s.<br />
There can be a hierarchy of RequestMappers. When there is more than one RequestMapper, the compatibility score can be used to choose which RequestMapper will be used.</p>
<p><strong>Calculating RequestMapper compatibility score</strong></p>
<p>The compatibility score is calculated by counting how many URL segments match the mount point.<br />
For example, having an application where two RequestMappers are defined with these URLs:</p>
<ol>
<li>/mounted/page</li>
<li>/mounted/page/that/is/different</li>
</ol>
<p>When there is a new Request on &#8220;/mounted/page/that/is/&#8221;, the second RequestMapper gets a higher compatibility score (4) than the RequestMapper matching only the first two parts of the URL (&#8220;/mounted/page/&#8221;).</p>
<p><strong>New AJAX implementation</strong></p>
<p>About a year ago, Matej created a new Ajax implementation for Wicket. The new Ajax implementation is way better than what is now in Wicket 1.4. It is faster, simpler to use and will be based on a standard library. There is only one problem, the new Ajax implementation Matej built uses YUI. It seems that the world prefers jQuery over YUI. Matej told that rewriting it to jQuery will be a lot of work.</p>
<p>The focus of the new Ajax implementation is removing browser inconsistency code. The custom-written Wicket Javascript will be swapped for more standard Javascript (like the YUI or jQuery libraries).</p>
<p>The API for working with Javascript will be different and much cleaner according to Matej. Also, the generated Javascript is nicer: code is not put directly in the onclick of a UI control, but separately. This looks like how WiQuery does stuff. This means that the Javascript handlers are much shorter, so the page loads faster.</p>
<p>There is an experimental branch in source control, so if you want to try it out or convert it to jQuery, you are welcome to check it out.</p>
<p><strong>Problems with implementation Wicket 1.5</strong></p>
<p>There are some challenges with the implementation of Wicket 1.5. Matej touched a few and gave some insight in what needs to be done. The big question is: how to build this without breaking anything? How can we undo the universe?</p>
<p>One point was the use of global state during the 1.4 Wicket RequestCycle. This makes it difficult to implement the new RequestCycle in core, because much code and unit tests rely on this global state.</p>
<p>Another challenge is keeping the WicketTester in a workable state. The new RequestCycle breaks WicketTester, which is problematic because many people are using WicketTester. Fixing WicketTester is not really easy, because it is a big class with much functionality. It can simulate a lot of actions, like file upload and form submission.</p>
<div id="attachment_527" class="wp-caption alignright" style="width: 160px"><a href="http://stuq.nl/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3N0dXEubmwvbWVkaWEvc3Zlbl9tZWllci5qcGc="><img class="size-thumbnail wp-image-527" title="Sven Meier encouraged us to not refrain from writing custom Javascript on the London Wicket meetup" src="http://stuq.nl/media/sven_meier-150x150.jpg" alt="Sven Meier encouraged us to not refrain from writing custom Javascript on the London Wicket meetup" width="150" height="150" /></a><p class="wp-caption-text">Sven Meier encouraged us to not refrain from writing custom Javascript.</p></div>
<h3><a name="sven_meier"></a>Sven Meier (DE):</h3>
<p>Sven Meier showed us his implementation of a <a href="http://stuq.nl/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL2NvZGUuZ29vZ2xlLmNvbS9wL3dpY2tldC10cmVlLw==">TreeModel</a>. He argued that Swing&#8217;s TreeModel is not suitable for implementing a tree in Wicket: &#8220;The treemodel is ugly, and there are many methods you don&#8217;t need in Wicket.&#8221;</p>
<p>His implementation allows hierarchical markup in the tree. This makes it easier to use and extend. It uses simple and known patterns. Partial update is not there yet.</p>
<p>Google Code hosts the <a href="http://stuq.nl/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL2NvZGUuZ29vZ2xlLmNvbS9wL3dpY2tldC10cmVlLw==">Wicket Tree project</a>.</p>
<p><strong>Drag and drop</strong></p>
<p>Sven also created Wicket drag and drop functionality, which is also <a href="http://stuq.nl/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL2NvZGUuZ29vZ2xlLmNvbS9wL3dpY2tldC1kbmQv">hosted at Google Code</a>.</p>
<p>This project enables you to drag and drop between any Wicket component. It supports common desktop metaphors with &#8216;MOVE&#8217;, &#8216;COPY&#8217; and &#8216;LINK&#8217; operations and is fully themable.</p>
<p>Sven&#8217;s closing remarks were: &#8220;Don&#8217;t fret from developing custom Javascript. It&#8217;s really easy with Wicket!&#8221;</p>
<div id="attachment_524" class="wp-caption alignright" style="width: 160px"><a href="http://stuq.nl/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3N0dXEubmwvbWVkaWEvbWFydGlqbl9kYXNob3JzdC5qcGc="><img class="size-thumbnail wp-image-524" title="Martijn Dashorst compared having a baby to writing a book on the London Wicket meetup" src="http://stuq.nl/media/martijn_dashorst-150x150.jpg" alt="Martijn Dashorst compared having a baby to writing a book on the London Wicket meetup" width="150" height="150" /></a><p class="wp-caption-text">Martijn Dashorst compared having a baby to writing a book.</p></div>
<h3><a name="martijn_dashorst"></a>Martijn Dashorst (NL):</h3>
<p>Martijn&#8217;s presentation was titled &#8220;Writing Books vs Making Babies&#8221; and was a hilarious story with good slides. We have been informed of all the gory details of writing a book (finding the publisher, writing, editing, checking, etcetera) and learned something about having a baby as well!</p>
<h3><a name="q_and_a"></a>Wicket Q&amp;A</h3>
<p>There were not many questions about Wicket, which is proof for the developer friendliness of Wicket <img src='http://stuq.nl/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<h3>Were you there?</h3>
<p>If you were at the London Wicket meetup (presenter or attendee) or plan to go there next time, please comment below!</p>
<p>If you send me links to the presentations, I will add them to the article.</p>
<p>Read the original at <a href="http://stuq.nl/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3N0dXEubmwvd2VibG9nLzIwMDktMTEtMjcvbG9uZG9uLXdpY2tldC1tZWV0dXAtd2lja2V0LTEtNS13aXF1ZXJ5LWJyaXgtYW5kLW1vcmU=">London Wicket Meetup: Wicket 1.5, WiQuery, Brix and more..</a> or go to the homepage of <a href="http://stuq.nl/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3N0dXEubmw=">STUQ.nl</a></p>
 <img src="http://stuq.nl/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=507" width="1" height="1" style="display: none;" /><div id="simple_socialmedia"><ul class="ssm_row"><li class="sharetext">Share:</li><li class="twitter"><a target="_blank" href="http://twitter.com/share?url=http://stuq.nl/weblog/2009-11-27/london-wicket-meetup-wicket-1-5-wiquery-brix-and-more&amp;text=London Wicket Meetup: Wicket 1.5, WiQuery, Brix and more..&amp;via=daanvanetten">Tweet</a></li><li class="facebook"><a target="_blank" title="Share on Facebook" rel="nofollow" href="http://www.facebook.com/sharer.php?u=http://stuq.nl/weblog/2009-11-27/london-wicket-meetup-wicket-1-5-wiquery-brix-and-more&amp;t=London Wicket Meetup: Wicket 1.5, WiQuery, Brix and more..">Facebook</a></li><li class="linkedin"><a target="_blank" title="Share on LinkedIn" rel="nofollow" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://stuq.nl/weblog/2009-11-27/london-wicket-meetup-wicket-1-5-wiquery-brix-and-more&amp;title=London Wicket Meetup: Wicket 1.5, WiQuery, Brix and more..&amp;source=STUQ.nl">LinkedIn</a></li><li class="tumblr"><a target="_blank" title="Share on Tumblr" rel="nofollow" href="http://www.tumblr.com/share/link?url=http%3A%2F%2Fstuq.nl%2Fweblog%2F2009-11-27%2Flondon-wicket-meetup-wicket-1-5-wiquery-brix-and-more&name=STUQ.nl&description=London+Wicket+Meetup%3A+Wicket+1.5%2C+WiQuery%2C+Brix+and+more.." title="Share on Tumblr">Tumblr</a></li><li class="stumble"><a target="_blank" title="Share on StumbleUpon" rel="nofollow" href="http://www.stumbleupon.com/submit?url=http://stuq.nl/weblog/2009-11-27/london-wicket-meetup-wicket-1-5-wiquery-brix-and-more">Stumble</a></li><li class="digg"><a target="_blank" title="Share on Digg" rel="nofollow" href="http://www.digg.com/submit?phase=2&amp;url=http://stuq.nl/weblog/2009-11-27/london-wicket-meetup-wicket-1-5-wiquery-brix-and-more">Digg</a></li><li class="delicious"><a target="_blank" title="Share on Delicious" rel="nofollow" href="http://del.icio.us/post?url=http://stuq.nl/weblog/2009-11-27/london-wicket-meetup-wicket-1-5-wiquery-brix-and-more&amp;title=INSERT_TITLE">Delicious</a></li></ul></div>

<br/><br/><p>Related posts:<ul><li><a href='http://stuq.nl/weblog/2009-11-01/automatically-test-your-wicket-panel-html-markup' rel='bookmark' title='Automatically test your Wicket panel HTML markup'>Automatically test your Wicket panel HTML markup</a></li>
<li><a href='http://stuq.nl/weblog/2008-12-02/847-is-a-resource-statistics-about-wicket' rel='bookmark' title='8.47% is a Resource: statistics about Wicket'>8.47% is a Resource: statistics about Wicket</a></li>
<li><a href='http://stuq.nl/weblog/2008-09-03/user-friendly-form-validation-with-wicket' rel='bookmark' title='User friendly form validation with Wicket'>User friendly form validation with Wicket</a></li>
</ul></p>]]></content:encoded>
			<wfw:commentRss>http://stuq.nl/weblog/2009-11-27/london-wicket-meetup-wicket-1-5-wiquery-brix-and-more/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Automatically test your Wicket panel HTML markup</title>
		<link>http://stuq.nl/weblog/2009-11-01/automatically-test-your-wicket-panel-html-markup</link>
		<comments>http://stuq.nl/weblog/2009-11-01/automatically-test-your-wicket-panel-html-markup#comments</comments>
		<pubDate>Sun, 01 Nov 2009 20:03:04 +0000</pubDate>
		<dc:creator>Daan</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Productivity]]></category>
		<category><![CDATA[Scala]]></category>
		<category><![CDATA[Wicket Tutorials]]></category>
		<category><![CDATA[JUnit]]></category>
		<category><![CDATA[Spring]]></category>
		<category><![CDATA[Unit testing]]></category>
		<category><![CDATA[Wicket]]></category>

		<guid isPermaLink="false">http://stuq.nl/?p=471</guid>
		<description><![CDATA[Are you testing your HTML markup automatically yet? If your markup does not match the Java code, your Wicket panel does not work. It’s easy to get early feedback when your panels are broken: just unit test them!

In this blog post I describe a way of automatically verifying that the HTML markup of Wicket panels match the Java code. <strong>Scroll down to download the demo project!</strong><p>Read the original at <a href="http://stuq.nl/weblog/2009-11-01/automatically-test-your-wicket-panel-html-markup">Automatically test your Wicket panel HTML markup</a> or go to the homepage of <a href="http://stuq.nl">STUQ.nl</a></p>


<br/><br/>
Related posts:<ul><li><a href='http://stuq.nl/weblog/2008-06-05/wicket-how-to-write-a-reusable-modal-window-popup' rel='bookmark' title='Wicket: how to write a reusable modal window popup'>Wicket: how to write a reusable modal window popup</a></li>
<li><a href='http://stuq.nl/weblog/2008-06-20/create-restful-urls-with-wicket' rel='bookmark' title='Create RESTful URLs with Wicket'>Create RESTful URLs with Wicket</a></li>
<li><a href='http://stuq.nl/weblog/2008-09-03/user-friendly-form-validation-with-wicket' rel='bookmark' title='User friendly form validation with Wicket'>User friendly form validation with Wicket</a></li>
</ul>]]></description>
			<content:encoded><![CDATA[<p>Are you testing your HTML markup automatically yet? If your markup does not match the Java code, your Wicket panel does not work. It’s easy to get early feedback when your panels are broken: just unit test them!</p>
<p>In this blog post I describe a way of automatically verifying that the HTML markup of Wicket panels match the Java code. <strong>Scroll down to download the demo project!</strong></p>
<h3>Unit test</h3>
<p><img style="float: right; clear: right; padding: 5px;" title="Unit testing Wicket panels with Eclipse" src="http://stuq.nl/media/eclipse-unit-testing.png" alt="Unit testing Wicket panels with Eclipse" />I created a JUnit test that you can add to your project to <strong>automatically test as much Wicket Panels</strong> as possible. Automatic testing works by resolving all panels on the Java class path and feeding them to the WicketTester. When a panel has invalid markup, the WicketTester will give an error: early feedback!</p>
<h3>How does it work?</h3>
<p>The Wicket panels that can automatically be tested should have a ‘default’ Wicket constructor, like this:</p>

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">public</span> DemoPanel<span style="color: #009900;">&#40;</span><span style="color: #003399;">String</span> id<span style="color: #009900;">&#41;</span></pre></div></div>

<p>Resolving all panels is done with Spring 2.5’s <a href="http://stuq.nl/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3N0YXRpYy5zcHJpbmdzb3VyY2Uub3JnL3NwcmluZy9kb2NzLzIuNS54L2FwaS9vcmcvc3ByaW5nZnJhbWV3b3JrL2NvbnRleHQvYW5ub3RhdGlvbi9DbGFzc1BhdGhTY2FubmluZ0NhbmRpZGF0ZUNvbXBvbmVudFByb3ZpZGVyLmh0bWw=" target=\"_blank\">ClassPathScanningCandidateComponentProvider</a> (don’t you love those names! How can they stay below 120 characters per line?)</p>
<p>The <strong>ClassPathScanningCandidateComponentProvider</strong> is a component provider that scans the classpath from a base package. It then applies exclude and include filters to the resulting classes to find candidates.</p>
<h3>Testing panels</h3>

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;">@Test
    <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> testAllWicketPanels<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">throws</span> <span style="color: #003399;">Exception</span> <span style="color: #009900;">&#123;</span>
        WicketTester wicketTester <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> WicketTester<span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> WicketApplication<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    	ClassPathScanningCandidateComponentProvider provider <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> ClassPathScanningCandidateComponentProvider<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        provider.<span style="color: #006633;">addIncludeFilter</span><span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> AssignableTypeFilter<span style="color: #009900;">&#40;</span><span style="color: #003399;">Panel</span>.<span style="color: #000000; font-weight: bold;">class</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
        <span style="color: #003399;">Set</span> components <span style="color: #339933;">=</span> provider.<span style="color: #006633;">findCandidateComponents</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;nl/stuq/demo&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #000000; font-weight: bold;">for</span> <span style="color: #009900;">&#40;</span>BeanDefinition component <span style="color: #339933;">:</span> components<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
            <span style="color: #000000; font-weight: bold;">Class</span> clazz <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">Class</span>.<span style="color: #006633;">forName</span><span style="color: #009900;">&#40;</span>component.<span style="color: #006633;">getBeanClassName</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            <span style="color: #000000; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>hasDefaultConstructor<span style="color: #009900;">&#40;</span>clazz<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
            	testWicketPanel<span style="color: #009900;">&#40;</span>wicketTester, clazz<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            <span style="color: #009900;">&#125;</span>
        <span style="color: #009900;">&#125;</span>
    <span style="color: #009900;">&#125;</span>
&nbsp;
    <span style="color: #000000; font-weight: bold;">private</span> <span style="color: #000066; font-weight: bold;">void</span> testWicketPanel<span style="color: #009900;">&#40;</span>WicketTester wicketTester, <span style="color: #000000; font-weight: bold;">Class</span> clazz<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    	wicketTester.<span style="color: #006633;">startPanel</span><span style="color: #009900;">&#40;</span>clazz<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    	wicketTester.<span style="color: #006633;">assertNoErrorMessage</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    	wicketTester.<span style="color: #006633;">assertNoInfoMessage</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
&nbsp;
    <span style="color: #000000; font-weight: bold;">private</span> <span style="color: #000066; font-weight: bold;">boolean</span> hasDefaultConstructor<span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">Class</span> clazz<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #000000; font-weight: bold;">for</span><span style="color: #009900;">&#40;</span><span style="color: #003399;">Constructor</span> constructor <span style="color: #339933;">:</span> clazz.<span style="color: #006633;">getConstructors</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
            <span style="color: #000000; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>constructor.<span style="color: #006633;">getParameterTypes</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #006633;">length</span> <span style="color: #339933;">==</span> <span style="color: #cc66cc;">1</span> <span style="color: #339933;">&amp;</span>amp<span style="color: #339933;">;&amp;</span>amp<span style="color: #339933;">;</span>
               constructor.<span style="color: #006633;">getParameterTypes</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span>.<span style="color: #006633;">getSimpleName</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #006633;">equals</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;String&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
                <span style="color: #000000; font-weight: bold;">return</span> <span style="color: #000066; font-weight: bold;">true</span><span style="color: #339933;">;</span>
            <span style="color: #009900;">&#125;</span>
        <span style="color: #009900;">&#125;</span>
&nbsp;
        <span style="color: #000000; font-weight: bold;">return</span> <span style="color: #000066; font-weight: bold;">false</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span></pre></div></div>

<p>The test instantiates a new WicketTester. After that, the <strong>ClassPathScanningCandidateComponentProvider</strong> is created and configured to scan only for Panel classes in the <tt>nl.stuq.demo</tt> package and below.<br />
After that, the found components are all checked. If they have a default constructor, the test is executed.</p>
<p>The <strong>boolean hasDefaultConstructor(clazz)</strong> method checks if the class has a constructor with only one String argument, the Wicket id.</p>
<h3>Keep in mind</h3>
<ul>
<li>This is only for lazy people (good developers are lazy in some ways).</li>
<li>You need a dependency to Spring.</li>
<li>Only Panels with a certain constructor are tested.</li>
<li>Only instantiating the Panel is tested, so code coverage has no meaning for this test. <strong>Real testing is still needed.</strong></li>
</ul>
<h3>Download demo project</h3>
<p>The demo project is a Maven project based on the Wicket 1.4.3 quickstart that contains the test class and an example panel to be tested.<br />
<strong><a onclick=\"javascript: pageTracker._trackPageview('/downloads/media/code/demo-automatic-panel-testing.zip');\" href="http://stuq.nl/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=L21lZGlhL2NvZGUvZGVtby1hdXRvbWF0aWMtcGFuZWwtdGVzdGluZy56aXA=">Download demo project</a></strong>.</p>
<p>Extract the zip file and run <strong>mvn test</strong> to run the tests. Then fire up your IDE and check how it&#8217;s done.</p>
<p>You can change or adapt the given JUnit test to also automatically test classes extending from Page or Component.</p>
<p>Join in with your opinions and code! I’m curious to see what clever way you have of testing code.</p>
<p>Read the original at <a href="http://stuq.nl/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3N0dXEubmwvd2VibG9nLzIwMDktMTEtMDEvYXV0b21hdGljYWxseS10ZXN0LXlvdXItd2lja2V0LXBhbmVsLWh0bWwtbWFya3Vw">Automatically test your Wicket panel HTML markup</a> or go to the homepage of <a href="http://stuq.nl/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3N0dXEubmw=">STUQ.nl</a></p>
 <img src="http://stuq.nl/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=471" width="1" height="1" style="display: none;" /><div id="simple_socialmedia"><ul class="ssm_row"><li class="sharetext">Share:</li><li class="twitter"><a target="_blank" href="http://twitter.com/share?url=http://stuq.nl/weblog/2009-11-01/automatically-test-your-wicket-panel-html-markup&amp;text=Automatically test your Wicket panel HTML markup&amp;via=daanvanetten">Tweet</a></li><li class="facebook"><a target="_blank" title="Share on Facebook" rel="nofollow" href="http://www.facebook.com/sharer.php?u=http://stuq.nl/weblog/2009-11-01/automatically-test-your-wicket-panel-html-markup&amp;t=Automatically test your Wicket panel HTML markup">Facebook</a></li><li class="linkedin"><a target="_blank" title="Share on LinkedIn" rel="nofollow" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://stuq.nl/weblog/2009-11-01/automatically-test-your-wicket-panel-html-markup&amp;title=Automatically test your Wicket panel HTML markup&amp;source=STUQ.nl">LinkedIn</a></li><li class="tumblr"><a target="_blank" title="Share on Tumblr" rel="nofollow" href="http://www.tumblr.com/share/link?url=http%3A%2F%2Fstuq.nl%2Fweblog%2F2009-11-01%2Fautomatically-test-your-wicket-panel-html-markup&name=STUQ.nl&description=Automatically+test+your+Wicket+panel+HTML+markup" title="Share on Tumblr">Tumblr</a></li><li class="stumble"><a target="_blank" title="Share on StumbleUpon" rel="nofollow" href="http://www.stumbleupon.com/submit?url=http://stuq.nl/weblog/2009-11-01/automatically-test-your-wicket-panel-html-markup">Stumble</a></li><li class="digg"><a target="_blank" title="Share on Digg" rel="nofollow" href="http://www.digg.com/submit?phase=2&amp;url=http://stuq.nl/weblog/2009-11-01/automatically-test-your-wicket-panel-html-markup">Digg</a></li><li class="delicious"><a target="_blank" title="Share on Delicious" rel="nofollow" href="http://del.icio.us/post?url=http://stuq.nl/weblog/2009-11-01/automatically-test-your-wicket-panel-html-markup&amp;title=INSERT_TITLE">Delicious</a></li></ul></div>

<br/><br/><p>Related posts:<ul><li><a href='http://stuq.nl/weblog/2008-06-05/wicket-how-to-write-a-reusable-modal-window-popup' rel='bookmark' title='Wicket: how to write a reusable modal window popup'>Wicket: how to write a reusable modal window popup</a></li>
<li><a href='http://stuq.nl/weblog/2008-06-20/create-restful-urls-with-wicket' rel='bookmark' title='Create RESTful URLs with Wicket'>Create RESTful URLs with Wicket</a></li>
<li><a href='http://stuq.nl/weblog/2008-09-03/user-friendly-form-validation-with-wicket' rel='bookmark' title='User friendly form validation with Wicket'>User friendly form validation with Wicket</a></li>
</ul></p>]]></content:encoded>
			<wfw:commentRss>http://stuq.nl/weblog/2009-11-01/automatically-test-your-wicket-panel-html-markup/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Refcard: Getting started with Wicket released</title>
		<link>http://stuq.nl/weblog/2009-07-30/refcard-getting-started-with-wicket-released</link>
		<comments>http://stuq.nl/weblog/2009-07-30/refcard-getting-started-with-wicket-released#comments</comments>
		<pubDate>Thu, 30 Jul 2009 10:02:56 +0000</pubDate>
		<dc:creator>Daan</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Wicket]]></category>

		<guid isPermaLink="false">http://stuq.nl/?p=461</guid>
		<description><![CDATA[Some days ago, Andrew Lombardi released a new Refcard: <a href="http://refcardz.dzone.com/refcardz/getting-started-apache-wicket?oid=hom11873">Getting started with Wicket</a>.

You can get these and more on the <a href="http://refcardz.dzone.com/">DZone Refcardz site</a>.<p>Read the original at <a href="http://stuq.nl/weblog/2009-07-30/refcard-getting-started-with-wicket-released">Refcard: Getting started with Wicket released</a> or go to the homepage of <a href="http://stuq.nl">STUQ.nl</a></p>


<br/><br/>
Related posts:<ul><li><a href='http://stuq.nl/weblog/2009-02-04/download-the-basic-and-wicket-scala-talk-materials' rel='bookmark' title='Download the Basic and Wicket Scala talk materials'>Download the Basic and Wicket Scala talk materials</a></li>
<li><a href='http://stuq.nl/weblog/2008-06-20/create-restful-urls-with-wicket' rel='bookmark' title='Create RESTful URLs with Wicket'>Create RESTful URLs with Wicket</a></li>
<li><a href='http://stuq.nl/weblog/2008-12-09/openlayers-wicket-integration-updated' rel='bookmark' title='OpenLayers Wicket integration updated'>OpenLayers Wicket integration updated</a></li>
</ul>]]></description>
			<content:encoded><![CDATA[<p><img style="float: right;" src="http://refcardz.dzone.com/sites/all/themes/dzone/images/mh_logo_refcardz.gif" alt="Refcardz" />Some days ago, Andrew Lombardi released a new Refcard: <a href="http://stuq.nl/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3JlZmNhcmR6LmR6b25lLmNvbS9yZWZjYXJkei9nZXR0aW5nLXN0YXJ0ZWQtYXBhY2hlLXdpY2tldD9vaWQ9aG9tMTE4NzM=">Getting started with Wicket</a>.</p>
<p>You can get these and more on the <a href="http://stuq.nl/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3JlZmNhcmR6LmR6b25lLmNvbS8=">DZone Refcardz site</a>.</p>
<p>Read the original at <a href="http://stuq.nl/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3N0dXEubmwvd2VibG9nLzIwMDktMDctMzAvcmVmY2FyZC1nZXR0aW5nLXN0YXJ0ZWQtd2l0aC13aWNrZXQtcmVsZWFzZWQ=">Refcard: Getting started with Wicket released</a> or go to the homepage of <a href="http://stuq.nl/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3N0dXEubmw=">STUQ.nl</a></p>
 <img src="http://stuq.nl/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=461" width="1" height="1" style="display: none;" /><div id="simple_socialmedia"><ul class="ssm_row"><li class="sharetext">Share:</li><li class="twitter"><a target="_blank" href="http://twitter.com/share?url=http://stuq.nl/weblog/2009-07-30/refcard-getting-started-with-wicket-released&amp;text=Refcard: Getting started with Wicket released&amp;via=daanvanetten">Tweet</a></li><li class="facebook"><a target="_blank" title="Share on Facebook" rel="nofollow" href="http://www.facebook.com/sharer.php?u=http://stuq.nl/weblog/2009-07-30/refcard-getting-started-with-wicket-released&amp;t=Refcard: Getting started with Wicket released">Facebook</a></li><li class="linkedin"><a target="_blank" title="Share on LinkedIn" rel="nofollow" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://stuq.nl/weblog/2009-07-30/refcard-getting-started-with-wicket-released&amp;title=Refcard: Getting started with Wicket released&amp;source=STUQ.nl">LinkedIn</a></li><li class="tumblr"><a target="_blank" title="Share on Tumblr" rel="nofollow" href="http://www.tumblr.com/share/link?url=http%3A%2F%2Fstuq.nl%2Fweblog%2F2009-07-30%2Frefcard-getting-started-with-wicket-released&name=STUQ.nl&description=Refcard%3A+Getting+started+with+Wicket+released" title="Share on Tumblr">Tumblr</a></li><li class="stumble"><a target="_blank" title="Share on StumbleUpon" rel="nofollow" href="http://www.stumbleupon.com/submit?url=http://stuq.nl/weblog/2009-07-30/refcard-getting-started-with-wicket-released">Stumble</a></li><li class="digg"><a target="_blank" title="Share on Digg" rel="nofollow" href="http://www.digg.com/submit?phase=2&amp;url=http://stuq.nl/weblog/2009-07-30/refcard-getting-started-with-wicket-released">Digg</a></li><li class="delicious"><a target="_blank" title="Share on Delicious" rel="nofollow" href="http://del.icio.us/post?url=http://stuq.nl/weblog/2009-07-30/refcard-getting-started-with-wicket-released&amp;title=INSERT_TITLE">Delicious</a></li></ul></div>

<br/><br/><p>Related posts:<ul><li><a href='http://stuq.nl/weblog/2009-02-04/download-the-basic-and-wicket-scala-talk-materials' rel='bookmark' title='Download the Basic and Wicket Scala talk materials'>Download the Basic and Wicket Scala talk materials</a></li>
<li><a href='http://stuq.nl/weblog/2008-06-20/create-restful-urls-with-wicket' rel='bookmark' title='Create RESTful URLs with Wicket'>Create RESTful URLs with Wicket</a></li>
<li><a href='http://stuq.nl/weblog/2008-12-09/openlayers-wicket-integration-updated' rel='bookmark' title='OpenLayers Wicket integration updated'>OpenLayers Wicket integration updated</a></li>
</ul></p>]]></content:encoded>
			<wfw:commentRss>http://stuq.nl/weblog/2009-07-30/refcard-getting-started-with-wicket-released/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ApacheCon Europe 2009 community meetup experiences</title>
		<link>http://stuq.nl/weblog/2009-04-03/apachecon-europe-2009-community-meetup-experiences</link>
		<comments>http://stuq.nl/weblog/2009-04-03/apachecon-europe-2009-community-meetup-experiences#comments</comments>
		<pubDate>Fri, 03 Apr 2009 21:17:56 +0000</pubDate>
		<dc:creator>Daan</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Scala]]></category>
		<category><![CDATA[Wicket]]></category>

		<guid isPermaLink="false">http://stuq.nl/?p=443</guid>
		<description><![CDATA[<em>In this guest post, <a href="http://twitter.com/mtolsma">Minze Tolsma</a>, software developer at <a href="http://www.capgemini.com">Capgemini</a> shares his experiences attending the ApacheCon community meetups.</em><p>Read the original at <a href="http://stuq.nl/weblog/2009-04-03/apachecon-europe-2009-community-meetup-experiences">ApacheCon Europe 2009 community meetup experiences</a> or go to the homepage of <a href="http://stuq.nl">STUQ.nl</a></p>


<br/><br/>
Related posts:<ul><li><a href='http://stuq.nl/weblog/2009-03-24/amsterdam-wicket-meetup-2009' rel='bookmark' title='Amsterdam Wicket meetup 2009'>Amsterdam Wicket meetup 2009</a></li>
<li><a href='http://stuq.nl/weblog/2009-02-04/download-the-basic-and-wicket-scala-talk-materials' rel='bookmark' title='Download the Basic and Wicket Scala talk materials'>Download the Basic and Wicket Scala talk materials</a></li>
<li><a href='http://stuq.nl/weblog/2008-11-26/4-steps-to-add-scala-to-your-maven-java-projects' rel='bookmark' title='4 steps to add Scala to your Maven Java projects'>4 steps to add Scala to your Maven Java projects</a></li>
</ul>]]></description>
			<content:encoded><![CDATA[<p><img title="ApacheCon" src="http://stuq.nl/media/apachecon_photo-150x150.jpg" alt="ApacheCon" width="150" height="150" /><em>In this guest post, <a href="http://stuq.nl/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3R3aXR0ZXIuY29tL210b2xzbWE=">Minze Tolsma</a>, software developer at <a href="http://stuq.nl/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3d3dy5jYXBnZW1pbmkuY29t">Capgemini</a> shares his experiences attending the ApacheCon community meetups.</em></p>
<p>This year I went to the ApacheCon community meetups. There were several, but I chose to attend the Maven and the Wicket meetup. I made some short notes on the most interesting things.</p>
<h3>Monday 23-03-2009: Maven</h3>
<p>The meetup on Maven was about new features and new projects.</p>
<h4>Eclipse Integration</h4>
<p>The community is working on a new tool for Eclipse Integration called Eclipse IAM (Integration for Apache Maven). The plugin aims at simplicity and will bring the best Eclipse integration for what Maven offers. It will integrate with JDT and WTP. The following features will be in the package:</p>
<ul>
<li>Direct project import with a POM. Instead of using the Eclipse archetype.</li>
<li>You can setup projects in Eclipse by using predefined archetypes.</li>
<li>You can configure autobuilds so building isn’t annoying.</li>
<li>There will be a FormBased POM editor, just like you are used to in Eclipse.</li>
<li>Dependency search</li>
<li>Dependency management</li>
<li>Dependency graphing and analysis</li>
</ul>
<p>Eclipse IAM will be worth looking at, it can be found at <a href="http://stuq.nl/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3d3dy5lY2xpcHNlLm9yZy9pYW0v">http://www.eclipse.org/iam/</a>.</p>
<h4>Maven 3.0 new features</h4>
<p>The community is working on Maven 3.0. Some new features:</p>
<ul>
<li>Embeddable, so it will be faster</li>
<li>Some improvements to make it easier to use with the repository</li>
<li>New transport mechanism for simultaneous downloads.</li>
</ul>
<p>Eclipse 3.0 projectpage: <a href="http://stuq.nl/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL2RvY3MuY29kZWhhdXMub3JnL2Rpc3BsYXkvTUFWRU4vTWF2ZW4rMy4wLng=">http://docs.codehaus.org/display/MAVEN/Maven+3.0.x</a><br />
After this two subjects and some live demos there was an open discussion. Because it was late in the evening I left. One thing I wrote down is that SourceSense made an <a href="http://stuq.nl/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3JlcG9zaXRvcnkuc291cmNlc2Vuc2UuY29tL21hdmVuMi1zaXRlcy9tYXZlbi1hbGZyZXNjby1hcmNoZXR5cGVzLw==">Alfresco archetype for Maven</a>.</p>
<h3>Tuesday 24-03-2009: Wicket</h3>
<p>The Wicket meetup was quite different in comparison with the Wicket meeting. There where several presentations about testing, Scala and Wicket, Wicket and DB4O.</p>
<h4>JDave</h4>
<p>For testing nothing was really new… Except the following framework for Behaviour Driven Development: JDave. More info on: <a href="http://stuq.nl/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3d3dy5qZGF2ZS5vcmcvIA==">http://www.jdave.org/</a>.<br />
Presentation of the ApacheCon and examples on: <a href="http://stuq.nl/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3d3dy5qZGF2ZS5vcmcvYmRkLXdpY2tldC8g">http://www.jdave.org/bdd-wicket/</a>.</p>
<h4>DB4O</h4>
<p>DB4O is a Object Database for Java and .NET shipped with two different licenses. More detailed information about DB4O can be found on the <a href="http://stuq.nl/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3d3dy5kYjRvLmNvbS8g">DB4O website</a>.</p>
<p>You can look at DB4O as a large factory (like the Factory design pattern (GoF)) just for storage. It is a good practice to use some  XML storage together with DB4O. For this you can use <a href="http://stuq.nl/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3hzdHJlYW0uY29kZWhhdXMub3JnLyA=">XStream</a>. Using XML for storage together with object storage offers you a good backup mechanism.</p>
<p>Some disadvantages of DB4O are:</p>
<ul>
<li>When data is corrupt there are strange exceptions.</li>
<li>Version Management for the objects is hard to do.</li>
</ul>
<h4>Scala and Wicket</h4>
<p>The presentation about Scala and Wicket was really a hands-on presentation. The slides, code examples and handouts can be found at <a href="http://stuq.nl/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3N0dXEubmwvd2VibG9nLzIwMDktMDItMDQvZG93bmxvYWQtdGhlLWJhc2ljLWFuZC13aWNrZXQtc2NhbGEtdGFsay1tYXRlcmlhbHM=">http://stuq.nl/weblog/2009-02-04/download-the-basic-and-wicket-scala-talk-materials</a>. Just try it and get introduced to the concepts of functional programming using the JVM and Wicket.</p>
<p>After all I had two nice evenings and learned a lot. I hope this article gives you some nice and hopefully new useful information!</p>
<p>Read the original at <a href="http://stuq.nl/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3N0dXEubmwvd2VibG9nLzIwMDktMDQtMDMvYXBhY2hlY29uLWV1cm9wZS0yMDA5LWNvbW11bml0eS1tZWV0dXAtZXhwZXJpZW5jZXM=">ApacheCon Europe 2009 community meetup experiences</a> or go to the homepage of <a href="http://stuq.nl/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3N0dXEubmw=">STUQ.nl</a></p>
 <img src="http://stuq.nl/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=443" width="1" height="1" style="display: none;" /><div id="simple_socialmedia"><ul class="ssm_row"><li class="sharetext">Share:</li><li class="twitter"><a target="_blank" href="http://twitter.com/share?url=http://stuq.nl/weblog/2009-04-03/apachecon-europe-2009-community-meetup-experiences&amp;text=ApacheCon Europe 2009 community meetup experiences&amp;via=daanvanetten">Tweet</a></li><li class="facebook"><a target="_blank" title="Share on Facebook" rel="nofollow" href="http://www.facebook.com/sharer.php?u=http://stuq.nl/weblog/2009-04-03/apachecon-europe-2009-community-meetup-experiences&amp;t=ApacheCon Europe 2009 community meetup experiences">Facebook</a></li><li class="linkedin"><a target="_blank" title="Share on LinkedIn" rel="nofollow" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://stuq.nl/weblog/2009-04-03/apachecon-europe-2009-community-meetup-experiences&amp;title=ApacheCon Europe 2009 community meetup experiences&amp;source=STUQ.nl">LinkedIn</a></li><li class="tumblr"><a target="_blank" title="Share on Tumblr" rel="nofollow" href="http://www.tumblr.com/share/link?url=http%3A%2F%2Fstuq.nl%2Fweblog%2F2009-04-03%2Fapachecon-europe-2009-community-meetup-experiences&name=STUQ.nl&description=ApacheCon+Europe+2009+community+meetup+experiences" title="Share on Tumblr">Tumblr</a></li><li class="stumble"><a target="_blank" title="Share on StumbleUpon" rel="nofollow" href="http://www.stumbleupon.com/submit?url=http://stuq.nl/weblog/2009-04-03/apachecon-europe-2009-community-meetup-experiences">Stumble</a></li><li class="digg"><a target="_blank" title="Share on Digg" rel="nofollow" href="http://www.digg.com/submit?phase=2&amp;url=http://stuq.nl/weblog/2009-04-03/apachecon-europe-2009-community-meetup-experiences">Digg</a></li><li class="delicious"><a target="_blank" title="Share on Delicious" rel="nofollow" href="http://del.icio.us/post?url=http://stuq.nl/weblog/2009-04-03/apachecon-europe-2009-community-meetup-experiences&amp;title=INSERT_TITLE">Delicious</a></li></ul></div>

<br/><br/><p>Related posts:<ul><li><a href='http://stuq.nl/weblog/2009-03-24/amsterdam-wicket-meetup-2009' rel='bookmark' title='Amsterdam Wicket meetup 2009'>Amsterdam Wicket meetup 2009</a></li>
<li><a href='http://stuq.nl/weblog/2009-02-04/download-the-basic-and-wicket-scala-talk-materials' rel='bookmark' title='Download the Basic and Wicket Scala talk materials'>Download the Basic and Wicket Scala talk materials</a></li>
<li><a href='http://stuq.nl/weblog/2008-11-26/4-steps-to-add-scala-to-your-maven-java-projects' rel='bookmark' title='4 steps to add Scala to your Maven Java projects'>4 steps to add Scala to your Maven Java projects</a></li>
</ul></p>]]></content:encoded>
			<wfw:commentRss>http://stuq.nl/weblog/2009-04-03/apachecon-europe-2009-community-meetup-experiences/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Amsterdam Wicket meetup 2009</title>
		<link>http://stuq.nl/weblog/2009-03-24/amsterdam-wicket-meetup-2009</link>
		<comments>http://stuq.nl/weblog/2009-03-24/amsterdam-wicket-meetup-2009#comments</comments>
		<pubDate>Tue, 24 Mar 2009 18:36:45 +0000</pubDate>
		<dc:creator>Daan</dc:creator>
				<category><![CDATA[Scala]]></category>
		<category><![CDATA[Wicket]]></category>

		<guid isPermaLink="false">http://stuq.nl/?p=436</guid>
		<description><![CDATA[At the Amsterdam Wicket meetup 2009 I did a presentation about Scala and Wicket. Click below to read the entire post and download everything!<p>Read the original at <a href="http://stuq.nl/weblog/2009-03-24/amsterdam-wicket-meetup-2009">Amsterdam Wicket meetup 2009</a> or go to the homepage of <a href="http://stuq.nl">STUQ.nl</a></p>


<br/><br/>
Related posts:<ul><li><a href='http://stuq.nl/weblog/2009-02-04/download-the-basic-and-wicket-scala-talk-materials' rel='bookmark' title='Download the Basic and Wicket Scala talk materials'>Download the Basic and Wicket Scala talk materials</a></li>
<li><a href='http://stuq.nl/weblog/2009-04-03/apachecon-europe-2009-community-meetup-experiences' rel='bookmark' title='ApacheCon Europe 2009 community meetup experiences'>ApacheCon Europe 2009 community meetup experiences</a></li>
<li><a href='http://stuq.nl/weblog/2009-11-27/london-wicket-meetup-wicket-1-5-wiquery-brix-and-more' rel='bookmark' title='London Wicket Meetup: Wicket 1.5, WiQuery, Brix and more..'>London Wicket Meetup: Wicket 1.5, WiQuery, Brix and more..</a></li>
</ul>]]></description>
			<content:encoded><![CDATA[<p>At the Amsterdam Wicket meetup 2009 I did a presentation about Scala and Wicket. These are all the materials that you can download to get started with Scala and Wicket today!</p>
<h2>Downloads</h2>
<ul>
<li><strong><a href="http://stuq.nl/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=L2Rvd25sb2FkL2Jhc2ljIHNjYWxhIHdpY2tldC9zYW1wbGVzLnppcA==">Code samples</a></strong> (5.5 MB)
<ul>
<li>Simple HelloWorld Scala demo</li>
<li>Hello Wicket World demo (Scala and Wicket)</li>
<li>Hello Wicket World demo built with Maven</li>
</ul>
</li>
<li><strong><a href="http://stuq.nl/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=L2Rvd25sb2FkL2Ftc3RlcmRhbSB3aWNrZXQgY29tbXVuaXR5IG1lZXR1cC93aWNrZXQgYW5kIHNjYWxhLnBkZg==">Slides</a></strong> (13.1 MB)</li>
</ul>
<p>The slides are also <a href="http://stuq.nl/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3d3dy5zbGlkZXNoYXJlLm5ldC9zdHVxL2Jhc2ljLXdpY2tldC1hbmQtc2NhbGE=">on slideshare</a>:</p>
<div id="__ss_1198018" style="width: 425px; text-align: left;"><a style=\"font: 14px Helvetica,Arial,Sans-serif; display: block; margin: 12px 0 3px 0; text-decoration: underline;\" title=\"Basic Wicket and Scala\" href="http://stuq.nl/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3d3dy5zbGlkZXNoYXJlLm5ldC9zdHVxL2Jhc2ljLXdpY2tldC1hbmQtc2NhbGE/dHlwZT1wcmVzZW50YXRpb24=">Basic Wicket and Scala</a><object style="margin: 0px;" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="355" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowScriptAccess" value="always" /><param name="src" value="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=scalapresentation-amsterdam-090325152141-phpapp02&amp;rel=0&amp;stripped_title=basic-wicket-and-scala" /><param name="allowfullscreen" value="true" /><embed style="margin: 0px;" type="application/x-shockwave-flash" width="425" height="355" src="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=scalapresentation-amsterdam-090325152141-phpapp02&amp;rel=0&amp;stripped_title=basic-wicket-and-scala" allowscriptaccess="always" allowfullscreen="true"></embed></object></div>
<p>Read the original at <a href="http://stuq.nl/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3N0dXEubmwvd2VibG9nLzIwMDktMDMtMjQvYW1zdGVyZGFtLXdpY2tldC1tZWV0dXAtMjAwOQ==">Amsterdam Wicket meetup 2009</a> or go to the homepage of <a href="http://stuq.nl/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3N0dXEubmw=">STUQ.nl</a></p>
 <img src="http://stuq.nl/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=436" width="1" height="1" style="display: none;" /><div id="simple_socialmedia"><ul class="ssm_row"><li class="sharetext">Share:</li><li class="twitter"><a target="_blank" href="http://twitter.com/share?url=http://stuq.nl/weblog/2009-03-24/amsterdam-wicket-meetup-2009&amp;text=Amsterdam Wicket meetup 2009&amp;via=daanvanetten">Tweet</a></li><li class="facebook"><a target="_blank" title="Share on Facebook" rel="nofollow" href="http://www.facebook.com/sharer.php?u=http://stuq.nl/weblog/2009-03-24/amsterdam-wicket-meetup-2009&amp;t=Amsterdam Wicket meetup 2009">Facebook</a></li><li class="linkedin"><a target="_blank" title="Share on LinkedIn" rel="nofollow" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://stuq.nl/weblog/2009-03-24/amsterdam-wicket-meetup-2009&amp;title=Amsterdam Wicket meetup 2009&amp;source=STUQ.nl">LinkedIn</a></li><li class="tumblr"><a target="_blank" title="Share on Tumblr" rel="nofollow" href="http://www.tumblr.com/share/link?url=http%3A%2F%2Fstuq.nl%2Fweblog%2F2009-03-24%2Famsterdam-wicket-meetup-2009&name=STUQ.nl&description=Amsterdam+Wicket+meetup+2009" title="Share on Tumblr">Tumblr</a></li><li class="stumble"><a target="_blank" title="Share on StumbleUpon" rel="nofollow" href="http://www.stumbleupon.com/submit?url=http://stuq.nl/weblog/2009-03-24/amsterdam-wicket-meetup-2009">Stumble</a></li><li class="digg"><a target="_blank" title="Share on Digg" rel="nofollow" href="http://www.digg.com/submit?phase=2&amp;url=http://stuq.nl/weblog/2009-03-24/amsterdam-wicket-meetup-2009">Digg</a></li><li class="delicious"><a target="_blank" title="Share on Delicious" rel="nofollow" href="http://del.icio.us/post?url=http://stuq.nl/weblog/2009-03-24/amsterdam-wicket-meetup-2009&amp;title=INSERT_TITLE">Delicious</a></li></ul></div>

<br/><br/><p>Related posts:<ul><li><a href='http://stuq.nl/weblog/2009-02-04/download-the-basic-and-wicket-scala-talk-materials' rel='bookmark' title='Download the Basic and Wicket Scala talk materials'>Download the Basic and Wicket Scala talk materials</a></li>
<li><a href='http://stuq.nl/weblog/2009-04-03/apachecon-europe-2009-community-meetup-experiences' rel='bookmark' title='ApacheCon Europe 2009 community meetup experiences'>ApacheCon Europe 2009 community meetup experiences</a></li>
<li><a href='http://stuq.nl/weblog/2009-11-27/london-wicket-meetup-wicket-1-5-wiquery-brix-and-more' rel='bookmark' title='London Wicket Meetup: Wicket 1.5, WiQuery, Brix and more..'>London Wicket Meetup: Wicket 1.5, WiQuery, Brix and more..</a></li>
</ul></p>]]></content:encoded>
			<wfw:commentRss>http://stuq.nl/weblog/2009-03-24/amsterdam-wicket-meetup-2009/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Download the Basic and Wicket Scala talk materials</title>
		<link>http://stuq.nl/weblog/2009-02-04/download-the-basic-and-wicket-scala-talk-materials</link>
		<comments>http://stuq.nl/weblog/2009-02-04/download-the-basic-and-wicket-scala-talk-materials#comments</comments>
		<pubDate>Wed, 04 Feb 2009 16:37:11 +0000</pubDate>
		<dc:creator>Daan</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Scala]]></category>
		<category><![CDATA[Wicket]]></category>

		<guid isPermaLink="false">http://stuq.nl/?p=402</guid>
		<description><![CDATA[<span style="font-weight: normal;">On February 4th I gave a talk at <a href="http://jweekend.com/">the London Wicket User Group</a>. These are all the materials that you can download to get started with Scala and Wicket today!</span>

If you want to attend one of the Wicket User group meetings in London, just visit the <a href="http://jweekend.com">jWeekend site and register there</a>. It's really cool to attend, there is a good atmosphere and nice and smart people everywhere...

Click below to read the entire post and download everything!<p>Read the original at <a href="http://stuq.nl/weblog/2009-02-04/download-the-basic-and-wicket-scala-talk-materials">Download the Basic and Wicket Scala talk materials</a> or go to the homepage of <a href="http://stuq.nl">STUQ.nl</a></p>


<br/><br/>
Related posts:<ul><li><a href='http://stuq.nl/weblog/2009-03-24/amsterdam-wicket-meetup-2009' rel='bookmark' title='Amsterdam Wicket meetup 2009'>Amsterdam Wicket meetup 2009</a></li>
<li><a href='http://stuq.nl/weblog/2009-02-04/6-scala-resources-for-java-programmers' rel='bookmark' title='6 Scala resources for Java programmers'>6 Scala resources for Java programmers</a></li>
<li><a href='http://stuq.nl/weblog/2008-11-26/4-steps-to-add-scala-to-your-maven-java-projects' rel='bookmark' title='4 steps to add Scala to your Maven Java projects'>4 steps to add Scala to your Maven Java projects</a></li>
</ul>]]></description>
			<content:encoded><![CDATA[<p><span style="font-weight: normal;">On February 4th I gave a talk at <a href="http://stuq.nl/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL2p3ZWVrZW5kLmNvbS8=">the London Wicket User Group</a>. These are all the materials that you can download to get started with Scala and Wicket today!</span></p>
<p>If you want to attend one of the Wicket User group meetings in London, just visit the <a href="http://stuq.nl/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL2p3ZWVrZW5kLmNvbQ==">jWeekend site and register there</a>. It&#8217;s really cool to attend, there is a good atmosphere and nice and smart people everywhere&#8230;</p>
<h2>Downloads</h2>
<ul>
<li><strong><a href="http://stuq.nl/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=L2Rvd25sb2FkL2Jhc2ljIHNjYWxhIHdpY2tldC9zYW1wbGVzLnppcA==">Code samples</a></strong> (5.5 MB)
<ul>
<li>Simple HelloWorld Scala demo</li>
<li>Hello Wicket World demo (Scala and Wicket)</li>
<li>Hello Wicket World demo built with Maven</li>
</ul>
</li>
<li><strong><a href="http://stuq.nl/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=L2Rvd25sb2FkL2Jhc2ljIHNjYWxhIHdpY2tldC9oYW5kb3V0LnBkZg==">Handout</a></strong> (1.9 MB)</li>
<li><strong><a href="http://stuq.nl/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=L2Rvd25sb2FkL2Jhc2ljIHNjYWxhIHdpY2tldC9iYXNpYyBzY2FsYSBhbmQgd2lja2V0LnBkZg==">Slides</a></strong> (16.1 MB)</li>
</ul>
<p>Or <a href="http://stuq.nl/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=L2Rvd25sb2FkL2Jhc2ljIHNjYWxhIHdpY2tldC9CYXNpYyBTY2FsYSBhbmQgV2lja2V0IHRhbGsgbWF0ZXJpYWxzLnppcA==">download everything at once</a> (22.2 MB)</p>
<h2></h2>
<h2>Scala resources</h2>
<p>In this separate post you find links to Scala resources on the web (they are also in the slides, but this is much easier to click on).</p>
<p><a href="http://stuq.nl/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3N0dXEubmwvd2VibG9nLzIwMDktMDItMDQvNi1zY2FsYS1yZXNvdXJjZXMtZm9yLWphdmEtcHJvZ3JhbW1lcnM=">6 Scala resources for Java programmers</a></p>
<p>Read the original at <a href="http://stuq.nl/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3N0dXEubmwvd2VibG9nLzIwMDktMDItMDQvZG93bmxvYWQtdGhlLWJhc2ljLWFuZC13aWNrZXQtc2NhbGEtdGFsay1tYXRlcmlhbHM=">Download the Basic and Wicket Scala talk materials</a> or go to the homepage of <a href="http://stuq.nl/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3N0dXEubmw=">STUQ.nl</a></p>
 <img src="http://stuq.nl/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=402" width="1" height="1" style="display: none;" /><div id="simple_socialmedia"><ul class="ssm_row"><li class="sharetext">Share:</li><li class="twitter"><a target="_blank" href="http://twitter.com/share?url=http://stuq.nl/weblog/2009-02-04/download-the-basic-and-wicket-scala-talk-materials&amp;text=Download the Basic and Wicket Scala talk materials&amp;via=daanvanetten">Tweet</a></li><li class="facebook"><a target="_blank" title="Share on Facebook" rel="nofollow" href="http://www.facebook.com/sharer.php?u=http://stuq.nl/weblog/2009-02-04/download-the-basic-and-wicket-scala-talk-materials&amp;t=Download the Basic and Wicket Scala talk materials">Facebook</a></li><li class="linkedin"><a target="_blank" title="Share on LinkedIn" rel="nofollow" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://stuq.nl/weblog/2009-02-04/download-the-basic-and-wicket-scala-talk-materials&amp;title=Download the Basic and Wicket Scala talk materials&amp;source=STUQ.nl">LinkedIn</a></li><li class="tumblr"><a target="_blank" title="Share on Tumblr" rel="nofollow" href="http://www.tumblr.com/share/link?url=http%3A%2F%2Fstuq.nl%2Fweblog%2F2009-02-04%2Fdownload-the-basic-and-wicket-scala-talk-materials&name=STUQ.nl&description=Download+the+Basic+and+Wicket+Scala+talk+materials" title="Share on Tumblr">Tumblr</a></li><li class="stumble"><a target="_blank" title="Share on StumbleUpon" rel="nofollow" href="http://www.stumbleupon.com/submit?url=http://stuq.nl/weblog/2009-02-04/download-the-basic-and-wicket-scala-talk-materials">Stumble</a></li><li class="digg"><a target="_blank" title="Share on Digg" rel="nofollow" href="http://www.digg.com/submit?phase=2&amp;url=http://stuq.nl/weblog/2009-02-04/download-the-basic-and-wicket-scala-talk-materials">Digg</a></li><li class="delicious"><a target="_blank" title="Share on Delicious" rel="nofollow" href="http://del.icio.us/post?url=http://stuq.nl/weblog/2009-02-04/download-the-basic-and-wicket-scala-talk-materials&amp;title=INSERT_TITLE">Delicious</a></li></ul></div>

<br/><br/><p>Related posts:<ul><li><a href='http://stuq.nl/weblog/2009-03-24/amsterdam-wicket-meetup-2009' rel='bookmark' title='Amsterdam Wicket meetup 2009'>Amsterdam Wicket meetup 2009</a></li>
<li><a href='http://stuq.nl/weblog/2009-02-04/6-scala-resources-for-java-programmers' rel='bookmark' title='6 Scala resources for Java programmers'>6 Scala resources for Java programmers</a></li>
<li><a href='http://stuq.nl/weblog/2008-11-26/4-steps-to-add-scala-to-your-maven-java-projects' rel='bookmark' title='4 steps to add Scala to your Maven Java projects'>4 steps to add Scala to your Maven Java projects</a></li>
</ul></p>]]></content:encoded>
			<wfw:commentRss>http://stuq.nl/weblog/2009-02-04/download-the-basic-and-wicket-scala-talk-materials/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>OpenLayers Wicket integration updated</title>
		<link>http://stuq.nl/weblog/2008-12-09/openlayers-wicket-integration-updated</link>
		<comments>http://stuq.nl/weblog/2008-12-09/openlayers-wicket-integration-updated#comments</comments>
		<pubDate>Tue, 09 Dec 2008 13:10:55 +0000</pubDate>
		<dc:creator>Daan</dc:creator>
				<category><![CDATA[Wicket]]></category>
		<category><![CDATA[OpenLayers]]></category>

		<guid isPermaLink="false">http://stuq.nl/?p=275</guid>
		<description><![CDATA[<a href="http://ninomartinez.wordpress.com">Nino Martinez Vazquez Wael</a> did an update on his <a href="http://openlayers.org/">OpenLayers</a> integration for <a href="http://wicket.apache.org/">Wicket</a>. Looks really nice. The communication to and from Wicket is handled for you, so this is a very easy way to add maps to your Wicket applications.<p>Read the original at <a href="http://stuq.nl/weblog/2008-12-09/openlayers-wicket-integration-updated">OpenLayers Wicket integration updated</a> or go to the homepage of <a href="http://stuq.nl">STUQ.nl</a></p>


<br/><br/>
Related posts:<ul><li><a href='http://stuq.nl/weblog/2009-11-27/london-wicket-meetup-wicket-1-5-wiquery-brix-and-more' rel='bookmark' title='London Wicket Meetup: Wicket 1.5, WiQuery, Brix and more..'>London Wicket Meetup: Wicket 1.5, WiQuery, Brix and more..</a></li>
<li><a href='http://stuq.nl/weblog/2008-09-03/user-friendly-form-validation-with-wicket' rel='bookmark' title='User friendly form validation with Wicket'>User friendly form validation with Wicket</a></li>
<li><a href='http://stuq.nl/weblog/2008-12-02/847-is-a-resource-statistics-about-wicket' rel='bookmark' title='8.47% is a Resource: statistics about Wicket'>8.47% is a Resource: statistics about Wicket</a></li>
</ul>]]></description>
			<content:encoded><![CDATA[<p><img style="float: left;" title="OpenLayers Wicket integration" src="http://stuq.nl/media/openlayers-wicket-150x150.png" alt="" width="150" height="150" /><a href="http://stuq.nl/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL25pbm9tYXJ0aW5lei53b3JkcHJlc3MuY29t">Nino Martinez Vazquez Wael</a> did an update on his <a href="http://stuq.nl/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL29wZW5sYXllcnMub3JnLw==">OpenLayers</a> integration for <a href="http://stuq.nl/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3dpY2tldC5hcGFjaGUub3JnLw==">Wicket</a>. Looks really nice. The communication to and from Wicket is handled for you, so this is a very easy way to add maps to your Wicket applications.</p>
<h3 style="clear: left;">New features</h3>
<ul>
<li>Now using JTS (http://www.vividsolutions.com/Jts/JTSHome.htm) directly.</li>
<li>It is now possible to draw geometries using the new DrawListenerBehavior</li>
<li>Geometries are pushed to Java using JTS</li>
<li>Remove the drawControl using the RemoveDrawControl behavior.</li>
</ul>
<p><a href="http://stuq.nl/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL25pbm9tYXJ0aW5lei53b3JkcHJlc3MuY29tLzIwMDgvMTIvMDkvbmV3LXN0dWZmLWluLXdpY2tldHN0dWZmLW9wZW5sYXllcnMtaW50ZWdyYXRpb24v">Read more about it on Nino&#8217;s blog</a>.</p>
<p>Read the original at <a href="http://stuq.nl/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3N0dXEubmwvd2VibG9nLzIwMDgtMTItMDkvb3BlbmxheWVycy13aWNrZXQtaW50ZWdyYXRpb24tdXBkYXRlZA==">OpenLayers Wicket integration updated</a> or go to the homepage of <a href="http://stuq.nl/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3N0dXEubmw=">STUQ.nl</a></p>
 <img src="http://stuq.nl/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=275" width="1" height="1" style="display: none;" /><div id="simple_socialmedia"><ul class="ssm_row"><li class="sharetext">Share:</li><li class="twitter"><a target="_blank" href="http://twitter.com/share?url=http://stuq.nl/weblog/2008-12-09/openlayers-wicket-integration-updated&amp;text=OpenLayers Wicket integration updated&amp;via=daanvanetten">Tweet</a></li><li class="facebook"><a target="_blank" title="Share on Facebook" rel="nofollow" href="http://www.facebook.com/sharer.php?u=http://stuq.nl/weblog/2008-12-09/openlayers-wicket-integration-updated&amp;t=OpenLayers Wicket integration updated">Facebook</a></li><li class="linkedin"><a target="_blank" title="Share on LinkedIn" rel="nofollow" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://stuq.nl/weblog/2008-12-09/openlayers-wicket-integration-updated&amp;title=OpenLayers Wicket integration updated&amp;source=STUQ.nl">LinkedIn</a></li><li class="tumblr"><a target="_blank" title="Share on Tumblr" rel="nofollow" href="http://www.tumblr.com/share/link?url=http%3A%2F%2Fstuq.nl%2Fweblog%2F2008-12-09%2Fopenlayers-wicket-integration-updated&name=STUQ.nl&description=OpenLayers+Wicket+integration+updated" title="Share on Tumblr">Tumblr</a></li><li class="stumble"><a target="_blank" title="Share on StumbleUpon" rel="nofollow" href="http://www.stumbleupon.com/submit?url=http://stuq.nl/weblog/2008-12-09/openlayers-wicket-integration-updated">Stumble</a></li><li class="digg"><a target="_blank" title="Share on Digg" rel="nofollow" href="http://www.digg.com/submit?phase=2&amp;url=http://stuq.nl/weblog/2008-12-09/openlayers-wicket-integration-updated">Digg</a></li><li class="delicious"><a target="_blank" title="Share on Delicious" rel="nofollow" href="http://del.icio.us/post?url=http://stuq.nl/weblog/2008-12-09/openlayers-wicket-integration-updated&amp;title=INSERT_TITLE">Delicious</a></li></ul></div>

<br/><br/><p>Related posts:<ul><li><a href='http://stuq.nl/weblog/2009-11-27/london-wicket-meetup-wicket-1-5-wiquery-brix-and-more' rel='bookmark' title='London Wicket Meetup: Wicket 1.5, WiQuery, Brix and more..'>London Wicket Meetup: Wicket 1.5, WiQuery, Brix and more..</a></li>
<li><a href='http://stuq.nl/weblog/2008-09-03/user-friendly-form-validation-with-wicket' rel='bookmark' title='User friendly form validation with Wicket'>User friendly form validation with Wicket</a></li>
<li><a href='http://stuq.nl/weblog/2008-12-02/847-is-a-resource-statistics-about-wicket' rel='bookmark' title='8.47% is a Resource: statistics about Wicket'>8.47% is a Resource: statistics about Wicket</a></li>
</ul></p>]]></content:encoded>
			<wfw:commentRss>http://stuq.nl/weblog/2008-12-09/openlayers-wicket-integration-updated/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>8.47% is a Resource: statistics about Wicket</title>
		<link>http://stuq.nl/weblog/2008-12-02/847-is-a-resource-statistics-about-wicket</link>
		<comments>http://stuq.nl/weblog/2008-12-02/847-is-a-resource-statistics-about-wicket#comments</comments>
		<pubDate>Tue, 02 Dec 2008 19:23:09 +0000</pubDate>
		<dc:creator>Daan</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Wicket]]></category>

		<guid isPermaLink="false">http://stuq.nl/?p=246</guid>
		<description><![CDATA[<p>Frameworks are growing with every release. Classes are changed, removed and added. In this series I zoom in on some well known projects and analyze their class names with completely meaningless statistics. First: Wicket 1.3.3.</p>
<p>To get these statistics, I wrote a script that analyzed all classes. They get chopped up on word boundaries, so for ContextAwareFactoryBean the words Context, Aware, Factory and Bean are counted.</p><p>Read the original at <a href="http://stuq.nl/weblog/2008-12-02/847-is-a-resource-statistics-about-wicket">8.47% is a Resource: statistics about Wicket</a> or go to the homepage of <a href="http://stuq.nl">STUQ.nl</a></p>


<br/><br/>
Related posts:<ul><li><a href='http://stuq.nl/weblog/2008-11-28/1942-classes-statistics-about-spring-25' rel='bookmark' title='1942 classes: statistics about Spring 2.5'>1942 classes: statistics about Spring 2.5</a></li>
<li><a href='http://stuq.nl/weblog/2008-12-29/37-factories-statistics-about-tomcat-6' rel='bookmark' title='37 Factories: statistics about Tomcat 6'>37 Factories: statistics about Tomcat 6</a></li>
<li><a href='http://stuq.nl/weblog/2008-12-30/76-events-statistics-about-hibernate-322' rel='bookmark' title='76 Events: statistics about Hibernate 3.2.2'>76 Events: statistics about Hibernate 3.2.2</a></li>
</ul>]]></description>
			<content:encoded><![CDATA[<p><a href="http://stuq.nl/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3N0dXEubmwvbWVkaWEvd2lja2V0LXN0YXRpc3RpY3MucG5n"><img style="float: left; clear: left;" title="Wicket 1.3.3 class cloud" src="http://stuq.nl/media/wicket-statistics-150x150.png" alt="Wicket 1.3.3 statistics class cloud" width="150" /></a>Frameworks are growing with every release. Classes are changed, removed and added. In this series I zoom in on some well known projects and analyze their class names with completely meaningless statistics. Now up: Wicket 1.3.3!</p>
<p>To get these statistics, I wrote a script that analyzed all classes. They get chopped up on word boundaries, so for <strong>ContextAwareFactoryBean</strong> the words Context, Aware, Factory and Bean are counted. From the output I generated a class cloud.</p>
<h3>Wicket likes Requests for Pages or Resources</h3>
<p><strong>8.47%</strong> of the total number of classes in Wicket contain the word <strong>Resource</strong>. In absolute numbers, 68 classes (of a total of 802) have this word in their name. This is quite a low percentage for the top result, compared to the <a title=\"Spring statistics\" href="http://stuq.nl/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3N0dXEubmwvd2VibG9nLzIwMDgtMTEtMjgvMTk0Mi1jbGFzc2VzLXN0YXRpc3RpY3MtYWJvdXQtc3ByaW5nLTI1">Spring statistics</a> where the top result <strong>Bean</strong> is present in <strong>12.31%</strong> of all classes.</p>
<p>From the top ten, it&#8217;s easy to spot that Wicket is a web framework, with <strong>Pages</strong>, <strong>Web</strong>, <strong>Ajax</strong> and <strong>Resources</strong> in many class names.</p>
<h3>Wicket loves Wicket</h3>
<p>A bit remarkable regarding Wicket statistics: about <strong>4.24% </strong>of all classes have the string &#8216;Wicket&#8217; in their name. Relative to the number of Spring classes that have Spring in their name, this is 2.3 times as much!</p>
<p>In general, the class names of Wicket are well distributed. This probably originates in the fact that Wicket is very specialized on one subject and is not a general purpose platform.</p>
<h3>Class Cloud (click to enlarge)</h3>
<p><a href="http://stuq.nl/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3N0dXEubmwvbWVkaWEvd2lja2V0LXN0YXRpc3RpY3MucG5n"><img title="Wicket 1.3.3 class cloud" src="http://stuq.nl/media/wicket-statistics.png" alt="Wicket 1.3.3 statistics Class Cloud" width="587" /></a></p>
<h3>Top 10 of partial class names</h3>
<p><a href="http://stuq.nl/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3N0dXEubmwvbWVkaWEvd2lja2V0X3N0YXRzX2Jhci5wbmc="><img style="float: right;" title="Wicket 1.3.3 statistics bar chart" src="http://stuq.nl/media/wicket_stats_bar.png" alt="Wicket 1.3.3 statistics bar chart" width="260" height="169" /></a></p>
<ul>
<li>Resource: 68</li>
<li>Request: 62</li>
<li>Page: 56</li>
<li>Abstract: 42</li>
<li>Target: 37</li>
<li>Stream: 36</li>
<li>Validator: 36</li>
<li>Web: 36</li>
<li>Component: 34</li>
<li>Ajax: 34</li>
</ul>
<h3>Longest class name</h3>
<p>The grand prize goes to: <strong>BookmarkablePageRequestTargetUrlCodingStrategy</strong>, with <strong>46</strong> characters!</p>
<blockquote><p>The BookmarkablePageRequestTargetUrlCodingStrategy encodes and decodes mounts for a single bookmarkable page class (<a title=\"BookmarkablePageRequestTargetUrlCodingStrategy API doc\" href="http://stuq.nl/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3dpY2tldC5hcGFjaGUub3JnL2FwaWRvY3MvMS40L29yZy9hcGFjaGUvd2lja2V0L3JlcXVlc3QvdGFyZ2V0L2NvZGluZy9Cb29rbWFya2FibGVQYWdlUmVxdWVzdFRhcmdldFVybENvZGluZ1N0cmF0ZWd5Lmh0bWw=">source</a>).</p></blockquote>
<p>Stay tuned for more useless statistics for other well known projects! If you have suggestions for which projects you want to see, please let me know in the comments!</p>
<p>Read the original at <a href="http://stuq.nl/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3N0dXEubmwvd2VibG9nLzIwMDgtMTItMDIvODQ3LWlzLWEtcmVzb3VyY2Utc3RhdGlzdGljcy1hYm91dC13aWNrZXQ=">8.47% is a Resource: statistics about Wicket</a> or go to the homepage of <a href="http://stuq.nl/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3N0dXEubmw=">STUQ.nl</a></p>
 <img src="http://stuq.nl/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=246" width="1" height="1" style="display: none;" /><div id="simple_socialmedia"><ul class="ssm_row"><li class="sharetext">Share:</li><li class="twitter"><a target="_blank" href="http://twitter.com/share?url=http://stuq.nl/weblog/2008-12-02/847-is-a-resource-statistics-about-wicket&amp;text=8.47% is a Resource: statistics about Wicket&amp;via=daanvanetten">Tweet</a></li><li class="facebook"><a target="_blank" title="Share on Facebook" rel="nofollow" href="http://www.facebook.com/sharer.php?u=http://stuq.nl/weblog/2008-12-02/847-is-a-resource-statistics-about-wicket&amp;t=8.47% is a Resource: statistics about Wicket">Facebook</a></li><li class="linkedin"><a target="_blank" title="Share on LinkedIn" rel="nofollow" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://stuq.nl/weblog/2008-12-02/847-is-a-resource-statistics-about-wicket&amp;title=8.47% is a Resource: statistics about Wicket&amp;source=STUQ.nl">LinkedIn</a></li><li class="tumblr"><a target="_blank" title="Share on Tumblr" rel="nofollow" href="http://www.tumblr.com/share/link?url=http%3A%2F%2Fstuq.nl%2Fweblog%2F2008-12-02%2F847-is-a-resource-statistics-about-wicket&name=STUQ.nl&description=8.47%25+is+a+Resource%3A+statistics+about+Wicket" title="Share on Tumblr">Tumblr</a></li><li class="stumble"><a target="_blank" title="Share on StumbleUpon" rel="nofollow" href="http://www.stumbleupon.com/submit?url=http://stuq.nl/weblog/2008-12-02/847-is-a-resource-statistics-about-wicket">Stumble</a></li><li class="digg"><a target="_blank" title="Share on Digg" rel="nofollow" href="http://www.digg.com/submit?phase=2&amp;url=http://stuq.nl/weblog/2008-12-02/847-is-a-resource-statistics-about-wicket">Digg</a></li><li class="delicious"><a target="_blank" title="Share on Delicious" rel="nofollow" href="http://del.icio.us/post?url=http://stuq.nl/weblog/2008-12-02/847-is-a-resource-statistics-about-wicket&amp;title=INSERT_TITLE">Delicious</a></li></ul></div>

<br/><br/><p>Related posts:<ul><li><a href='http://stuq.nl/weblog/2008-11-28/1942-classes-statistics-about-spring-25' rel='bookmark' title='1942 classes: statistics about Spring 2.5'>1942 classes: statistics about Spring 2.5</a></li>
<li><a href='http://stuq.nl/weblog/2008-12-29/37-factories-statistics-about-tomcat-6' rel='bookmark' title='37 Factories: statistics about Tomcat 6'>37 Factories: statistics about Tomcat 6</a></li>
<li><a href='http://stuq.nl/weblog/2008-12-30/76-events-statistics-about-hibernate-322' rel='bookmark' title='76 Events: statistics about Hibernate 3.2.2'>76 Events: statistics about Hibernate 3.2.2</a></li>
</ul></p>]]></content:encoded>
			<wfw:commentRss>http://stuq.nl/weblog/2008-12-02/847-is-a-resource-statistics-about-wicket/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>User friendly form validation with Wicket</title>
		<link>http://stuq.nl/weblog/2008-09-03/user-friendly-form-validation-with-wicket</link>
		<comments>http://stuq.nl/weblog/2008-09-03/user-friendly-form-validation-with-wicket#comments</comments>
		<pubDate>Wed, 03 Sep 2008 21:12:21 +0000</pubDate>
		<dc:creator>Daan</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Productivity]]></category>
		<category><![CDATA[Scala]]></category>
		<category><![CDATA[Wicket Tutorials]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[<p>By default Wicket shows error messages together in a single place in the HTML form. This has some drawbacks to usability, especially if you have long forms with lots of fields. Read further for a tutorial exploring possibilities to improve the location of the error on the page, thereby improving usability.</p>
<p>Read the original at <a href="http://stuq.nl/weblog/2008-09-03/user-friendly-form-validation-with-wicket">User friendly form validation with Wicket</a> or go to the homepage of <a href="http://stuq.nl">STUQ.nl</a></p>


<br/><br/>
Related posts:<ul><li><a href='http://stuq.nl/weblog/2008-06-05/wicket-how-to-write-a-reusable-modal-window-popup' rel='bookmark' title='Wicket: how to write a reusable modal window popup'>Wicket: how to write a reusable modal window popup</a></li>
<li><a href='http://stuq.nl/weblog/2009-11-01/automatically-test-your-wicket-panel-html-markup' rel='bookmark' title='Automatically test your Wicket panel HTML markup'>Automatically test your Wicket panel HTML markup</a></li>
<li><a href='http://stuq.nl/weblog/2008-06-20/create-restful-urls-with-wicket' rel='bookmark' title='Create RESTful URLs with Wicket'>Create RESTful URLs with Wicket</a></li>
</ul>]]></description>
			<content:encoded><![CDATA[<p>By default Wicket shows error messages together in a single place in the HTML form. This has some drawbacks to usability, especially if you have long forms with lots of fields. Read further for a tutorial exploring possibilities to improve the location of the error on the page, thereby improving usability.</p>
<p>The default FeedbackPanel shows all errors in one place. When you enter a wrong value in an input field below the fold, the input field is a mile away from the error above the form. This makes it unclear which error message corresponds to which field.</p>
<p><img style="float: left;" src="http://stuq.nl/media/image/form-usability-scanning.png" border="0" alt="form-usability-scanning.png" height="242" /></p>
<p>The image on the left shows that a lot of page scanning is needed even with moderate sized forms.</p>
<p>With more than a few fields, the user is confused as which error corresponds to which field. It is a big problem when your e-commerce site scares away many potential clients who can&#8217;t complete your web forms!</p>
<h3 style="clear: both;">The default form</h3>
<p>Before I describe how to create a more user friendly form, first the &#8216;default&#8217; form. The following is an example of a standard Wicket form. This kind of form is the one you get without doing any &#8216;special&#8217; magic things. <strong>Place your mouse cursor over the image to see the default error messages above the form.</strong></p>
<p><img onmouseover="this.src='http://stuq.nl/media/image/form-usability-default-invalid.png'" onmouseout="this.src='http://stuq.nl/media/image/form-usability-default-valid.png'" src="http://stuq.nl/media/image/form-usability-default-valid.png" border="0" alt="Default Wicket form with FeedbackPanel at the top" height="150" /></p>
<p style="clear: both;">This form will be the starting point for our improvements.</p>
<h3>The improved form</h3>
<p>This is what we are going to make:</p>
<p><img src="http://stuq.nl/media/image/form-usability-tutorial-invalid.png" border="0" alt="Better and improved Wicket form with FeedbackLabels throughout" height="100" /></p>
<p style="clear: both;">As you can see, the error messages are directly next to the component that caused the error. This reduces the scanning of the page to link the error message to the right form component.</p>
<h3>Step 1: Introducing the FeedbackLabel</h3>
<p>The FeedbackLabel is a custom component I&#8217;ve written for this tutorial. With this custom label, you can show important feedback messages related to a FormComponent.</p>
<p>This has the advantage that you can place your Feedback messages in any place you want.</p>
<p>Add this to the Java part of the form:</p>

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">// This shows feedback when the name input is not correct.</span>
FeedbackLabel nameFeedbackLabel <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> FeedbackLabel<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;name.feedback&quot;</span>, name<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
form.<span style="color: #006633;">add</span><span style="color: #009900;">&#40;</span>nameFeedbackLabel<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
FeedbackLabel colorFeedbackLabel <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> FeedbackLabel<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;color.feedback&quot;</span>, color, customText<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
form.<span style="color: #006633;">add</span><span style="color: #009900;">&#40;</span>colorFeedbackLabel<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>Add another SPAN tag for every feedback label. You can place this near the relevant form component within the form.</p>
<h3>Step 2: Removing the FeedbackPanel completely? No, filtering!</h3>
<p>At first, it looks like you can remove the FeedbackPanel completely. But, then you will not be able to use the info() method to display text inside the FeedbackPanel! Therefore we need a way to filter the FeedbackMessages so error messages are not shown. I have written a FeedbackMessageFilter to accomplish that. It filters out the unwanted error messages.</p>

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">// filteredErrorLevels will not be shown in the FeedbackPanel</span>
<span style="color: #000066; font-weight: bold;">int</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> filteredErrorLevels <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #000066; font-weight: bold;">int</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#123;</span>FeedbackMessage.<span style="color: #006633;">ERROR</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span>
feedback.<span style="color: #006633;">setFilter</span><span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> ErrorLevelsFeedbackMessageFilter<span style="color: #009900;">&#40;</span>filteredErrorLevels<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>I have included the ErrorLevelsFeedbackMessageFilter in the project files, so you can reuse this in your existing projects. Remember if you use the error() method, you cannot use this filter! Instead, create your own filter that filters based on components.</p>
<h3>Step 3: Adding some style, the ComponentVisualErrorBehavior™</h3>
<p>I always love extremely long class names, like the <em>BookmarkablePageRequestTargetUrlCodingStrategy</em> or the <em>SharedResourceRequestTargetUrlCodingStrategy</em>. It makes my day to introduce a class name consisting of four words, the <strong>ComponentVisualErrorBehavior™</strong>.</p>
<p>This behavior changes the CSS styles for components that are invalid according to the Wicket form validation. You see in the screenshot that the textfield has a red line around it. This is the result of the ComponentVisualErrorBehavior. You can easily change the styles that are applied.</p>
<p><img src="http://stuq.nl/media/image/form-usability-tutorial-namefield.png" border="0" alt="form-usability-tutorial-namefield.png" width="358" height="48" /></p>
<p>To add the ComponentVisualErrorBehavior to your component, just add one line in your Java code:</p>

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;">name.<span style="color: #006633;">add</span><span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> ComponentVisualErrorBehavior<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;onblur&quot;</span>, nameFeedbackLabel<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>&#8220;onblur&#8221; stands for the event that triggers this Behavior. The nameFeedbackLabel will also be updated when this is triggered, so that it will show the relevant error (or nothing if the input is valid).</p>
<h3>Download</h3>
<p><a href="http://stuq.nl/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3N0dXEubmwvbWVkaWEvY29kZS9kZW1vLWZvcm1zLnppcA==">Download the complete example project</a> and start experimenting! (run with mvn jetty:run and connect to http://localhost:8080/demo)</p>
<p>Let me know how and where you use it in the comments!</p>
<p>Read the original at <a href="http://stuq.nl/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3N0dXEubmwvd2VibG9nLzIwMDgtMDktMDMvdXNlci1mcmllbmRseS1mb3JtLXZhbGlkYXRpb24td2l0aC13aWNrZXQ=">User friendly form validation with Wicket</a> or go to the homepage of <a href="http://stuq.nl/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3N0dXEubmw=">STUQ.nl</a></p>
 <img src="http://stuq.nl/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=77" width="1" height="1" style="display: none;" /><div id="simple_socialmedia"><ul class="ssm_row"><li class="sharetext">Share:</li><li class="twitter"><a target="_blank" href="http://twitter.com/share?url=http://stuq.nl/weblog/2008-09-03/user-friendly-form-validation-with-wicket&amp;text=User friendly form validation with Wicket&amp;via=daanvanetten">Tweet</a></li><li class="facebook"><a target="_blank" title="Share on Facebook" rel="nofollow" href="http://www.facebook.com/sharer.php?u=http://stuq.nl/weblog/2008-09-03/user-friendly-form-validation-with-wicket&amp;t=User friendly form validation with Wicket">Facebook</a></li><li class="linkedin"><a target="_blank" title="Share on LinkedIn" rel="nofollow" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://stuq.nl/weblog/2008-09-03/user-friendly-form-validation-with-wicket&amp;title=User friendly form validation with Wicket&amp;source=STUQ.nl">LinkedIn</a></li><li class="tumblr"><a target="_blank" title="Share on Tumblr" rel="nofollow" href="http://www.tumblr.com/share/link?url=http%3A%2F%2Fstuq.nl%2Fweblog%2F2008-09-03%2Fuser-friendly-form-validation-with-wicket&name=STUQ.nl&description=User+friendly+form+validation+with+Wicket" title="Share on Tumblr">Tumblr</a></li><li class="stumble"><a target="_blank" title="Share on StumbleUpon" rel="nofollow" href="http://www.stumbleupon.com/submit?url=http://stuq.nl/weblog/2008-09-03/user-friendly-form-validation-with-wicket">Stumble</a></li><li class="digg"><a target="_blank" title="Share on Digg" rel="nofollow" href="http://www.digg.com/submit?phase=2&amp;url=http://stuq.nl/weblog/2008-09-03/user-friendly-form-validation-with-wicket">Digg</a></li><li class="delicious"><a target="_blank" title="Share on Delicious" rel="nofollow" href="http://del.icio.us/post?url=http://stuq.nl/weblog/2008-09-03/user-friendly-form-validation-with-wicket&amp;title=INSERT_TITLE">Delicious</a></li></ul></div>

<br/><br/><p>Related posts:<ul><li><a href='http://stuq.nl/weblog/2008-06-05/wicket-how-to-write-a-reusable-modal-window-popup' rel='bookmark' title='Wicket: how to write a reusable modal window popup'>Wicket: how to write a reusable modal window popup</a></li>
<li><a href='http://stuq.nl/weblog/2009-11-01/automatically-test-your-wicket-panel-html-markup' rel='bookmark' title='Automatically test your Wicket panel HTML markup'>Automatically test your Wicket panel HTML markup</a></li>
<li><a href='http://stuq.nl/weblog/2008-06-20/create-restful-urls-with-wicket' rel='bookmark' title='Create RESTful URLs with Wicket'>Create RESTful URLs with Wicket</a></li>
</ul></p>]]></content:encoded>
			<wfw:commentRss>http://stuq.nl/weblog/2008-09-03/user-friendly-form-validation-with-wicket/feed</wfw:commentRss>
		<slash:comments>45</slash:comments>
		</item>
		<item>
		<title>Create RESTful URLs with Wicket</title>
		<link>http://stuq.nl/weblog/2008-06-20/create-restful-urls-with-wicket</link>
		<comments>http://stuq.nl/weblog/2008-06-20/create-restful-urls-with-wicket#comments</comments>
		<pubDate>Fri, 20 Jun 2008 22:32:12 +0000</pubDate>
		<dc:creator>Daan</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Productivity]]></category>
		<category><![CDATA[Scala]]></category>
		<category><![CDATA[Wicket Tutorials]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[<img style="float: right;" src="http://stuq.nl/media/image/wicket_logo.png" /><p>This is a tutorial on using Wicket with REST-style URLs. Normally, Wicket generates URLs that are a bit ugly. <br/>For example:<br/>
<i>http://www.example.com/wui/?wicket:bookmarkablePage=%3Anl.stuq.demo.SomePage</i>. </p><p>Uch!</p><p>RESTful URLs change that: they are more meaningful for the user, hide some of your implementation details, and are just beautiful. Plus, you're joining one of the latest hypes. Life couldn't be better...</p>
<p>Read the original at <a href="http://stuq.nl/weblog/2008-06-20/create-restful-urls-with-wicket">Create RESTful URLs with Wicket</a> or go to the homepage of <a href="http://stuq.nl">STUQ.nl</a></p>


<br/><br/>
Related posts:<ul><li><a href='http://stuq.nl/weblog/2008-09-03/user-friendly-form-validation-with-wicket' rel='bookmark' title='User friendly form validation with Wicket'>User friendly form validation with Wicket</a></li>
<li><a href='http://stuq.nl/weblog/2008-06-05/wicket-how-to-write-a-reusable-modal-window-popup' rel='bookmark' title='Wicket: how to write a reusable modal window popup'>Wicket: how to write a reusable modal window popup</a></li>
<li><a href='http://stuq.nl/weblog/2009-11-01/automatically-test-your-wicket-panel-html-markup' rel='bookmark' title='Automatically test your Wicket panel HTML markup'>Automatically test your Wicket panel HTML markup</a></li>
</ul>]]></description>
			<content:encoded><![CDATA[<p><img style="float: left;" src="http://stuq.nl/media/image/wicket_logo.png" alt="" /></p>
<p>This is a tutorial on using Wicket with REST-style URLs. Normally, Wicket generates URLs that are a bit ugly.<br />
For example:</p>
<p><em>http://www.example.com/wui/?wicket:bookmarkablePage=%3Anl.stuq.demo.SomePage</em>.</p>
<p>Ugly!</p>
<p>RESTful URLs change that: they are more meaningful for the user, hide some of your implementation details, and are just beautiful. Plus, you&#8217;re joining one of the latest hypes. Life couldn&#8217;t be better&#8230;</p>
<p><a href="http://stuq.nl/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3d3dy5nb29nbGUuY29tL3NlYXJjaD9obD1lbiZhbXA7cT13aWNrZXQrcmVzdGZ1bCZhbXA7YnRuRz1Hb29nbGUrU2VhcmNo" target=\"_blank\">Looking around on the intertubes</a>, there is not much useful information about using RESTful URLs in Wicket. Because I need this for a project I&#8217;m currently working on, I decided to turn this into a small tutorial.</p>
<h3>What is REST?</h3>
<p><strong>Representational State Transfer (REST)</strong> is a software architectural style for distributed hypermedia systems like the world wide web. The best way to explain this, is an example. A REST application might define the following resources:</p>
<ul>
<li>http://example.com/users/</li>
<li>http://example.com/users/{user} (one for each user)</li>
<li>http://example.com/findUserForm</li>
<li>http://example.com/locations/</li>
<li>http://example.com/locations/{location} (one for each location)</li>
<li>http://example.com/findLocationForm</li>
</ul>
<p>This is a very, very short explanation of only a small part of what REST does. More information, as always, can be <a href="http://stuq.nl/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL2VuLndpa2lwZWRpYS5vcmcvd2lraS9SZXByZXNlbnRhdGlvbmFsX1N0YXRlX1RyYW5zZmVy" target=\"_blank\">found on Wikipedia</a>.</p>
<p>When you use custom URLs, you effectively hide some of your internal structure behind more meaningful URLs. This means you can refactor more easily without breaking external links or bookmarks to a specific part of your site. This is also important for search engine optimization.</p>
<p><strong>Note:</strong> I&#8217;m not going to describe here when you should or should not use REST<br />
with Wicket. That&#8217;s an architectural discussion, which depends greatly<br />
on your project. I have discovered some limitations in the Wicket development model that prevent the full implementation of REST. Please read further for more information.</p>
<h3>First steps</h3>
<p>I suggest you <a href="http://stuq.nl/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3N0dXEubmwvbWVkaWEvY29kZS9kZW1vLXJlc3RmdWwuemlw">download the code</a> first and read along during the rest of this post.</p>
<p>We are going to create a customer overview page and a products overview page, reachable on &#8220;http://example.com/customers/&#8221; and &#8220;http://example.com/products/&#8221;.</p>
<p>The HomePage has two links, to the customer list and the product list. The product and customer lists have links to each individual product (http://example.com/products/${ID}) and customer (http://example.com/customers/${ID}).</p>
<p>For the Wicket UI, I created a HomePage, which links to the CustomerOverviewPage and ProductOverviewPage, which link to the Customer and Product detail pages. To serve up the data, we have some simple services, a ProductService and a CustomerService.</p>
<p><img style="clear: both;" src="http://stuq.nl/media/image/demo-urls-structure.png" alt="" /></p>
<h3>The code</h3>
<p>Wicket has a nice built in method of declaring (mounting) custom URL schemes. Simply give a class which implements the <a href="http://stuq.nl/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3d3dy53aWNrZXRmcmFtZXdvcmsub3JnL2FwaWRvY3Mvd2lja2V0L3JlcXVlc3QvdGFyZ2V0L2NvZGluZy9JUmVxdWVzdFRhcmdldFVybENvZGluZ1N0cmF0ZWd5Lmh0bWw=" target=\"_blank\">IRequestTargetUrlCodingStrategy</a> interface to a WebApplication.</p>

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">final</span> <span style="color: #000066; font-weight: bold;">void</span> mount<span style="color: #009900;">&#40;</span>IRequestTargetUrlCodingStrategy encoder<span style="color: #009900;">&#41;</span></pre></div></div>

<p>Relatively new in Wicket is the <a href="http://stuq.nl/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3dpY2tldC5hcGFjaGUub3JnL2FwaWRvY3MvMS40L29yZy9hcGFjaGUvd2lja2V0L3JlcXVlc3QvdGFyZ2V0L2NvZGluZy9NaXhlZFBhcmFtVXJsQ29kaW5nU3RyYXRlZ3kuaHRtbA==" target=\"_blank\">MixedParamUrlCodingStrategy</a>, which we will use in a minute.</p>
<p>This is an example of how to use the MixedParamUrlCodingStrategy in your WebApplication class:</p>

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;">        <span style="color: #000000; font-weight: bold;">public</span> WicketApplication<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
        <span style="color: #009900;">&#123;</span>
        MixedParamUrlCodingStrategy productURLS <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> MixedParamUrlCodingStrategy<span style="color: #009900;">&#40;</span>
                <span style="color: #0000ff;">&quot;products&quot;</span>,
                ProductDetailPage.<span style="color: #000000; font-weight: bold;">class</span>,
                <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #003399;">String</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#123;</span><span style="color: #0000ff;">&quot;id&quot;</span><span style="color: #009900;">&#125;</span>
        <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        mount<span style="color: #009900;">&#40;</span>productURLS<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>This means:</p>
<ul>
<li>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&quot;products&quot;</pre></div></div>

<p><em>This is the part of the URL after the Wicket&#8217;s application URL. In this case: &#8220;http://www.example.com/<strong>products</strong>&#8220;</em></li>
<li>

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;">ProductDetailPage.<span style="color: #000000; font-weight: bold;">class</span></pre></div></div>

<p><em>This defines for which class this URL is meant. In our project, the ProductDetailPage shows a product&#8217;s details.</em></li>
<li>

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;"> <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #003399;">String</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#123;</span><span style="color: #0000ff;">&quot;id&quot;</span><span style="color: #009900;">&#125;</span></pre></div></div>

<p><em>This is a list of all the parameters that you want to pass to this page. This shows up in the URL like this: &#8220;http://www.example.com/products/<strong>23</strong>&#8221; for a product with ID 23. You can easily pass more parameters to this page by adding items to this String array.</em></li>
<li>

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;">mount<span style="color: #009900;">&#40;</span>productURLS<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p><em>This passes this MixedParamUrlCodingStrategy to the WebApplication.</em></li>
</ul>
<h3>The Product detail page</h3>
<p>The ProductDetailPage receives these URL parameters in the following way:</p>

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">public</span> ProductDetailPage<span style="color: #009900;">&#40;</span>PageParameters parameters<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
<span style="color: #000066; font-weight: bold;">int</span> id <span style="color: #339933;">=</span> parameters.<span style="color: #006633;">getInt</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;id&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>After that, you can get the Product with this ID (the rest of the code can be downloaded below):</p>

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;">setModel<span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> CompoundPropertyModel<span style="color: #009900;">&#40;</span>productService.<span style="color: #006633;">getProduct</span><span style="color: #009900;">&#40;</span>id<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
add<span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> <span style="color: #003399;">Label</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;id&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
add<span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> <span style="color: #003399;">Label</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;name&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
add<span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> BookmarkablePageLink<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;backLink&quot;</span>, getApplication<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #006633;">getHomePage</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<h3>Limitations of Wicket</h3>
<p>It is currently not possibly (without doing a workaround outside Wicket) to do HTTP PUT, DELETE and POSTs to arbitrary URLs. If you do know how to achieve this, you are very welcome to post it in the comments.</p>
<h3>Further steps</h3>
<p>In the above tutorial we configured the URL&#8217;s in the WebApplication init() method. This has the drawback that information about a single page is in muliple places. It is good from an architecture perspective to configure the URL&#8217;s from the Page itself. Look at the wicket-stuff annotation project for more information on how to do that. You can find <a href="http://stuq.nl/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3dpY2tldHN0dWZmLm9yZy9jb25mbHVlbmNlL2Rpc3BsYXkvU1RVRkZXSUtJL3dpY2tldHN0dWZmLWFubm90YXRpb24=" target=\"_blank\">an excellent tutorial</a> there. The wicketstuff-annotation library is used to mount your pages declaratively via Java annotations.</p>
<h3>Further reading</h3>
<ul>
<li>Putting more variables in a URL, AJAX resistent: <a href="http://stuq.nl/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3dpY2tldC5hcGFjaGUub3JnL2FwaWRvY3MvMS40L29yZy9hcGFjaGUvd2lja2V0L3JlcXVlc3QvdGFyZ2V0L2NvZGluZy9IeWJyaWRVcmxDb2RpbmdTdHJhdGVneS5QYWdlSW5mb0V4dHJhY3Rpb24uaHRtbA==" target=\"_blank\">HybridUrlCodingStrategy</a></li>
<li><a href="http://stuq.nl/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3d3dy5tYWlsLWFyY2hpdmUuY29tL3dpY2tldC11c2VyQGxpc3RzLnNvdXJjZWZvcmdlLm5ldC9tc2czMDczMS5odG1s" target=\"_blank\">Wicket mailing list: Can I get a &#8216;Nice URL&#8217; when form validation fails?</a></li>
</ul>
<h3>Download</h3>
<p><a href="http://stuq.nl/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3N0dXEubmwvbWVkaWEvY29kZS9kZW1vLXJlc3RmdWwuemlw">Download the complete example project</a> and start experimenting! (run with mvn jetty:run and connect to http://localhost:8080/demo)</p>
<p>Let me know how and where you use it in the comments!</p>
<p>Read the original at <a href="http://stuq.nl/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3N0dXEubmwvd2VibG9nLzIwMDgtMDYtMjAvY3JlYXRlLXJlc3RmdWwtdXJscy13aXRoLXdpY2tldA==">Create RESTful URLs with Wicket</a> or go to the homepage of <a href="http://stuq.nl/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3N0dXEubmw=">STUQ.nl</a></p>
 <img src="http://stuq.nl/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=72" width="1" height="1" style="display: none;" /><div id="simple_socialmedia"><ul class="ssm_row"><li class="sharetext">Share:</li><li class="twitter"><a target="_blank" href="http://twitter.com/share?url=http://stuq.nl/weblog/2008-06-20/create-restful-urls-with-wicket&amp;text=Create RESTful URLs with Wicket&amp;via=daanvanetten">Tweet</a></li><li class="facebook"><a target="_blank" title="Share on Facebook" rel="nofollow" href="http://www.facebook.com/sharer.php?u=http://stuq.nl/weblog/2008-06-20/create-restful-urls-with-wicket&amp;t=Create RESTful URLs with Wicket">Facebook</a></li><li class="linkedin"><a target="_blank" title="Share on LinkedIn" rel="nofollow" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://stuq.nl/weblog/2008-06-20/create-restful-urls-with-wicket&amp;title=Create RESTful URLs with Wicket&amp;source=STUQ.nl">LinkedIn</a></li><li class="tumblr"><a target="_blank" title="Share on Tumblr" rel="nofollow" href="http://www.tumblr.com/share/link?url=http%3A%2F%2Fstuq.nl%2Fweblog%2F2008-06-20%2Fcreate-restful-urls-with-wicket&name=STUQ.nl&description=Create+RESTful+URLs+with+Wicket" title="Share on Tumblr">Tumblr</a></li><li class="stumble"><a target="_blank" title="Share on StumbleUpon" rel="nofollow" href="http://www.stumbleupon.com/submit?url=http://stuq.nl/weblog/2008-06-20/create-restful-urls-with-wicket">Stumble</a></li><li class="digg"><a target="_blank" title="Share on Digg" rel="nofollow" href="http://www.digg.com/submit?phase=2&amp;url=http://stuq.nl/weblog/2008-06-20/create-restful-urls-with-wicket">Digg</a></li><li class="delicious"><a target="_blank" title="Share on Delicious" rel="nofollow" href="http://del.icio.us/post?url=http://stuq.nl/weblog/2008-06-20/create-restful-urls-with-wicket&amp;title=INSERT_TITLE">Delicious</a></li></ul></div>

<br/><br/><p>Related posts:<ul><li><a href='http://stuq.nl/weblog/2008-09-03/user-friendly-form-validation-with-wicket' rel='bookmark' title='User friendly form validation with Wicket'>User friendly form validation with Wicket</a></li>
<li><a href='http://stuq.nl/weblog/2008-06-05/wicket-how-to-write-a-reusable-modal-window-popup' rel='bookmark' title='Wicket: how to write a reusable modal window popup'>Wicket: how to write a reusable modal window popup</a></li>
<li><a href='http://stuq.nl/weblog/2009-11-01/automatically-test-your-wicket-panel-html-markup' rel='bookmark' title='Automatically test your Wicket panel HTML markup'>Automatically test your Wicket panel HTML markup</a></li>
</ul></p>]]></content:encoded>
			<wfw:commentRss>http://stuq.nl/weblog/2008-06-20/create-restful-urls-with-wicket/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>

