<?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>ryan norris &#187; wicket</title>
	<atom:link href="http://www.ryannorris.com/tag/wicket/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ryannorris.com</link>
	<description>managing software teams and delivering great results</description>
	<lastBuildDate>Fri, 25 Jun 2010 13:44:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Piling on Praise for Apache Wicket</title>
		<link>http://www.ryannorris.com/2009/04/13/piling-on-praise-for-apache-wicket/</link>
		<comments>http://www.ryannorris.com/2009/04/13/piling-on-praise-for-apache-wicket/#comments</comments>
		<pubDate>Mon, 13 Apr 2009 12:20:57 +0000</pubDate>
		<dc:creator>Ryan Norris</dc:creator>
				<category><![CDATA[Building Better Software]]></category>
		<category><![CDATA[Enterprise Architecture]]></category>
		<category><![CDATA[Java Development]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[wicket]]></category>

		<guid isPermaLink="false">http://www.ryannorris.com/?p=66</guid>
		<description><![CDATA[I think someone finally got a web framework for Java right. While I&#8217;m still yet to try on some of the AJAX support &#8211; something that makes or breaks a web framework these days &#8211; Wicket&#8216;s clear separation of concerns and robust architecture for MVP (right, &#8216;P&#8217;, as in Model-View-Presenter) has really impressed me.  Generally [...]]]></description>
			<content:encoded><![CDATA[<p>I <strong>think </strong>someone finally got a web framework for Java right.</p>
<p>While I&#8217;m still yet to try on some of the AJAX support &#8211; something that makes or breaks a web framework these days &#8211; <a title="Wicket" href="http://wicket.apache.org" target="_blank">Wicket</a>&#8216;s clear separation of concerns and robust architecture for MV<em>P</em> (right, &#8216;P&#8217;, as in Model-View-Presenter) has really impressed me.  Generally speaking, I have not been one to embrace convention over configuration in frameworks like RoR, simply because it seems non-scalable.  But given it&#8217;s pure focus on UI and it&#8217;s total flexibility to do whatever the hell I want with my middle tier, I&#8217;m feeling that when restricted to the presentation layer &#8211; the paradigm works.  Wicket is pretty programmer-centric, so unlike RoR, you&#8217;re not going to get off the ground without some skills or a scaffolding framework like <em>Wicketopia</em>, but I&#8217;m not at all convinced this isn&#8217;t a bad thing.</p>
<p>There are a couple of things that I could get enthusiastic with around Wicket, were someone &#8211; including myself &#8211; to improve them.</p>
<ol>
<li><strong>Documentation. </strong>Look, I hate documenting things as much as the next guy &#8211; but in as much as I&#8217;ve enjoyed the fruits of my labor in Wicket, I have not enjoyed chasing down information to all ends of the globe.  I love the fact that this is working software, and the curve isn&#8217;t too steep &#8211; but try finding stuff on form validation, or the entire concept of mounting URL paths.</li>
<li><strong>Callbacks, anyone? </strong>So, forms in Wicket generally appear to be processed by the <strong>onSubmit()</strong> method of the Form class.  You override this in your child class of form.  This is the very object-oriented way of doing things, but it seems a touch limiting out of the box to not be able to register callbacks on this method.  My <strong>Form</strong> class exists so that I can have more than one of these per page, no doubt (take <em>THAT</em> ASP.NET), but I still think that I&#8217;d like to be able to actually register callback handlers as I wish in each <strong>Page</strong>, thus allowing Forms to have different behaviors dependent on where they are used.  I&#8217;m pretty sure this isn&#8217;t the 80% use case, but I still am left with only one alternative out of the box, and that&#8217;s to keep extending the class hierarchy.  It&#8217;s nice to embrace strategy pattern and all, but to me this is where we really need an observer.
<p>So I was able to fudge this myself by creating a <strong>FormSubmitListener </strong>interface, subclass <strong>Form </strong>and implement it&#8217;s <strong>onSubmit()</strong> to call the <strong>formSubmitted()</strong><em> </em>method from my new interface, it&#8217;s own implementation registered through the constructor on my <strong>Form</strong> subclass &#8211; but I think in an MVP or MVC framework, I still would like the ability to use OOP to handle the quirks of the page lifecycle (yeah, yeah &#8211; Wicket is unmanaged), but allow observers to actually handle pseudo-user events.</li>
</ol>
<p>These two things aside, I feel pretty at peace with Wicket as my web framework for Java projects going forward (sorry Seam).</p>
<p>Another note &#8211; I&#8217;m really interested in the possibilities of packaging all of the resources for the web project in the JAR file.  While WAR&#8217;s are fine for deployment, JAR&#8217;s make the application open for truly modular design.</p>
<p>Now to refresh my memory on getting JTA running in a pure servlet container&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ryannorris.com/2009/04/13/piling-on-praise-for-apache-wicket/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Diving back into Java, and liking it (mostly)</title>
		<link>http://www.ryannorris.com/2009/04/08/diving-back-into-java-and-liking-it-mostly/</link>
		<comments>http://www.ryannorris.com/2009/04/08/diving-back-into-java-and-liking-it-mostly/#comments</comments>
		<pubDate>Wed, 08 Apr 2009 15:53:14 +0000</pubDate>
		<dc:creator>Ryan Norris</dc:creator>
				<category><![CDATA[Building Better Software]]></category>
		<category><![CDATA[Enterprise Architecture]]></category>
		<category><![CDATA[Java Development]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[hibernate]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[jpa]]></category>
		<category><![CDATA[maven]]></category>
		<category><![CDATA[spring]]></category>
		<category><![CDATA[wicket]]></category>

		<guid isPermaLink="false">http://www.ryannorris.com/?p=60</guid>
		<description><![CDATA[So for various reasons, I&#8217;ve pulled Eclipse Ganymede down and decided to check in on where Java has gone during my year-long mental hiatus in Redmond.  I have certain biases now from the land of .Net, and god help the Java world if it angers me after seeing the things I&#8217;ve seen in the last [...]]]></description>
			<content:encoded><![CDATA[<p>So for various reasons, I&#8217;ve pulled Eclipse Ganymede down and decided to check in on where Java has gone during my year-long mental hiatus in Redmond.  I have certain biases now from the land of .Net, and god help the Java world if it angers me after seeing the things I&#8217;ve seen in the last year.</p>
<p>All in all, I&#8217;m very pleased.</p>
<p><strong>The m2eclipse plugin is marvelous, finally.</strong></p>
<p>The day has finally come where I&#8217;m no longer fighting <a title="Eclipse" href="http://www.eclipse.org" target="_blank">Eclipse</a> to build projects using <a title="Maven" href="http://maven.apache.org" target="_blank">Maven</a>, as it should be.  Maven ties far too many niceties of the world together, and to not have it as the underlying, portable build tool within the IDE has always frustrated me.  The ability to quickly start a new Maven project, apply an archetype and go is fantastic.  The fact that it doesn&#8217;t require special jazz to get a WTP project up and running is even better.</p>
<p><strong>Hey look, working with my database and some JPA implementation is really easy!</strong></p>
<p>&#8230;well, almost easy.  I created a project for my middleware just using the quickstart archetype.  I was just going to throw Spring on top of it and avoid spoiling the good experience so far with EJB insanity.  The next thing I wanted to do was load up my database tables as ORM classes via Hibernate.</p>
<p>For whatever reason, this was cool on my Mac.  Project Properties&#8230;JPA Tools&#8230;Generate entities.  This is somehow not the way to do it over in windows.  So instead I tried to add JPA as a project facet.</p>
<p>My first problem was that I didn&#8217;t have Hibernate set up as my default JPA provider.  Unfortunately, you can only do this through the Maven-managed dependencies.  It has to be an Eclipse user library.  So I download the Entity Manager and wire it up into Eclipse.  Add the Java Facet (somehow <strong>not a default</strong>, probably Maven&#8217;s fault), added the JPA Facet (and am told I need to add the Utility Facet, so I do that).</p>
<p><em>Further configuration required.</em></p>
<p>Ok.  So I click into this further configuration and it reasonably wants to know how I connect to the database.  Fair enough.  I do all this, and it still won&#8217;t let me apply the change.</p>
<p>Eventually, it appears you need to add the Java project facet <em>first</em>, and then and only then can I reopen the properties page and apply the JPA facet.  A frustration point, but I figured it out.</p>
<p><strong>Hey, nothing special to get a project with the Wicket archetype running in WTP.</strong></p>
<p>I start a separate web project and use the <a title="Wicket" href="http://wicket.apache.org" target="_blank">Wicket </a>archetype, interested in tackling what looks to be a nice, lightweight UI package for Java (though it looks like <a title="Spring Framework" href="http://www.springframework.org" target="_blank">Spring </a>integration isn&#8217;t trivial &#8211; which is basically unacceptable these days).  I start the project, I add a server configuration, and deploy&#8230;</p>
<p><em>Holy crap, it works out of the box!</em></p>
<p>I have a ways to go, but things feel more turnkey with Eclipse than I&#8217;ve ever experienced.  I did up some JUnits with Mockito, and that was easy, indicating that if I were to set up Cruise or some other CI tool, I could quickly get going with a full Agile project.  Exciting stuff.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ryannorris.com/2009/04/08/diving-back-into-java-and-liking-it-mostly/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
