<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Article RSS Feed</title>
    <link>http://your-web-site.com/rss/</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>The main blog feed for my Web site.</description>
    
    
        <item>
          <title>Using The Glassfish EJBContainer in Netbeans.</title>
          <description>&lt;p&gt;
As many already know, one of the features of Java EE 6 is the javax.ejb.embeddable packages that allows 
you to create an embedded EJB container through EJBContainer.createEJBContainer(). This is a useful feature
when you want to write a unit test for your EJB's. 
&lt;/p&gt;
&lt;p&gt;
Sometimes you want a little bit more control over what is configured in the embedded EJBContainer. In this entry we will look at how we 
can specify a custom domain.xml to use with glassfish v3 implementation of this embedded container.
&lt;/p&gt;</description>
          <pubDate>Thu, 05 Aug 2010 00:00:00 GMT</pubDate>
          <guid>http://your-web-site.com/articles/2010/08/05/using-the-glassfish-ejbcontainer-in-netbeans/</guid>
          <link>http://your-web-site.com/articles/2010/08/05/using-the-glassfish-ejbcontainer-in-netbeans/</link>
        </item>
    
        <item>
          <title>Supporting jquery ClientBehavior in JSF 2.0</title>
          <description>&lt;p&gt;
In JavaServer Faces 2.0 they have attempted to integrate Ajax and javascript. In an attempt to make it as easy as possible, and to increase the pluggability of the entire framework, the decision was made to come up with the concept of ClientBehavior. This seems to have been inspired by the presence of f:validator and f:convertor. Non Gui components that add extra functionality to their parent tags. 
&lt;/p&gt;
&lt;p&gt;
In theorie this is ok, but the events to which you can attache behaviour, are limited to the events returned by the getEventNames() method of  ClientBehaviourHolder. This interface is implemented by some components. For some reason the Specification team decided that in the HTML renderkit only
the editable value holder should implement this interface, and that the only events that are supported are the official dom events. The last part I can understand since the HTML renderkit does only try to specify the minimum requirements.
&lt;/p&gt;
&lt;p&gt;
In an attempt at integrating f:ajax for custom jquery events I ran into the limitations this imposes in relation to the front end development. We all know ASP.NET uses jquery, and it is a toolkit that is impossible to overlook at the moment. In this small howto we will write a jquery uicomponent that allwos us to attach f:ajax behaviour to it so we can invoke remote methods from backingbeans. The end result will look like this:
&lt;/p&gt;
&lt;pre class=&quot;codeblock&quot;&gt;
&amp;lt;h:form id=&quot;form&quot;&amp;gt;
    &amp;lt;h:panelGroup layout=&quot;block&quot; id=&quot;draggable&quot;&amp;gt;
        &amp;lt;div&amp;gt;&amp;lt;h:outputText value=&quot;Drag me&quot;/&amp;gt;&amp;lt;/div&amp;gt;
        &amp;lt;howest:jquery events=&quot;dragstart,drag,dragstop&quot; default=&quot;dragstop&quot; plugin=&quot;draggable&quot; options=&quot;{handle: 'div'}&quot;&amp;gt;
            &amp;lt;f:ajax listener=&quot;#{sample.doStart}&quot; render=&quot;status&quot; event=&quot;dragstart&quot;/&amp;gt;
            &amp;lt;f:ajax listener=&quot;#{sample.doDrag}&quot; render=&quot;status&quot; event=&quot;drag&quot;/&amp;gt;
            &amp;lt;f:ajax listener=&quot;#{sample.doStop}&quot; render=&quot;status&quot; event=&quot;dragstop&quot;/&amp;gt;
        &amp;lt;/howest:jquery&amp;gt;
    &amp;lt;/h:panelGroup&amp;gt;

    &amp;lt;h:outputText id=&quot;status&quot; value=&quot;#{sample.status}&quot; /&amp;gt;
&amp;lt;/h:form&amp;gt;
&lt;/pre&gt;
&lt;p&gt;
We will be using ResourceDepency to inject the correct jquery libraries. The tag as you can see will allow us to create composite tags that use jquery. For example a draggable tag or whatever you want.
&lt;/p&gt;
&lt;p&gt;
You can get the code from github &lt;a href=&quot;http://github.com/verborghs/jsf-jquery&quot;&gt;here&lt;/a&gt;. It's a slightly modified maven library and demo project that should get you up and running.
&lt;/p&gt;</description>
          <pubDate>Fri, 12 Feb 2010 11:44:27 GMT</pubDate>
          <guid>http://your-web-site.com/articles/2010/02/12/supporting-jquery-clientbehavior-in-jsf-2-0/</guid>
          <link>http://your-web-site.com/articles/2010/02/12/supporting-jquery-clientbehavior-in-jsf-2-0/</link>
        </item>
    
        <item>
          <title>Configuring a datasource for the embedded-glassfish maven plugin</title>
          <description>&lt;p&gt;
Maven is can be a magnificent tool, that allows you to get real work done. Recently with the release of the embedded Glassfish API and a Maven plugin to control an embedded instance, rubyesque ./script/server workflow are no longer impossible for Java Developers. Being able to send colleague developers a project they can just run from maven, no setup involved is a great step forward. 
&lt;/p&gt;
&lt;p&gt;
There are several resources on the internet that explain how to add the plugin to you maven project. But only one mentions the use of a datasource in his project an even then the solution is an ugly hack that leads to places where developers cry behind the corner. In this small intro I'll you how to get started with one of the weld artifacts, because it provides a basic JPA project.
&lt;/p&gt;</description>
          <pubDate>Fri, 29 Jan 2010 12:26:13 GMT</pubDate>
          <guid>http://your-web-site.com/articles/2010/01/29/configuring-a-datasource-for-the-embedded-glassfish-maven-plugin/</guid>
          <link>http://your-web-site.com/articles/2010/01/29/configuring-a-datasource-for-the-embedded-glassfish-maven-plugin/</link>
        </item>
    
        <item>
          <title>Porting the ViewScoped JSF annotation to CDI</title>
          <description>&lt;b&gt;
UPDATE: This implementation is something I created as a temporary solution untill JBoss releases the &lt;a href=&quot;http://seamframework.org/Seam3/FacesModule&quot;&gt;seam face module&lt;/a&gt;. You should try to get that one working instead. This article might help you gasp the inner workings a bit, but keep in mind this code is to simple to be reliable.
&lt;/b&gt;
&lt;br/&gt;
&lt;p&gt;
As you might know, JavaServer Faces 2 comes with some optional annotations. Optional, because halfway throught the specification process something called Dependency Injection for Java (JSR330) and something else called Context and Dependency Injection or CDI (JSR299) came to life. That means we have some very usefull annotations like &lt;code&gt;@ViewScoped&lt;/code&gt; that are specified in the JSF 2 specification that have no alternatives in CDI.
&lt;/p&gt;
&lt;p&gt;
CDI specifies &lt;code&gt;@RequestScoped&lt;/code&gt;, &lt;code&gt;@SessionScoped&lt;/code&gt;, &lt;code&gt;@ApplicationScoped&lt;/code&gt; and  &lt;code&gt;@ConversationScoped&lt;/code&gt; because these scopes are somewhat technology independent. A scope like &lt;code&gt;@ViewScoped&lt;/code&gt; is bound to a view technologie that has a concept of views. In the case of JSF this is a scope that remains into existence as long as we are using the page and doing postbacks to that page.
&lt;/p&gt;
&lt;p&gt;
This is a very usefull scope. We can put objects in this scope by putting them into the the map that is associated to the UIViewRoot of a view. In this article we will look at how we can create a custom &lt;code&gt;@ViewScoped&lt;/code&gt; annotation, a custom CDI &lt;code&gt;Context&lt;/code&gt; and a &lt;code&gt;Extension&lt;/code&gt; that will behave &quot;like&quot; the optional JSF &lt;code&gt;@ViewScoped&lt;/code&gt; annotation.
&lt;/p&gt;
</description>
          <pubDate>Wed, 06 Jan 2010 00:00:00 GMT</pubDate>
          <guid>http://your-web-site.com/articles/2010/01/06/porting-the-viewscoped-jsf-annotation-to-cdi/</guid>
          <link>http://your-web-site.com/articles/2010/01/06/porting-the-viewscoped-jsf-annotation-to-cdi/</link>
        </item>
    
        <item>
          <title>Arrrrcamp "unpresentation"</title>
          <description>&lt;p&gt;
You don't go to a Barcamp and just sit there! You get out an talk, and my present something if you feel like ... or as in my case &quot;unpresent&quot; something. Keep in mind, I had no preparation whatsoever except the rum they handed out for free. But hey, I don't think pirates rehearsed or something, so why would I. Arrrrr(gh).
&lt;/p&gt;

&lt;object width=&quot;400&quot; height=&quot;227&quot;&gt;&lt;param name=&quot;allowfullscreen&quot; value=&quot;true&quot; /&gt;&lt;param name=&quot;allowscriptaccess&quot; value=&quot;always&quot; /&gt;&lt;param name=&quot;movie&quot; value=&quot;http://vimeo.com/moogaloop.swf?clip_id=7748206&amp;amp;server=vimeo.com&amp;amp;show_title=1&amp;amp;show_byline=1&amp;amp;show_portrait=0&amp;amp;color=&amp;amp;fullscreen=1&quot; /&gt;&lt;embed src=&quot;http://vimeo.com/moogaloop.swf?clip_id=7748206&amp;amp;server=vimeo.com&amp;amp;show_title=1&amp;amp;show_byline=1&amp;amp;show_portrait=0&amp;amp;color=&amp;amp;fullscreen=1&quot; type=&quot;application/x-shockwave-flash&quot; allowfullscreen=&quot;true&quot; allowscriptaccess=&quot;always&quot; width=&quot;400&quot; height=&quot;227&quot;&gt;&lt;/embed&gt;&lt;/object&gt;&lt;p&gt;&lt;a href=&quot;http://vimeo.com/7748206&quot;&gt;ruby extensions&lt;/a&gt; from &lt;a href=&quot;http://vimeo.com/openminds&quot;&gt;Openminds&lt;/a&gt; on &lt;a href=&quot;http://vimeo.com&quot;&gt;Vimeo&lt;/a&gt;.&lt;/p&gt;</description>
          <pubDate>Sat, 28 Nov 2009 13:09:22 GMT</pubDate>
          <guid>http://your-web-site.com/articles/2009/11/28/arrrrcamp-unpresentation/</guid>
          <link>http://your-web-site.com/articles/2009/11/28/arrrrcamp-unpresentation/</link>
        </item>
    
        <item>
          <title>Easy restfull JAX-RS webservices and extended WADL on Glassfish v3 (using ant.)</title>
          <description>&lt;p&gt;
REST of Representational State Transfer seem to be the latest buzzword for some time in the world of webservices. Creating them, though not as easy as with Rails, using JAX-RS and the Jersey Reference implementation is not that difficult.  
&lt;/p&gt;
&lt;p&gt;
In this short introduction we will look into using EJB 3.1 lite in a web application to create a very simple dummy webservice. Since it would be enterprise enough on itself, we will also extend the default WADL file with the help of some ant tasks and doclets. To finish it up we will also generate a client based on the WADL and XSD. You will also see the advantages of using JAXB with JAX-RS.
&lt;/p&gt;</description>
          <pubDate>Sat, 21 Nov 2009 21:18:14 GMT</pubDate>
          <guid>http://your-web-site.com/articles/2009/11/21/easy-restfull-jax-rs-webservices-and-extended-wadl-on-glassfish-v3-using-ant-/</guid>
          <link>http://your-web-site.com/articles/2009/11/21/easy-restfull-jax-rs-webservices-and-extended-wadl-on-glassfish-v3-using-ant-/</link>
        </item>
    
        <item>
          <title>Building Upon Context and Dependency Injection and Dependency Injection for Java</title>
          <description>&lt;p&gt;
The new Java EE 6 plaftorm specifation has lots of new thing wort having a look at. In an attempt to write a JSF 2 application, where i didn't want to use the optional &lt;code&gt;ManagedBean&lt;/code&gt;, &lt;code&gt;ManagedProperty&lt;/code&gt; and related annotation, I needed to look into JSR 330 and JSR 299. There is some documentation available on both of these specs if you look arround on the internet.
&lt;p&gt;
&lt;p&gt;
In this small example I'll demonstrate how we can change a &lt;code&gt;@ManageProperty(value=&quot;#{params.id}&quot;)&lt;/coded&gt; annotation on a managed bean with an &lt;code&gt;@ManagedBean(&quot;demo&quot;)&lt;/code&gt; annotation to a custom &lt;code&gt;Qualifier&lt;/code&gt; annotation as specified in JSR 330: &quot;Dependency Injection for Java&quot;. We'll also look at how we van replace the &lt;code&gt;@ManagedBean&lt;/code&gt; annotation to the correct &lt;code&gt;javax.inject&lt;/code&gt; annotations.
&lt;p&gt;</description>
          <pubDate>Tue, 10 Nov 2009 18:53:58 GMT</pubDate>
          <guid>http://your-web-site.com/articles/2009/11/10/building-upon-context-and-dependency-injection-and-dependency-injection-for-java/</guid>
          <link>http://your-web-site.com/articles/2009/11/10/building-upon-context-and-dependency-injection-and-dependency-injection-for-java/</link>
        </item>
    
    
  </channel>
</rss>


