<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Hobione&#039;s Weblog</title>
	<atom:link href="http://hobione.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://hobione.wordpress.com</link>
	<description>Living &#38; Breathing in Web 2.0 Era</description>
	<lastBuildDate>Tue, 03 Nov 2009 20:56:53 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='hobione.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/fdf719a248a0428686a75d76d61a20ff?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Hobione&#039;s Weblog</title>
		<link>http://hobione.wordpress.com</link>
	</image>
			<item>
		<title>Balsamiq Mockups</title>
		<link>http://hobione.wordpress.com/2009/11/03/balsamiq-mockups/</link>
		<comments>http://hobione.wordpress.com/2009/11/03/balsamiq-mockups/#comments</comments>
		<pubDate>Tue, 03 Nov 2009 20:52:48 +0000</pubDate>
		<dc:creator>HobiOne</dc:creator>
				<category><![CDATA[Mockup]]></category>

		<guid isPermaLink="false">http://hobione.wordpress.com/?p=759</guid>
		<description><![CDATA[What a cool way to mock up web app.  Here is my first design that I am about to work on.

To, Balsamiq team: Keep up the good work, and probably need to give a catchy name.  Balsamiq is too hard to remember.  Really like the integration approach with Atlassian product like Jira and Confluence.  Thumbs [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hobione.wordpress.com&blog=2310597&post=759&subd=hobione&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>What a cool way to mock up web app.  Here is my first design that I am about to work on.</p>
<p><a href="http://hobione.files.wordpress.com/2009/11/myimage.png"><img class="aligncenter size-thumbnail wp-image-760" title="Balsamiq Mockups" src="http://hobione.files.wordpress.com/2009/11/myimage.png?w=150&#038;h=110" alt="Balsamiq Mockups" width="150" height="110" /></a></p>
<p>To, <a title="Balsamiq" href="http://www.balsamiq.com/" target="_blank">Balsamiq</a> team: Keep up the good work, and probably need to give a catchy name.  Balsamiq is too hard to remember.  Really like the integration approach with <a title="Atlassian" href="http://www.atlassian.com/" target="_blank">Atlassian</a> product like Jira and Confluence.  Thumbs UP!</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hobione.wordpress.com/759/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hobione.wordpress.com/759/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hobione.wordpress.com/759/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hobione.wordpress.com/759/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hobione.wordpress.com/759/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hobione.wordpress.com/759/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hobione.wordpress.com/759/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hobione.wordpress.com/759/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hobione.wordpress.com/759/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hobione.wordpress.com/759/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hobione.wordpress.com&blog=2310597&post=759&subd=hobione&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://hobione.wordpress.com/2009/11/03/balsamiq-mockups/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c428883b10d0500830c7034cd441dae0?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">HobiOne</media:title>
		</media:content>

		<media:content url="http://hobione.files.wordpress.com/2009/11/myimage.png?w=150" medium="image">
			<media:title type="html">Balsamiq Mockups</media:title>
		</media:content>
	</item>
		<item>
		<title>ICEFaces 1.8.1 migration</title>
		<link>http://hobione.wordpress.com/2009/07/29/icefaces-1-8-1-migration/</link>
		<comments>http://hobione.wordpress.com/2009/07/29/icefaces-1-8-1-migration/#comments</comments>
		<pubDate>Wed, 29 Jul 2009 22:36:18 +0000</pubDate>
		<dc:creator>HobiOne</dc:creator>
				<category><![CDATA[GlassFish]]></category>
		<category><![CDATA[ICEfaces]]></category>
		<category><![CDATA[MyEclipse IDE]]></category>

		<guid isPermaLink="false">http://hobione.wordpress.com/?p=734</guid>
		<description><![CDATA[I have recently needed for upgrade to 1.8 from 1.7.2.  The main reason I needed 1.8 is because my Auto Complete pop up list would not stay. It showed up for split of second and went away.  It did not give me any chance to pick one from list.  It worked perfectly [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hobione.wordpress.com&blog=2310597&post=734&subd=hobione&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I have recently needed for upgrade to 1.8 from 1.7.2.  The main reason I needed 1.8 is because my Auto Complete pop up list would not stay. It showed up for split of second and went away.  It did not give me any chance to pick one from list.  It worked perfectly on Firefox but not on IE 6 or 7.  Here are some steps I had to take to make it work with my existing source.</p>
<p><strong>Step 1</strong>:<br />
First, I changed the pom.xml file to 1.8.1, it should be a piece of cake but apparently it did not do a thing.</p>
<pre class="brush: xml;">
&lt;dependency&gt;
 &lt;groupId&gt;org.icefaces&lt;/groupId&gt;
 &lt;artifactId&gt;icefaces&lt;/artifactId&gt;
 &lt;version&gt;1.8.1&lt;/version&gt;
 &lt;/dependency&gt;
 &lt;dependency&gt;
 &lt;groupId&gt;org.icefaces&lt;/groupId&gt;
 &lt;artifactId&gt;icefaces-comps&lt;/artifactId&gt;
 &lt;version&gt;1.8.1&lt;/version&gt;
 &lt;/dependency&gt;
 &lt;dependency&gt;
 &lt;groupId&gt;org.icefaces&lt;/groupId&gt;
 &lt;artifactId&gt;icefaces-facelets&lt;/artifactId&gt;
 &lt;version&gt;1.8.1&lt;/version&gt;
 &lt;/dependency&gt;
</pre>
<p><strong>Steps I had taken to make it work</strong>:</p>
<p>Stopped and started the Glassfish server.  Closed and restarted MyEclipse 7.1 with -clean command but still would not work.  Here are some sample <span style="color:#ff0000;">errors</span> I was getting:</p>
<pre class="brush: xml;">
java.lang.
&lt;div id=&quot;:b0&quot;&gt;IllegalArgumentException: Illegal null argument to ObjectInputStreamWithLoader

java.lang.RuntimeException: Cant copy Serializable object: Caused by: java.lang.IllegalArgumentException: Illegal null argument to ObjectInputStreamWithLoader

[#|2009-07-28T19:59:38.107-0500|INFO|sun-appserver9.1|javax.enterprise.system.stream.out|_ThreadID=11;_ThreadName=pool-1-thread-2;|19:59:38,107  INFO D2DViewHandler:84 -
ICEsoft Technologies, Inc.
ICEfaces 1.7.2
 Build number: 17
Revision: 17749&lt;/div&gt;
&lt;div&gt;
</pre>
<p>As you may noticed that, even though I changed the pom to ICEfaces 1.8.1 but the server console showed 1.7.2.  I should thought about the server&#8217;s <span style="color:#ff0000;"><strong>cache </strong></span>issue but instead I did these following long steps.</p>
<p>I installed MyEclipse 7.5 which I meant to install it anyway and also 1.8 comes with MyEclipse 7.5.  So after install the MyEclipse 7.5, I was still getting errors.  Then, I created a brand new project using MyEclipse 7.5 and copied src, web and pom.xml to the new project.</p>
<p>Eeeeh, still would not work.  Finally I logged in to the admin console for Glassfish and undeployed all old 1.7.2 related project, stopped the server, restarted the server but wait, still negative.  I was getting this weird error.</p>
<pre class="brush: xml;">
java.lang.OutOfMemoryError: PermGen space&lt;/div&gt;
&lt;div&gt;</pre>
<div>I Googled it and found out that &#8220;It&#8217;s easy to reproduce this problem by reloading the context over and over again until you get an OutOfMemoryError (10 times was enough for a simple app)&#8221;.  So, I had to take a break to deploy the app and at last, it worked. Thank you my LORD.</div>
<p></p>
<div></div>
<div>ICEfaces rock! MyEclipse rocks!! my application rocks!!!</div>
<div></div>
<p></p>
<div><a href="http://hobione.files.wordpress.com/2009/07/autocomplete.jpg"><img class="aligncenter size-thumbnail wp-image-744" title="autoComplete" src="http://hobione.files.wordpress.com/2009/07/autocomplete.jpg?w=150&#038;h=101" alt="autoComplete" width="150" height="101" /></a></div>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hobione.wordpress.com/734/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hobione.wordpress.com/734/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hobione.wordpress.com/734/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hobione.wordpress.com/734/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hobione.wordpress.com/734/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hobione.wordpress.com/734/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hobione.wordpress.com/734/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hobione.wordpress.com/734/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hobione.wordpress.com/734/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hobione.wordpress.com/734/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hobione.wordpress.com&blog=2310597&post=734&subd=hobione&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://hobione.wordpress.com/2009/07/29/icefaces-1-8-1-migration/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c428883b10d0500830c7034cd441dae0?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">HobiOne</media:title>
		</media:content>

		<media:content url="http://hobione.files.wordpress.com/2009/07/autocomplete.jpg?w=150" medium="image">
			<media:title type="html">autoComplete</media:title>
		</media:content>
	</item>
		<item>
		<title>JavaOne 2009: Day four</title>
		<link>http://hobione.wordpress.com/2009/06/05/javaone-2009-day-four/</link>
		<comments>http://hobione.wordpress.com/2009/06/05/javaone-2009-day-four/#comments</comments>
		<pubDate>Fri, 05 Jun 2009 06:50:04 +0000</pubDate>
		<dc:creator>HobiOne</dc:creator>
				<category><![CDATA[JavaOne]]></category>

		<guid isPermaLink="false">http://hobione.wordpress.com/?p=687</guid>
		<description><![CDATA[This is it. Last day of JavaOne or may be the last JavaOne. No body knows what&#8217;s going to happen to JavaOne under Oracle umbrella. I just hope for the best and wising to come back again right here in San Francisco. The entire general session was hosted by James Gosling. He handed Duke awards [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hobione.wordpress.com&blog=2310597&post=687&subd=hobione&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>This is it. Last day of JavaOne or may be the last JavaOne. No body knows what&#8217;s going to happen to JavaOne under Oracle umbrella. I just hope for the best and wising to come back again right here in San Francisco. The entire general session was hosted by James Gosling. He handed Duke awards to several outstanding project team include Terracotta.org and <a title="Grameen" href="http://www.grameenfoundation.org/" target="_blank">Grameen Foundation.org</a> etc.  The project name for Grameen Foundation is <a title="http://www.mifos.org/developers" href="http://www.mifos.org/developers" target="_blank">MIFOS</a>.  I do feel connected to Grameen foundation and their effort to defeat global poverty and also support <a title="http://en.wikipedia.org/wiki/Muhammad_Yunus" href="http://en.wikipedia.org/wiki/Muhammad_Yunus" target="_blank">Dr. Yunus</a>.</p>
<table border="0">
<tbody>
<tr>
<td><a href="http://hobione.files.wordpress.com/2009/06/img_0117.jpg"><img class="alignleft size-thumbnail wp-image-688" title="IMG_0117" src="http://hobione.files.wordpress.com/2009/06/img_0117.jpg?w=150&#038;h=112" alt="IMG_0117" width="150" height="112" /></a></td>
<td><a href="http://hobione.files.wordpress.com/2009/06/img_01181.jpg"><img class="alignleft size-thumbnail wp-image-691" title="IMG_0118" src="http://hobione.files.wordpress.com/2009/06/img_01181.jpg?w=150&#038;h=112" alt="IMG_0118" width="150" height="112" /></a></td>
<td><a href="http://hobione.files.wordpress.com/2009/06/img_01191.jpg"><img class="alignleft size-thumbnail wp-image-692" title="IMG_0119" src="http://hobione.files.wordpress.com/2009/06/img_01191.jpg?w=150&#038;h=112" alt="IMG_0119" width="150" height="112" /></a></td>
</tr>
</tbody>
</table>
<p><span style="color:#008000;"><strong>Conversations and Page Flows on the Java: </strong><span style="color:#000000;">I took this session with <a title="http://www.manning.com/dallen/" href="http://www.manning.com/dallen/" target="_blank">Dan Allen</a></span> </span>who is the author of Seam in Action book. He talked the concept that Seam and Spring Web Flow both introduce, a conversation context whose purpose is to maintain state that pertains to a use case across a series of pages. Dan also covered,</p>
<ul>
<li>The definition of a page flow</li>
<li>How page flows are developed in Seam</li>
<li>How page flows are developed in Spring Web Flow</li>
<li>Seam&#8217;s ad hoc conversations</li>
</ul>
<p>He recommended use Seam with ICEfaces since <span style="color:#cc99ff;">ICEfaces is a single page application</span> but Spring will work as well.  In JSF 2.0, this conversation scope will be part of the framework.</p>
<p>One to one discussion with ICEfaces core Developer, Judy:  Here are some of her tips for my current HR training application:</p>
<ul>
<li>Add a search to find a class</li>
<li>Eliminate white spaces</li>
<li>Break code to more XHTML files</li>
<li>Show stuff only it is needed on the page</li>
<li>Every action has to be happen in 1 (one) second</li>
</ul>
<p>Here is the picture with me and Judy:  Thank you Judy for your helful tips and sat down with me while everyone was rushing to go home in Friday afternoon.  Appreciated.<br />
<a href="http://hobione.files.wordpress.com/2009/06/img_0003.jpg"><img class="aligncenter size-thumbnail wp-image-696" title="Judy" src="http://hobione.files.wordpress.com/2009/06/img_0003.jpg?w=150&#038;h=112" alt="Judy" width="150" height="112" /></a><br />
Bye bye JavaOne, bye bye San Francisco.  It was such a quick 5 days for me.  My head is stuff full of good information, hopefully I get to use some these tips and techniques before I forget &#8216;em.  Until next time I will be tune in <a title="http://www.youtube.com/watch?v=ryF9p-nqsWw" href="http://www.youtube.com/watch?v=ryF9p-nqsWw" target="_blank">Tony Bennett &#8211; I left my heart in San Francisco</a> and <a title="http://www.youtube.com/watch?v=TlQCuq-eezg" href="http://www.youtube.com/watch?v=TlQCuq-eezg" target="_blank">Scott McKenzie</a> or with <a title="http://www.youtube.com/watch?v=vn4ovawULGo" href="http://www.youtube.com/watch?v=vn4ovawULGo" target="_blank">Global Deejays</a>.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hobione.wordpress.com/687/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hobione.wordpress.com/687/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hobione.wordpress.com/687/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hobione.wordpress.com/687/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hobione.wordpress.com/687/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hobione.wordpress.com/687/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hobione.wordpress.com/687/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hobione.wordpress.com/687/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hobione.wordpress.com/687/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hobione.wordpress.com/687/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hobione.wordpress.com&blog=2310597&post=687&subd=hobione&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://hobione.wordpress.com/2009/06/05/javaone-2009-day-four/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c428883b10d0500830c7034cd441dae0?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">HobiOne</media:title>
		</media:content>

		<media:content url="http://hobione.files.wordpress.com/2009/06/img_0117.jpg?w=150" medium="image">
			<media:title type="html">IMG_0117</media:title>
		</media:content>

		<media:content url="http://hobione.files.wordpress.com/2009/06/img_01181.jpg?w=150" medium="image">
			<media:title type="html">IMG_0118</media:title>
		</media:content>

		<media:content url="http://hobione.files.wordpress.com/2009/06/img_01191.jpg?w=150" medium="image">
			<media:title type="html">IMG_0119</media:title>
		</media:content>

		<media:content url="http://hobione.files.wordpress.com/2009/06/img_0003.jpg?w=150" medium="image">
			<media:title type="html">Judy</media:title>
		</media:content>
	</item>
		<item>
		<title>JavaOne 2009: Day three</title>
		<link>http://hobione.wordpress.com/2009/06/04/javaone-2009-day-thre/</link>
		<comments>http://hobione.wordpress.com/2009/06/04/javaone-2009-day-thre/#comments</comments>
		<pubDate>Thu, 04 Jun 2009 04:41:25 +0000</pubDate>
		<dc:creator>HobiOne</dc:creator>
				<category><![CDATA[JavaOne]]></category>

		<guid isPermaLink="false">http://hobione.wordpress.com/?p=595</guid>
		<description><![CDATA[1. Unit Testing That Sucks Less:  Small Things Make a Big Difference: Neal Ford talked about different testing tools like Jester, MockRunner, Hamcrest, Groovy, RSpec/EasyB, and Selenium.  He showed how Groovy can help test java code.  He also mentioned about Unitils.org as well with dbUnit.
2. Writing Killer JavaServer Faces 2.0 UI Components:   [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hobione.wordpress.com&blog=2310597&post=595&subd=hobione&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>1. <span style="color:#008000;"><strong>Unit Testing That Sucks Less:  Small Things Make a Big Difference</strong></span>: Neal Ford talked about different testing tools like Jester, MockRunner, Hamcrest, Groovy, RSpec/EasyB, and Selenium.  He showed how Groovy can help test java code.  He also mentioned about <a href="http://unitils.org/summary.html">Unitils.org</a> as well with dbUnit.</p>
<p>2. <span style="color:#008000;"><strong>Writing Killer JavaServer Faces 2.0 UI Components</strong></span>:   <a title="http://www.nofluffjuststuff.com/conference/speaker/kito_mann.html" href="http://www.nofluffjuststuff.com/conference/speaker/kito_mann.html" target="_blank">Kito Mann</a> showed ease of use and component development in JSF 2.0.  He demoed and did walk through process of creating UI components.  He introduced few facelets tag like, &lt;ui:repeat&gt;, &lt;f:ajax&gt;.  He talked about annotation and resource hanler as well.</p>
<p>3. <strong><span style="color:#008000;">Visual JavaFX Techlonogy-Based Design with JFXBuilder</span></strong>:   I was very excited to take this session.  <a title="http://www.reportmill.com/dbox/" href="http://www.reportmill.com/dbox/" target="_blank">Josh Doenias</a> and Jeff martin did an excellent job to demostrate thier live code demo.  They developed a movie database application using drag and drop JFXBuilder tool.  The tool only has been around six months but I do see a great future of this tool and looking forward to use it in near future. Here is the tuturioal for <a title="http://www.reportmill.com/dbox/tutorial.html" href="http://www.reportmill.com/dbox/tutorial.html" target="_blank">Databox</a>.</p>
<p>4.<strong><span style="color:#008000;"> Best Practices for Large-Scale Web Sites: Lessons from</span></strong> <a title="http://ebay.com" href="http://ebay.com" target="_blank">eBay</a>: <span style="color:#ff0000;">* </span> Randy Shoup, had worked for Oracle in 8 year now Distinguished Architect in eBay.  He gave an outstanding presentation in Javaone.   Here are interesting inside information he gave us during the session:</p>
<ul>
<li>Over 80 millions active users</li>
<li>100,000 line of code get released every two weeks</li>
<li>16,000 java application server a day</li>
<li>No HTTP session</li>
<li>No EJBs</li>
</ul>
<p>Here are 5 best practices for Internet Scale:</p>
<ol>
<li>Partition Everything: If you cant split it, you cant scale it.</li>
<li>Asynchrony Everywhere</li>
<li>Automate Everything</li>
<li>Remember Everything Fails</li>
<li>Embrace Inconsistency</li>
</ol>
<table border="0" align="center">
<tbody>
<tr>
<td><a href="http://hobione.files.wordpress.com/2009/06/img_0012.jpg"><img class="alignleft size-thumbnail wp-image-661" title="Randy Shoup" src="http://hobione.files.wordpress.com/2009/06/img_0012.jpg?w=150&#038;h=112" alt="Randy Shoup" width="150" height="112" /></a> <a href="http://hobione.files.wordpress.com/2009/06/img_0011.jpg"><img class="alignleft size-thumbnail wp-image-663" title="Randy" src="http://hobione.files.wordpress.com/2009/06/img_0011.jpg?w=150&#038;h=112" alt="Randy" width="150" height="112" /></a><a href="http://hobione.files.wordpress.com/2009/06/img_00131.jpg"><img class="alignleft size-thumbnail wp-image-664" title="Randy @ eBay" src="http://hobione.files.wordpress.com/2009/06/img_00131.jpg?w=160&#038;h=112" alt="Randy @ eBay" width="160" height="112" /></a></td>
</tr>
</tbody>
</table>
<p>5. <span style="color:#008000;"><strong>Keeping a Relational Perspective for Optimizing the Java Persistence API</strong></span> (JPA):   <a title="http://debupanda.com/" href="http://debupanda.com/" target="_blank">Debu</a> and <a title="http://www.rahmannet.net/" href="http://www.rahmannet.net/" target="_blank">Reza</a> took a deep dive to JPA and explained how to use JPA in details.  Here some keynotes I jotted down from this session:</p>
<ol>
<li>De-normalize tables</li>
<li>DDL runs faster then DML</li>
<li>Lazy loading: How and When will it load:  Look for user name.  It is a good candidate for eager loading.  Searing for Blob, it could be a lazy loading candidate.</li>
<li>Native query: Be careful.</li>
<li>Name queries</li>
<li>Why is caching important</li>
<li>Add second level cache</li>
<li>Locking table, use diagnostic tool (i.e. Terracotta)</li>
</ol>
<table border="0" align="center">
<tbody>
<tr>
<td><a href="http://hobione.files.wordpress.com/2009/06/img_0015.jpg"><img class="alignleft size-thumbnail wp-image-679" title="Debu and Reza" src="http://hobione.files.wordpress.com/2009/06/img_0015.jpg?w=150&#038;h=112" alt="Debu and Reza" width="150" height="112" /></a></td>
<td><a href="http://hobione.files.wordpress.com/2009/06/img_0014.jpg"><img class="alignleft size-thumbnail wp-image-680" title="email" src="http://hobione.files.wordpress.com/2009/06/img_0014.jpg?w=150&#038;h=112" alt="email" width="150" height="112" /></a></td>
<td><a href="http://hobione.files.wordpress.com/2009/06/img_0010.jpg"><img class="alignleft size-thumbnail wp-image-682" title="Pavillion" src="http://hobione.files.wordpress.com/2009/06/img_0010.jpg?w=150&#038;h=112" alt="Pavillion" width="150" height="112" /></a></td>
</tr>
</tbody>
</table>
<p>My co-worker and I had a long discussion after took this session and here we came up with this desgin to share middle tier from different modules in iDMS application.</p>
<p><a href="http://hobione.files.wordpress.com/2009/06/sharedjpa.png"><img class="aligncenter size-thumbnail wp-image-726" title="Share middle tier in between different modules." src="http://hobione.files.wordpress.com/2009/06/sharedjpa.png?w=150&#038;h=105" alt="Share middle tier in between different modules." width="150" height="105" /></a></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hobione.wordpress.com/595/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hobione.wordpress.com/595/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hobione.wordpress.com/595/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hobione.wordpress.com/595/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hobione.wordpress.com/595/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hobione.wordpress.com/595/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hobione.wordpress.com/595/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hobione.wordpress.com/595/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hobione.wordpress.com/595/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hobione.wordpress.com/595/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hobione.wordpress.com&blog=2310597&post=595&subd=hobione&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://hobione.wordpress.com/2009/06/04/javaone-2009-day-thre/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c428883b10d0500830c7034cd441dae0?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">HobiOne</media:title>
		</media:content>

		<media:content url="http://hobione.files.wordpress.com/2009/06/img_0012.jpg?w=150" medium="image">
			<media:title type="html">Randy Shoup</media:title>
		</media:content>

		<media:content url="http://hobione.files.wordpress.com/2009/06/img_0011.jpg?w=150" medium="image">
			<media:title type="html">Randy</media:title>
		</media:content>

		<media:content url="http://hobione.files.wordpress.com/2009/06/img_00131.jpg?w=150" medium="image">
			<media:title type="html">Randy @ eBay</media:title>
		</media:content>

		<media:content url="http://hobione.files.wordpress.com/2009/06/img_0015.jpg?w=150" medium="image">
			<media:title type="html">Debu and Reza</media:title>
		</media:content>

		<media:content url="http://hobione.files.wordpress.com/2009/06/img_0014.jpg?w=150" medium="image">
			<media:title type="html">email</media:title>
		</media:content>

		<media:content url="http://hobione.files.wordpress.com/2009/06/img_0010.jpg?w=150" medium="image">
			<media:title type="html">Pavillion</media:title>
		</media:content>

		<media:content url="http://hobione.files.wordpress.com/2009/06/sharedjpa.png?w=150" medium="image">
			<media:title type="html">Share middle tier in between different modules.</media:title>
		</media:content>
	</item>
		<item>
		<title>JavaOne 2009: Day two</title>
		<link>http://hobione.wordpress.com/2009/06/02/javaone-2009-day-two/</link>
		<comments>http://hobione.wordpress.com/2009/06/02/javaone-2009-day-two/#comments</comments>
		<pubDate>Tue, 02 Jun 2009 16:18:42 +0000</pubDate>
		<dc:creator>HobiOne</dc:creator>
				<category><![CDATA[Java core]]></category>

		<guid isPermaLink="false">http://hobione.wordpress.com/?p=594</guid>
		<description><![CDATA[I was lazy this morning so I skipped the General Session.  They had a big announcement on Java 7 and JEE 6.  Oh well, I was tired.   So anyway, here are some of my favorite sessions of the day.
1. Maven:  Took this session with John F Smart, a New Zealand java geek.  It was very [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hobione.wordpress.com&blog=2310597&post=594&subd=hobione&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I was lazy this morning so I skipped the General Session.  They had a big announcement on Java 7 and JEE 6.  Oh well, I was tired.   So anyway, here are some of my favorite sessions of the day.</p>
<p>1. <span style="color:#008000;"><strong>Maven</strong></span>:  Took this session with <a title="http://weblogs.java.net/blog/johnsmart/" href="http://weblogs.java.net/blog/johnsmart/" target="_blank">John F Smart</a>, a New Zealand java geek.  It was very helpful session.  He talked about &lt;exclusion&gt; tag in maven and showed pom.xml in gui view.  He mentioned about project inheritance  in Maven.  Super pom file &#8211;&gt; Child pom file.  So what kind of stuff can you put in super pom file?  Answer was, stuff you share across and easy to maintain.  He mentioned about centralize reporting and also talked about Inheritance: Bottom up and Aggregation: Up down.</p>
<p><span style="color:#ff6600;">Word of advice</span>:  If you want to make it standard, you want to make it available everywhere.</p>
<p>2. <strong><span style="color:#008000;">Resfull Webservices</span></strong>:  Took this session with <a title="http://weblogs.java.net/blog/mhadley/" href="http://weblogs.java.net/blog/mhadley/" target="_blank">Marc Hadley</a> and Paul Sandoz.  They have touched in various area using JAX-RS includes:</p>
<ul>
<li>Mapping URLs to java class files and methods</li>
<li>Handling HTTP request for common HTTP methods</li>
<li>Obtaining parameters from the HTP request</li>
<li>Using MIME media types and mapping representations to MIME media types and Java Programming language types</li>
</ul>
<p>Marc mentioned to be careful with regular expression.  He showed a sweet command for Firefox browser: <span style="color:#ff00ff;">about:config</span>.<br />
<span style="color:#99cc00;"><span style="color:#993300;">Future</span>:</span> Restful 2.0 is underway.  Mime multipart, templating and more integration with JSF 2.0.  Here is the <a title="http://blogs.sun.com/sandoz/resource/PS_TS-4875_304875_230-1_v2.pdf" href="http://blogs.sun.com/sandoz/resource/PS_TS-4875_304875_230-1_v2.pdf" target="_blank">slide show</a>.</p>
<p>3. <span style="color:#008000;"><strong>HtmlUnit: Testing Web app: </strong><span style="color:#000000;"><a title="http://daniel.gredler.net/" href="http://daniel.gredler.net/" target="_blank">Daniel Gredler</a> and Ahmed Ashour explained how a top-to-bottom integration testing works and ensuring Web application quality.   <a title="http://htmlunit.sourceforge.net/" href="http://htmlunit.sourceforge.net/" target="_blank">HtmlUnit</a> is a 7 years old product, 100% java, open source.  It runs inside the JVM.  It does integration testing, screen scrapting.  They also explained,</span></span></p>
<ul>
<li><span style="color:#008000;"><span style="color:#000000;">The two approaches to Web app integration testing: browser simulation and browser driving.</span></span></li>
<li><span style="color:#008000;"><span style="color:#000000;">The cons of the browser simulation approach.</span></span></li>
<li><span style="color:#008000;"><span style="color:#000000;">The pros of the browser simulation approach.</span></span></li>
<li><span style="color:#008000;"><span style="color:#000000;">Key extension points provided by HtmUnit.<br />
</span></span></li>
</ul>
<p><span style="color:#008000;"><span style="color:#000000;"> Daniel also mentioned about JSF Unit as well.<br />
</span></span></p>
<p><span style="color:#008000;"><span style="color:#000000;"><br />
</span></span></p>
<p>4. <span style="color:#008000;"><strong>Coding Soap and Rest together (</strong>TS-4883<strong>): </strong><span style="color:#000000;"> </span></span><a title="http://www.linkedin.com/pub/martin-grebac/1/253/a74" href="http://www.linkedin.com/pub/martin-grebac/1/253/a74" target="_blank">Martin Grebac</a> and Jakub Podlesak<span style="color:#008000;"> <span style="color:#000000;">explained when you need soap and when you need rest.</span></span></p>
<p>Why SOAP:</p>
<ul>
<li><span style="color:#008000;"><span style="color:#000000;">Contract already known</span></span></li>
<li><span style="color:#008000;"><span style="color:#000000;">Security</span></span></li>
<li><span style="color:#008000;"><span style="color:#000000;">QoS: No functionl requirement</span></span></li>
</ul>
<p>Why Rest:</p>
<ul>
<li>Simplicity</li>
<li>Scalability</li>
<li>Serendipity</li>
</ul>
<p>They also mentioned about not to fall into RPC over HTTP and annotation.  He indicated Rest-RPC hybrid and gave a demo with JavaFX with webservices (soap).<br />
<span style="color:#ff6600;">Link</span>: <a title="https://metro.dev.java.net/" href="https://metro.dev.java.net/" target="_blank">metro.dev.java.net</a></p>
<p><span style="color:#cc99ff;"><strong>Java EE 6, Glashfish V3 and Hudson demo</strong></span>:  I have attended to a <a title="http://wikis.sun.com/display/GlassFishConferences/GlassFish+2009+unconference+planning" href="http://wikis.sun.com/display/GlassFishConferences/GlassFish+2009+unconference+planning" target="_blank">GlassFish 2009 unconference</a> party at the Hotel <a title="http://www.starwoodhotels.com/stregis/index.html" href="http://www.starwoodhotels.com/stregis/index.html" target="_blank">St. Regis</a> where they have a demo setup for all upcoming products.  I talked and networked with several Sun employees and product managers about their products.  It was very nice to meet them in person and discuss  as well.  I have brought up our Glassfish support issue with Glassfish product manager, Abijit and Nazrul.  <a title="http://weblogs.java.net/blog/kohsuke/" href="http://weblogs.java.net/blog/kohsuke/" target="_blank">Kohsuke Kawaguchi</a> gave me a brief introduction on <a title="https://hudson.dev.java.net/" href="https://hudson.dev.java.net/" target="_blank">Hudson</a> continuous integration and how to set up a test automation environment.  It was very informative.  BTW, Hudson has a plugin for <a title="http://www.ca.com/us/products/product.aspx?ID=255" href="http://www.ca.com/us/products/product.aspx?ID=255" target="_blank">CA Harvest</a> as well.</p>
<p><span style="color:#333399;">Good News</span>:  A hot development can be done with JavaEE with Glassfish V3 and light Ejb3 also available as well. <span style="color:#ff0000;">*</span></p>
<table border="0" align="center">
<tbody>
<tr>
<td><a href="http://hobione.files.wordpress.com/2009/06/img_0073.jpg"><img class="size-thumbnail wp-image-637 alignleft" title="Glassfish Unconference" src="http://hobione.files.wordpress.com/2009/06/img_0073.jpg?w=150&#038;h=112" alt="Glassfish Unconference" width="150" height="112" /></a>
</td>
<td>
<a href="http://hobione.files.wordpress.com/2009/06/img_0074.jpg"><img class="size-thumbnail wp-image-638 alignleft" title="EE 6" src="http://hobione.files.wordpress.com/2009/06/img_0074.jpg?w=150&#038;h=112" alt="EE 6" width="150" height="112" /></a>
</td>
<td>
<a href="http://hobione.files.wordpress.com/2009/06/img_00051.jpg"><img class="alignleft size-thumbnail wp-image-647" title="Java = Everywhere" src="http://hobione.files.wordpress.com/2009/06/img_00051.jpg?w=150&#038;h=112" alt="Java = Everywhere" width="150" height="112" /></a></td>
</tr>
</tbody>
</table>
<p>5. <strong><span style="color:#008000;">BOF:<span style="color:#339966;"> </span></span></strong><span style="color:#008000;"><span style="color:#000000;"><span style="color:#339966;">JavaServer Faces Platform and Ajax: State of Union</span>:  This was my first Bird of Feather in this year.<br />
</span></span></p>
<ol>
<li>Ted Goddard (ICEfaces Framework)</li>
<li>Andy Schwartz (Oracle ADF Faces / Trinidad)</li>
<li>Alexandr Smirnov (RichFaces [Ajax4JSF])</li>
</ol>
<p><a href="http://hobione.files.wordpress.com/2009/06/img_0075.jpg"><img class="aligncenter size-thumbnail wp-image-636" title="Ted Godder-ICEFaces" src="http://hobione.files.wordpress.com/2009/06/img_0075.jpg?w=150&#038;h=112" alt="Ted Godder-ICEFaces" width="150" height="112" /></a></p>
<p>Each of these individuals is a JavaServer Faces 2.0 Expert Group member who has contributed to the specification.  It was a demo and Q&amp;A session.</p>
<p>6. <span style="color:#008000;"><strong>BOF: </strong><span style="color:#000000;"><span style="color:#339966;">Writing a JavaServer Faces 2.0 Compoenent</span>:  Jim Driscoll and Ryan Lubke showed how easy to write fully reusable JSF composite component using Facelets, XHTML tags.</span><br />
</span></p>
<p>7.  <span style="color:#008000;"><strong>BOF</strong></span>: <span style="color:#008000;"><span style="color:#339966;">SOA</span></span><strong><span style="color:#008000;">: </span></strong><span style="color:#000000;">Aaron Mulder<span style="color:#ff0000;">*</span> from <a title="http://chariotsolutions.com/" href="http://chariotsolutions.com/" target="_blank">Chariotsolutions </a></span> explained many of the key open-source options: Java Architecture for XML binding (JAXB), SOAP and REST (CXF, Axis), ESBs (OpenESB, Mule, ServiceMix, JBossESB), messaging (ActiveMZ), goverance (Galaxy), BPEL (ActiveBPEL, ODE) and more.  Arron gave a big-picutre view of how you can start building an SOA with low-cost tools.  <a title="http://chariotsolutions.com/downloads/presentations" href="http://chariotsolutions.com/downloads/presentations" target="_blank">Click here for the slide</a>.  I have discussed Arron with our current iDMS architecture and he suggested that adding web services in our service layer make things slow down unless we have a reason to have web services in place.  He also mentioned about <a title="http://static.springframework.org/spring-ws/sites/1.5/" href="http://static.springframework.org/spring-ws/sites/1.5/" target="_blank">Spring Web Services</a> as well since we are already using Spring for our Service layer in iDMS.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hobione.wordpress.com/594/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hobione.wordpress.com/594/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hobione.wordpress.com/594/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hobione.wordpress.com/594/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hobione.wordpress.com/594/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hobione.wordpress.com/594/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hobione.wordpress.com/594/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hobione.wordpress.com/594/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hobione.wordpress.com/594/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hobione.wordpress.com/594/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hobione.wordpress.com&blog=2310597&post=594&subd=hobione&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://hobione.wordpress.com/2009/06/02/javaone-2009-day-two/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c428883b10d0500830c7034cd441dae0?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">HobiOne</media:title>
		</media:content>

		<media:content url="http://hobione.files.wordpress.com/2009/06/img_0073.jpg?w=150" medium="image">
			<media:title type="html">Glassfish Unconference</media:title>
		</media:content>

		<media:content url="http://hobione.files.wordpress.com/2009/06/img_0074.jpg?w=150" medium="image">
			<media:title type="html">EE 6</media:title>
		</media:content>

		<media:content url="http://hobione.files.wordpress.com/2009/06/img_00051.jpg?w=150" medium="image">
			<media:title type="html">Java = Everywhere</media:title>
		</media:content>

		<media:content url="http://hobione.files.wordpress.com/2009/06/img_0075.jpg?w=150" medium="image">
			<media:title type="html">Ted Godder-ICEFaces</media:title>
		</media:content>
	</item>
		<item>
		<title>JavaOne 2009: Day One</title>
		<link>http://hobione.wordpress.com/2009/06/02/javaone-2009-day-one/</link>
		<comments>http://hobione.wordpress.com/2009/06/02/javaone-2009-day-one/#comments</comments>
		<pubDate>Tue, 02 Jun 2009 07:31:03 +0000</pubDate>
		<dc:creator>HobiOne</dc:creator>
				<category><![CDATA[JavaOne]]></category>

		<guid isPermaLink="false">http://hobione.wordpress.com/?p=588</guid>
		<description><![CDATA[Attended the general session with Johathan Schwartz, chief executive officer and president of Sun Microsystems.  The highlight was, how Java has evolved in past 14 years.  Java is everywhere from a small device to all the way to Mars. He brought eBay as an example.  eBay is a 100% java shop, $60 billion merchandises were [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hobione.wordpress.com&blog=2310597&post=588&subd=hobione&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Attended the general session with Johathan Schwartz, chief executive officer and president of Sun Microsystems.  The highlight was, how Java has evolved in past 14 years.  Java is everywhere from a small device to all the way to Mars. He brought eBay as an example.  <span style="color:#ff00ff;">eBay</span> is a 100% java shop, $<span style="color:#008000;">60 billion</span> merchandises were sold in 2008, <span style="color:#008000;">60 million</span> transaction per second.  Other guest presenter were, Blackberry, Blue-ray, Intel (Atom processor).  JavaFx was big part of the whole session.  James Gosling showed about <a title="http://en.wikipedia.org/wiki/RuneScape" href="http://en.wikipedia.org/wiki/RuneScape" target="_blank">RuneScape</a> game and mentioned about <a title="http://www.java.com/en/store/index.jsp" href="http://www.java.com/en/store/index.jsp" target="_blank">store.java.com</a>. It was nice being witness of <a title="http://en.wikipedia.org/wiki/Larry_Ellison" href="http://en.wikipedia.org/wiki/Larry_Ellison" target="_blank">Larry Ellison</a> and <a title="http://en.wikipedia.org/wiki/Scott_McNealy" href="http://en.wikipedia.org/wiki/Scott_McNealy" target="_blank">Scott McNealy</a>&#8217;s handshake to watch live.</p>
<p>What does a leadership mean? It means <span style="color:#ff6600;">Courage.</span><br />
1. Ejb 3.1<br />
2. Servlet 3.0: Annotation was introduced, no web.xml, asynchronous servlet</p>
<p>Spent rest of the day in Java Pavillion to network and discussed issues with Icefaces, Liferay, Teracotta, Spring and many other vendors.  I had a face to face conversation with <a title="Brian Chan" href="http://www.liferay.com/web/brian.chan" target="_blank">Brian Chan</a>, the Liferay Portal inventor.  He gave few web urls as a Liferay real life example.   <a title="nba.com" href="http://www.nba.com/" target="_blank">www.nba.com</a> is one of them.  I met with <a title="Wesley Reisz" href="http://wesleyreisz.com/" target="_blank">Wesley Reisz</a> in Liferay booth who is a contract employee for U.S Army and seriously thinking to use Liferay instead of  <a title="Web Space" href="http://www.sun.com/software/products/webspace/" target="_blank">Glassfish Web Space</a>.  By the way, Glassfish Web Space is built on Liferay portal.</p>
<p><a href="http://hobione.files.wordpress.com/2009/06/liferaybooth.jpg"><img class="aligncenter size-thumbnail wp-image-709" title="liferayBooth" src="http://hobione.files.wordpress.com/2009/06/liferaybooth.jpg?w=150&#038;h=57" alt="liferayBooth" width="150" height="57" /></a></p>
<p>I also met Judy Guglielmin, who is the core developer for ICEfaces api.  We had a great conversation about ICEfaces and also about my current application that I have been working on.  She gave me ICEFaces T-Shirt for all my teammates.  THANK U, Judy.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hobione.wordpress.com/588/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hobione.wordpress.com/588/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hobione.wordpress.com/588/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hobione.wordpress.com/588/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hobione.wordpress.com/588/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hobione.wordpress.com/588/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hobione.wordpress.com/588/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hobione.wordpress.com/588/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hobione.wordpress.com/588/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hobione.wordpress.com/588/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hobione.wordpress.com&blog=2310597&post=588&subd=hobione&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://hobione.wordpress.com/2009/06/02/javaone-2009-day-one/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c428883b10d0500830c7034cd441dae0?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">HobiOne</media:title>
		</media:content>

		<media:content url="http://hobione.files.wordpress.com/2009/06/liferaybooth.jpg?w=150" medium="image">
			<media:title type="html">liferayBooth</media:title>
		</media:content>
	</item>
		<item>
		<title>JavaOne 2009:  Java University &amp; CommunityOne</title>
		<link>http://hobione.wordpress.com/2009/06/01/javaone-2009-java-university/</link>
		<comments>http://hobione.wordpress.com/2009/06/01/javaone-2009-java-university/#comments</comments>
		<pubDate>Mon, 01 Jun 2009 06:37:09 +0000</pubDate>
		<dc:creator>HobiOne</dc:creator>
				<category><![CDATA[JavaOne]]></category>

		<guid isPermaLink="false">http://hobione.wordpress.com/?p=532</guid>
		<description><![CDATA[JavaOne! Wow!  What a kool place to be as a Java Developer.  Actually this is the best conference for any Java Developers that is loaded with stuff and not much fluff.  I have been pumped up to attend this year JavaOne since my Team Lead and Branch Manager have approved the request. This is my [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hobione.wordpress.com&blog=2310597&post=532&subd=hobione&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><a href="http://java.sun.com/javaone/">JavaOne</a>! Wow!  What a kool place to be as a Java Developer.  Actually this is the best conference for any Java Developers that is loaded with stuff and not much fluff.  I have been pumped up to attend this year JavaOne since my Team Lead and Branch Manager have approved the request. This is my third years in JavaOne so my cohort and I&#8217;ve decided to come a day early to explore the beautiful San Francisco a little closer.  We wanted to take a bike ride yesterday (May 31, 2009) and cross the Golden Gate bridge but weather was not in our favor instead we went to see <a href="http://en.wikipedia.org/wiki/Coit_Tower">Coit tower</a>, that was awesome.  We had some world best Clam Chowder at the Fishermen&#8217;s Whraf and smoke some good Cigar.  It was fun.</p>
<p><span style="color:#008000;"> </span></p>
<p>JavaOne has grown so much.  They are adding more stuff every year. Today I have attended in general sessions for little bit with David Douglas.  <a title="Cloud Computing" href="http://en.wikipedia.org/wiki/Cloud_computing" target="_blank">Cloud computing</a> was hot topic.</p>
<p><a href="http://hobione.files.wordpress.com/2009/06/img_00781.jpg"><img class="aligncenter size-thumbnail wp-image-583" title="Cloud computing" src="http://hobione.files.wordpress.com/2009/06/img_00781.jpg?w=150&#038;h=112" alt="Cloud computing" width="150" height="112" /></a></p>
<p>I supposed to attend in whole day a special session on SOA but I only able to take the first half of the course.  I think it was kind of boring because instructor chose to deliver the concept of SOA instead of how to do it method.  I do understand that SOA is a complicated concept to teach in eight hours but anyway, I have taken these following Community One sessions after lunch hour:</p>
<p>1. <span style="color:#008000;"><strong>Glassfish application Server</strong></span>:  <a title="http://www.adam-bien.com/" href="http://www.adam-bien.com/" target="_blank">Adam Bien</a> gave us a tour of Glassfish Admin Gui for V3 and talked about how a Portal server can run in Glassfish.  He refused to make comments on Oracle app server vs future of Glassfish server.  <a title="Glassfish" href="www.glassfish.org/portal" target="_self">www.glassfish.org/portal</a>.  Adam also mentioned about <a title="http://profiler.netbeans.org/" href="http://profiler.netbeans.org/" target="_blank">jFluidProfiler</a>, a new way to profile a java application.</p>
<p>2. <span style="color:#008000;"><strong>JSF/Portlet/Ajex Push</strong></span>: Ed Burn and Neil Griffins talked about JSF 2.0 and how Icefaces will behave with this new version of JSF.  One good thing out of many in JSF 2.0, it has built in Facelets support, which is very cool.  Ed explained Inter Portlet communication VS. Inter Browser communication.   Neil showed that how easy to build composite components in JSF 2.0.  Question was asked about ICEfaces + Clustering, Neil told us to go look at his blog for it.</p>
<p>3. <span style="color:#008000;"><strong>Hibernate Scalibility</strong></span>:  <a title="http://terracotta.org/" href="http://terracotta.org/" target="_blank">Terracotta.org</a> showed how it can help to high-scale Spring and Hibernate reference application.  Terracotta is a open source project and current version is 3.1.  Terracotta received <a title="http://www.sun.com/featured-articles/2009-0601/feature/c1_gallery.xml?t=4&amp;p=1&amp;s=1" href="http://www.sun.com/featured-articles/2009-0601/feature/c1_gallery.xml?t=4&amp;p=1&amp;s=1" target="_blank">Duke&#8217;s choice award</a> in last day of conference. Highlights of topics are:</p>
<ol>
<li> When to use second level cache</li>
<li> When to detach your conversation</li>
<li> Recognize non-relational data</li>
<li> Open session in view</li>
<li> Examinator use case:
<ul>
<li> Password reset</li>
<li>Single signon</li>
</ul>
</li>
</ol>
<p>4. <span style="color:#008000;"><strong>What do we need to know about creating and running a scalable website</strong></span>:  <a title="http://zembly.com/" href="http://zembly.com/" target="_blank">Zembly.com</a> presented some cool tricks and tips to create Facebook application.  Shared their experience of weekly <span style="color:#ff00ff;">one hour holistic</span> testing before product gets released.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hobione.wordpress.com/532/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hobione.wordpress.com/532/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hobione.wordpress.com/532/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hobione.wordpress.com/532/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hobione.wordpress.com/532/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hobione.wordpress.com/532/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hobione.wordpress.com/532/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hobione.wordpress.com/532/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hobione.wordpress.com/532/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hobione.wordpress.com/532/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hobione.wordpress.com&blog=2310597&post=532&subd=hobione&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://hobione.wordpress.com/2009/06/01/javaone-2009-java-university/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c428883b10d0500830c7034cd441dae0?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">HobiOne</media:title>
		</media:content>

		<media:content url="http://hobione.files.wordpress.com/2009/06/img_00781.jpg?w=150" medium="image">
			<media:title type="html">Cloud computing</media:title>
		</media:content>
	</item>
		<item>
		<title>dataTable and radio button in JSF</title>
		<link>http://hobione.wordpress.com/2009/05/29/datatable-and-radio-button-in-jsf/</link>
		<comments>http://hobione.wordpress.com/2009/05/29/datatable-and-radio-button-in-jsf/#comments</comments>
		<pubDate>Fri, 29 May 2009 16:50:14 +0000</pubDate>
		<dc:creator>HobiOne</dc:creator>
				<category><![CDATA[Java Server Faces]]></category>

		<guid isPermaLink="false">http://hobione.wordpress.com/?p=556</guid>
		<description><![CDATA[Scenerio: Wanted to render the same radio button group for all rows in the table so that only one button can be selected at a time.  There seem to be no easy solution to that simple problem!

Reason: The above plan apparently doesn&#8217;t work, because &#60;h:selectOneRadio&#62; renders an HTML &#8220;table&#8221; by itself, and that &#8220;messes up&#8221; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hobione.wordpress.com&blog=2310597&post=556&subd=hobione&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><strong><span style="color:#0000ff;">Scenerio:</span></strong> Wanted to render the same radio button group for all rows in the table so that only one button can be selected at a time.  There seem to be no easy solution to that simple problem!</p>
<p style="text-align:center;"><a href="http://hobione.files.wordpress.com/2009/05/datatableradiobuttons.jpg"><img class="size-thumbnail wp-image-558 aligncenter" title="datatableradiobuttons" src="http://hobione.files.wordpress.com/2009/05/datatableradiobuttons.jpg?w=150" alt="DataTable and RadioButton" /></a></p>
<p><strong><span style="color:#cc99ff;">Reason</span></strong>: The above plan apparently doesn&#8217;t work, because &lt;h:selectOneRadio&gt; renders an HTML &#8220;table&#8221; by itself, and that &#8220;messes up&#8221; the other &#8220;table&#8221; that the &lt;h:dataTable&gt; tag renders.</p>
<p><strong><span style="color:#ff99cc;">Solution</span></strong>:  One work around would be to use <a title="TomaHawk" href="http://wiki.apache.org/myfaces/Display_Radio_Buttons_In_Columns" target="_blank">TomaHawk</a> but instead of mixing two JSF implementations I went ahead to use command link.</p>
<p><a rel="attachment wp-att-565" href="http://hobione.wordpress.com/2009/05/29/datatable-and-radio-button-in-jsf/commnadlink/"><img class="aligncenter size-thumbnail wp-image-565" title="Commnad Link" src="http://hobione.files.wordpress.com/2009/05/commnadlink.jpg?w=150" alt="Commnad Link" width="150" height="62" /></a><span style="color:#808000;"><strong>2nd Soulution</strong></span>:  <span style="color:#000000;"><span style="font-size:11pt;">The key to getting this to work is to define the selectOneRadio component outside of the table. </span><span style="font-size:11pt;">Then by setting the layout attribute to spread and using the ice:radio components inside the dataTable it gives you the rough layout/functionality.</span></span></p>
<pre class="brush: xml;">

&lt;h2&gt;Main Page&lt;/h2&gt;
&lt;ice:form&gt;
 &lt;ice:panelGroup id=&quot;tablePanel&quot;&gt;

 &lt;ice:selectOneRadio id=&quot;trainingClassRadio&quot;
 value=&quot;#{testBean.selectedClass}&quot;
 partialSubmit=&quot;true&quot;
 valueChangeListener=&quot;#{testBean.radioChanged}&quot;
 layout=&quot;spread&quot;&gt;
 &lt;f:selectItems value=&quot;#{testBean.radioItems}&quot;/&gt;
 &lt;/ice:selectOneRadio&gt;

 &lt;ice:dataTable var=&quot;class&quot; value=&quot;#{testBean.trainingClassList}&quot;
 varStatus=&quot;classStatus&quot;&gt;
 &lt;ice:column&gt;
 &lt;f:facet name=&quot;header&quot;&gt;
 &lt;ice:outputText value=&quot;&quot;/&gt;
 &lt;/f:facet&gt;
 &lt;ice:radio for=&quot;trainingClassRadio&quot;
 index=&quot;#{classStatus.index}&quot;/&gt;
 &lt;/ice:column&gt;

 &lt;ice:column&gt;
 &lt;f:facet name=&quot;header&quot;&gt;
 &lt;ice:outputText value=&quot;Class Name&quot;/&gt;
 &lt;/f:facet&gt;
 &lt;ice:outputText value=&quot;#{class.className}&quot;/&gt;
 &lt;/ice:column&gt;
 &lt;ice:column&gt;
 &lt;f:facet name=&quot;header&quot;&gt;
 &lt;ice:outputText value=&quot;Class Number&quot;/&gt;
 &lt;/f:facet&gt;
 &lt;ice:outputText value=&quot;#{class.classNum}&quot;/&gt;
 &lt;/ice:column&gt;
 &lt;ice:column&gt;
 &lt;f:facet name=&quot;header&quot;&gt;
 &lt;ice:outputText value=&quot;Class Description&quot;/&gt;
 &lt;/f:facet&gt;
 &lt;ice:outputText value=&quot;#{class.classDesc}&quot;/&gt;
 &lt;/ice:column&gt;
 &lt;/ice:dataTable&gt;
 &lt;/ice:panelGroup&gt;

 &lt;ice:panelGrid columns=&quot;2&quot;&gt;
 &lt;ice:outputText value=&quot;Selected Row - Class Name:&quot;/&gt;
 &lt;ice:outputText value=&quot;#{testBean.selectedTraining.className}&quot;/&gt;
 &lt;ice:outputText value=&quot;Selected Row - Class Number:&quot;/&gt;
 &lt;ice:outputText value=&quot;#{testBean.selectedTraining.classNum}&quot;/&gt;
 &lt;ice:outputText value=&quot;Selected Row - Class Description&quot;/&gt;
 &lt;ice:outputText value=&quot;#{testBean.selectedTraining.classDesc}&quot;/&gt;
 &lt;/ice:panelGrid&gt;

 &lt;/ice:form&gt;
</pre>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hobione.wordpress.com/556/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hobione.wordpress.com/556/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hobione.wordpress.com/556/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hobione.wordpress.com/556/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hobione.wordpress.com/556/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hobione.wordpress.com/556/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hobione.wordpress.com/556/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hobione.wordpress.com/556/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hobione.wordpress.com/556/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hobione.wordpress.com/556/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hobione.wordpress.com&blog=2310597&post=556&subd=hobione&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://hobione.wordpress.com/2009/05/29/datatable-and-radio-button-in-jsf/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c428883b10d0500830c7034cd441dae0?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">HobiOne</media:title>
		</media:content>

		<media:content url="http://hobione.files.wordpress.com/2009/05/datatableradiobuttons.jpg?w=150" medium="image">
			<media:title type="html">datatableradiobuttons</media:title>
		</media:content>

		<media:content url="http://hobione.files.wordpress.com/2009/05/commnadlink.jpg?w=150" medium="image">
			<media:title type="html">Commnad Link</media:title>
		</media:content>
	</item>
		<item>
		<title>JSF: f:selectItem vs. javax.faces.model.SelectItem</title>
		<link>http://hobione.wordpress.com/2009/05/01/jsf-fselectitem-vs-javaxfacesmodelselectitem/</link>
		<comments>http://hobione.wordpress.com/2009/05/01/jsf-fselectitem-vs-javaxfacesmodelselectitem/#comments</comments>
		<pubDate>Fri, 01 May 2009 21:58:31 +0000</pubDate>
		<dc:creator>HobiOne</dc:creator>
				<category><![CDATA[Java Server Faces]]></category>

		<guid isPermaLink="false">http://hobione.wordpress.com/?p=542</guid>
		<description><![CDATA[Let me explain what works and then I will tell you what not works. ListModel has a list type of javax.faces.model.SelectItem:


public class TrainingSessionsListModel extends ListModel{

 private List&#60;SelectItem&#62; availableSlotSelectItems;

 public List&#60;SelectItem&#62; getSessionNumberSelectItems() {

 if (this.sessionNumberSelectItems == null){
    sessionNumberSelectItems = new ArrayList();
    for(int i = 100; i &#60; 1000; i++){
  [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hobione.wordpress.com&blog=2310597&post=542&subd=hobione&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Let me explain what works and then I will tell you what not works. ListModel has a list type of javax.faces.model.SelectItem:</p>
<pre class="brush: java;">

public class TrainingSessionsListModel extends ListModel{

 private List&lt;SelectItem&gt; availableSlotSelectItems;

 public List&lt;SelectItem&gt; getSessionNumberSelectItems() {

 if (this.sessionNumberSelectItems == null){
    sessionNumberSelectItems = new ArrayList();
    for(int i = 100; i &lt; 1000; i++){
       SelectItem selectItem = new SelectItem(i,Integer.toString(i));
       sessionNumberSelectItems.add(selectItem);
    }
 }
 return sessionNumberSelectItems;
 }
 }
</pre>
<p style="margin-bottom:12pt;">xhtml now referring to the above list model class to get the list and set the value to TrainingSessionsDTO.sessionNumber property:</p>
<pre class="brush: xml;">
&lt;td&gt;
 &lt;ice:selectOneMenu id=&quot;sessionNumber&quot; partialSubmit=&quot;true&quot; value=&quot;#{
trainingSessionsListModel.TrainingSessionsDTO.sessionNumber}&quot; required=&quot;true&quot;&gt;

&lt;f:selectItem itemLabel=&quot;#{msgs.select}&quot; itemValue=&quot;&quot; /&gt;
 &lt;f:selectItems value=&quot;#{trainingSessionsListModel.sessionNumberSelectItems}&quot;/&gt;

 &lt;/ice:selectOneMenu&gt;&lt;/td&gt;
</pre>
<p>Here is the transfer object with getter and setter.</p>
<pre class="brush: java;">
 public class TrainingSessionsDTO extends TransferSupport implements Transfer,
 Serializable {

 String sessionNumber;

 //getter and setter .......

 }
</pre>
<p><a href="http://hobione.files.wordpress.com/2009/05/sessionnumber.jpg"><img class="aligncenter size-full wp-image-546" title="sessionNumber" src="http://hobione.files.wordpress.com/2009/05/sessionnumber.jpg?w=232&#038;h=159" alt="sessionNumber" width="232" height="159" /></a></p>
<p>The above works fine, no problem but if I change the xhtml to these it wont work.</p>
<pre class="brush: xml;">
&lt;ice:selectOneMenu id=&quot;sessionNumber&quot; partialSubmit=&quot;true&quot; value=&quot;#{
trainingSessionsListModel.TrainingSessionsDTO.sessionNumber}&quot; required=&quot;true&quot;&gt;
 &lt;f:selectItem itemLabel=&quot;#{msgs.select}&quot; itemValue=&quot;&quot; /&gt;

 &lt;f:selectItem itemLabel=&quot;100&quot; value=&quot;100&quot; /&gt;
 &lt;f:selectItem itemLabel=&quot;200&quot; value=&quot;200&quot; /&gt;
 &lt;f:selectItem itemLabel=&quot;300&quot; value=&quot;300&quot; /&gt;
 &lt;/ice:selectOneMenu&gt;&lt;/td&gt;
</pre>
<p><span style="color:#ff0000;"><strong>Exception:</strong></span><br />
java.lang.String cannot be cast to javax.faces.model.SelectItem</p>
<p><span style="color:#008000;"><strong>Solution</strong></span>:</p>
<pre class="brush: xml;">
&lt;f:selectItem itemLabel=&quot;100&quot; itemValue=&quot;100&quot; /&gt;
&lt;f:selectItem itemLabel=&quot;200&quot; itemValue=&quot;200&quot; /&gt;
&lt;f:selectItem itemLabel=&quot;300&quot; itemValue=&quot;300&quot; /&gt;
</pre>
<p>The value is meant to send in a SelectItem object and not a String.  This should eliminate the exception you are seeing.  Here is my beautiful finished work (form and datatable):<br />
<a href="http://hobione.files.wordpress.com/2009/05/trainingsessionform.jpg"><img class="aligncenter size-thumbnail wp-image-554" title="trainingsessionform" src="http://hobione.files.wordpress.com/2009/05/trainingsessionform.jpg?w=150&#038;h=91" alt="trainingsessionform" width="150" height="91" /></a></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hobione.wordpress.com/542/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hobione.wordpress.com/542/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hobione.wordpress.com/542/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hobione.wordpress.com/542/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hobione.wordpress.com/542/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hobione.wordpress.com/542/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hobione.wordpress.com/542/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hobione.wordpress.com/542/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hobione.wordpress.com/542/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hobione.wordpress.com/542/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hobione.wordpress.com&blog=2310597&post=542&subd=hobione&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://hobione.wordpress.com/2009/05/01/jsf-fselectitem-vs-javaxfacesmodelselectitem/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c428883b10d0500830c7034cd441dae0?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">HobiOne</media:title>
		</media:content>

		<media:content url="http://hobione.files.wordpress.com/2009/05/sessionnumber.jpg" medium="image">
			<media:title type="html">sessionNumber</media:title>
		</media:content>

		<media:content url="http://hobione.files.wordpress.com/2009/05/trainingsessionform.jpg?w=150" medium="image">
			<media:title type="html">trainingsessionform</media:title>
		</media:content>
	</item>
		<item>
		<title>JSF @PostConstruct</title>
		<link>http://hobione.wordpress.com/2009/04/22/jsf-postconstruct/</link>
		<comments>http://hobione.wordpress.com/2009/04/22/jsf-postconstruct/#comments</comments>
		<pubDate>Wed, 22 Apr 2009 21:20:02 +0000</pubDate>
		<dc:creator>HobiOne</dc:creator>
				<category><![CDATA[Java Server Faces]]></category>

		<guid isPermaLink="false">http://hobione.wordpress.com/?p=529</guid>
		<description><![CDATA[Scenario:  I needed to get some data for datatable when the bean get initiated.
So, I have tried these following code.

public TrainingClassForm() {  //constructor
        this.trainingListModel.getAllTrainingClasses();
    }

Error:

me:  javax.faces.FacesException: Problem in renderResponse: javax.faces.FacesException: Cant instantiate class: gov.faa.amc.nas.hrtrainingview.bean.backing.TrainingClassForm.. null

Issue: Banging my head after few hours, then I have discussed with JSF Expert, Jason Lee who helped me [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hobione.wordpress.com&blog=2310597&post=529&subd=hobione&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><span style="color:#33cccc;"><strong>Scenario</strong></span>:  I needed to get some data for datatable when the bean get initiated.<br />
So, I have tried these following code.</p>
<pre class="brush: java;">
public TrainingClassForm() {  //constructor
        this.trainingListModel.getAllTrainingClasses();
    }
</pre>
<p><span style="color:#ff00ff;">E<strong>rror</strong></span>:</p>
<pre class="brush: xml;">
me:  javax.faces.FacesException: Problem in renderResponse: javax.faces.FacesException: Cant instantiate class: gov.faa.amc.nas.hrtrainingview.bean.backing.TrainingClassForm.. null
</pre>
<p><span style="color:#ff6600;"><strong>Issue</strong></span>: Banging my head after few hours, then I have discussed with JSF Expert, <a title="Jason Lee" href="http://blogs.steeplesoft.com/" target="_blank">Jason Lee</a> who helped me to sort this out.   I was calling trainingListModel before it get initiated/born.  So I was getting a null pointer in TrainingListModel class.</p>
<p><span style="color:#008000;"><strong>Lesson to learn</strong></span>:  Use @PostConstruct instead.</p>
<p>1. If the bean has request scope, @PostConstruct will get executed every time.  It will be called after the managed bean is instantiated, but before the bean is placed in scope.   Such a method take no arguments, return void, and may not declare a checked exception to be thrown.  Method may be public, protected, private, or package private.  If the method throws an unchecked exception, the JSF implementation must not put the managed bean into service and no further menthods on that managed bean instance will be called.</p>
<pre class="brush: java;">
// Constructor
    public TrainingClassForm() {

    }
  @PostConstruct
   public void init() {
       if (this.trainingListModel.getListDataModel() != null) {
          this.trainingListModel.getAllTrainingClasses();
       } 

    }
</pre>
<p>2. @PreDestroy:Any scoped managed bean menthod annotated with @PreDestroy will be called before the bean is removed from the scope or before the scope in which the bean resides is destroyed, whichever comes first.  The constraints placed on the method are the same as with @PostConstruct.</p>
<p>Ref Book: The Complete Reference &#8211; JavaServerFaces  by Chris Schalk &amp; Ed Burns</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hobione.wordpress.com/529/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hobione.wordpress.com/529/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hobione.wordpress.com/529/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hobione.wordpress.com/529/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hobione.wordpress.com/529/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hobione.wordpress.com/529/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hobione.wordpress.com/529/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hobione.wordpress.com/529/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hobione.wordpress.com/529/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hobione.wordpress.com/529/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hobione.wordpress.com&blog=2310597&post=529&subd=hobione&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://hobione.wordpress.com/2009/04/22/jsf-postconstruct/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c428883b10d0500830c7034cd441dae0?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">HobiOne</media:title>
		</media:content>
	</item>
	</channel>
</rss>