<?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>Elegando &#187; JBoss Seam</title>
	<atom:link href="http://elegando.jcg3.org/cat/jboss-seam/feed/" rel="self" type="application/rss+xml" />
	<link>http://elegando.jcg3.org</link>
	<description>elegant » being unusually effective and simple...</description>
	<lastBuildDate>Mon, 01 Mar 2010 20:17:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Seam + Google App Engine</title>
		<link>http://elegando.jcg3.org/2009/06/seam-google-app-engine/</link>
		<comments>http://elegando.jcg3.org/2009/06/seam-google-app-engine/#comments</comments>
		<pubDate>Tue, 16 Jun 2009 01:58:49 +0000</pubDate>
		<dc:creator>Jason G.</dc:creator>
				<category><![CDATA[JBoss Seam]]></category>

		<guid isPermaLink="false">http://www.elegando.com/2009/06/seam-google-app-engine/</guid>
		<description><![CDATA[I was looking around to see if anyone got Seam working on the Google App Engine for Java&#8230; and the short answer is both yes and no. Here are the 3 links that will tell you the state of the state as of this writing&#8230; SeamFramework &#8211; The people who developed Seam lay down their [...]]]></description>
			<content:encoded><![CDATA[<p>I was looking around to see if anyone got Seam working on the <a href="http://code.google.com/appengine/docs/java/overview.html">Google App Engine for Java</a>&#8230; and the short answer is both yes and no. Here are the 3 links that will tell you the state of the state as of this writing&#8230;</p>
<ul>
<li><a href="http://www.seamframework.org/Community/SeamGoogleAppEngine">SeamFramework</a> &#8211; The people who developed Seam lay down their perspective&#8230;</li>
<li><a href="http://ctpjava.blogspot.com/2009/04/jboss-seam-on-google-app-engine-first.html">Get it Working</a> &#8211; One developer got it working, with more than a few tweaks and hacks&#8230;</li>
<li><a href="http://www.michaelyuan.com/blog/2009/04/09/google-app-engine-for-java-first-impressions/">Overview from Michael Yuan</a> &#8211; a quick list of what&#8217;s good, what won&#8217;t be supported, from a Seam expert&#8230;</li>
</ul>
<p>Short answer, it&#8217;s not there yet, at least not with all the features and functionality you would be using Seam for in the first place&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://elegando.jcg3.org/2009/06/seam-google-app-engine/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>File Download Support</title>
		<link>http://elegando.jcg3.org/2009/01/file-download-support/</link>
		<comments>http://elegando.jcg3.org/2009/01/file-download-support/#comments</comments>
		<pubDate>Mon, 26 Jan 2009 19:59:20 +0000</pubDate>
		<dc:creator>Jason G.</dc:creator>
				<category><![CDATA[JBoss Seam]]></category>

		<guid isPermaLink="false">http://www.elegando.com/2009/01/file-download-support/</guid>
		<description><![CDATA[Need to enable file download support in a Seam application? Here&#8217;s how. Make sure you&#8217;re running Seam version 2.1.2 or later.]]></description>
			<content:encoded><![CDATA[<p>Need to enable file download support in a Seam application? <a href="http://in.relation.to/Bloggers/FileDownloadSupport">Here&#8217;s how</a>. Make sure you&#8217;re running Seam version 2.1.2 or later.</p>
]]></content:encoded>
			<wfw:commentRss>http://elegando.jcg3.org/2009/01/file-download-support/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iPhone User Interface</title>
		<link>http://elegando.jcg3.org/2008/01/iphone-user-interface/</link>
		<comments>http://elegando.jcg3.org/2008/01/iphone-user-interface/#comments</comments>
		<pubDate>Tue, 08 Jan 2008 22:21:37 +0000</pubDate>
		<dc:creator>Jason G.</dc:creator>
				<category><![CDATA[JBoss Seam]]></category>
		<category><![CDATA[JSF]]></category>

		<guid isPermaLink="false">http://www.elegando.com/2008/01/iphone-user-interface/</guid>
		<description><![CDATA[Michael Yuan has a quick article about using Seam to program web apps for the iPhone in Seam. He&#8217;s using the iui framework, which looks pretty nice. It gives you the music player/everything look and feel in a web page. See the demo for an example.]]></description>
			<content:encoded><![CDATA[<p>Michael Yuan <a href="http://www.michaelyuan.com/blog/2008/01/08/develop-compelling-iphone-applications-with-jsf-facelets-seam/">has a quick article about using Seam</a> to program web apps for the iPhone in Seam.</p>
<p>He&#8217;s using the <a href="http://code.google.com/p/iui/">iui framework</a>, which looks pretty nice.  It gives you the music player/everything look and feel in a web page.  See <a href="http://iui.googlecode.com/svn/tags/REL-current/samples/music.html">the demo for an example</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://elegando.jcg3.org/2008/01/iphone-user-interface/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Convert Date Time</title>
		<link>http://elegando.jcg3.org/2007/09/convert-date-time/</link>
		<comments>http://elegando.jcg3.org/2007/09/convert-date-time/#comments</comments>
		<pubDate>Sun, 30 Sep 2007 21:53:41 +0000</pubDate>
		<dc:creator>Jason G.</dc:creator>
				<category><![CDATA[JBoss Seam]]></category>
		<category><![CDATA[JSF]]></category>

		<guid isPermaLink="false">http://www.elegando.com/2007/09/convert-date-time/</guid>
		<description><![CDATA[JSF has a well known problem with date entry and timezones&#8230; luckily those folks working on JBoss Seam have a fix. Just make sure you use the tag instead of the and everything will be peachy. Date of Birth: (Example: 12/31/2006)]]></description>
			<content:encoded><![CDATA[<p>JSF has a well known problem with date entry and timezones&#8230;  luckily those folks working on JBoss Seam have a fix.  Just make sure you use the <s:convertDateTime> tag instead of the <h:convertDateTime> and everything will be peachy.<span id="more-31"></span></p>
<pre>
<code>
<h:outputLabel for="dateOfBirth">Date of Birth:</h:outputLabel>
<h:outputText>
	<s:decorate>
		<h:inputText id="dateOfBirth" value="#{dateOfBirth}" required="true">
			<span class="emphasis"><s:convertDateTime pattern="MM/dd/yyyy" /></span>
			<s:validate/>
		</h:inputText>
		<s:selectDate for="dateOfBirth" startYear="1910" endYear="2007">
			<img src="../img/dtpick.gif"/>
		</s:selectDate>
	</s:decorate>
	(Example: 12/31/2006)
</h:outputText>
</code>
</pre>
]]></content:encoded>
			<wfw:commentRss>http://elegando.jcg3.org/2007/09/convert-date-time/feed/</wfw:commentRss>
		<slash:comments>-28</slash:comments>
		</item>
		<item>
		<title>Nesting Seam Validation Tags</title>
		<link>http://elegando.jcg3.org/2007/08/seam-validation-w-rich-faces/</link>
		<comments>http://elegando.jcg3.org/2007/08/seam-validation-w-rich-faces/#comments</comments>
		<pubDate>Tue, 28 Aug 2007 15:06:34 +0000</pubDate>
		<dc:creator>Jason G.</dc:creator>
				<category><![CDATA[JBoss Seam]]></category>
		<category><![CDATA[JSF]]></category>

		<guid isPermaLink="false">http://www.elegando.com/2007/08/seam-validation-w-rich-faces/</guid>
		<description><![CDATA[Here&#8217;s an interesting one that caused me to stumble for a while&#8230; If you are leveraging Seam&#8217;s field-level validation and are mixing it with Rich Faces components, you have to be conscious of how you nest your tags. For example, this caused validation to be skipped: When clicking on the save button, you will bypass [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s an interesting one that caused me to stumble for a while&#8230;  If you are leveraging Seam&#8217;s field-level validation and are mixing it with Rich Faces components, you have to be conscious of how you nest your tags.</p>
<p>For example, this caused validation to be skipped:</p>
<pre name="code" class="java"><code>
<h:form id="fooForm">
    <s:validateAll>
        <rich:tabPanel switchType="client">
            <rich:tab label="Tab One">
                <h:inputText value="#{foo.bar}" required="true"/>
            </rich:tab>
            <rich:tab label="Tab One">
                <h:inputText value="#{foo.baz}" required="true"/>
            </rich:tab>
        </rich:tabPanel>
        <h:commandButton value="Save" action="#{myService.save}"/>
    </s:validateAll>
</h:form>
</code></pre>
<p>When clicking on the save button, you will bypass validation and go directly to the save() method on the named component myService.</p>
<p>To fix this, you need to nest the <s:validatAll> tags within each tab panel:</p>
<pre name="code" class="java"><code>
<h:form id="fooForm">
        <rich:tabPanel switchType="client">
            <rich:tab label="Tab One">
            <span style="color: #f00"><s:validateAll></span>
                <h:inputText value="#{foo.bar}" required="true"/>
            <span style="color: #f00"></s:validateAll></span>
            </rich:tab>
            <rich:tab label="Tab One">
            <span style="color: #f00"><s:validateAll></span>
                <h:inputText value="#{foo.baz}" required="true"/>
            <span style="color: #f00"></s:validateAll></span>
            </rich:tab>
        </rich:tabPanel>
        <h:commandButton value="Save" action="#{myService.save}"/>
</h:form>
</code></pre>
<p>Viola, now your required tags are properly enforced, as well as any Hibernate annotation validation that exists.</p>
]]></content:encoded>
			<wfw:commentRss>http://elegando.jcg3.org/2007/08/seam-validation-w-rich-faces/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Seam on JBoss AS 4.2</title>
		<link>http://elegando.jcg3.org/2007/08/seam-on-jboss-as-42/</link>
		<comments>http://elegando.jcg3.org/2007/08/seam-on-jboss-as-42/#comments</comments>
		<pubDate>Thu, 23 Aug 2007 17:46:48 +0000</pubDate>
		<dc:creator>Jason G.</dc:creator>
				<category><![CDATA[JBoss]]></category>
		<category><![CDATA[JBoss Seam]]></category>

		<guid isPermaLink="false">http://www.elegando.com/2007/08/seam-on-jboss-as-42/</guid>
		<description><![CDATA[If you want to run JBoss Seam 1.2 on JBoss AS 4.2, you have to take a few extra steps&#8230; Luckily, those steps are chronicled here (by Michael Yuan) and here (by Nicolas Leroux). Oh, and Michael&#8217;s site has updated samples from his book.]]></description>
			<content:encoded><![CDATA[<p>If you want to run JBoss Seam 1.2 on JBoss AS 4.2, you have to take a few extra steps&#8230;</p>
<p>Luckily, those steps are chronicled <a href="http://www.michaelyuan.com/blog/2007/05/29/seam-book-examples-updated-to-jboss-as-420-ga/#comments">here </a>(by Michael Yuan) and <a href="http://www.lunatech-research.com/archives/2007/06/14/jsf-jboss-420ga">here </a>(by Nicolas Leroux).  Oh, and Michael&#8217;s site has updated samples from his book.</p>
]]></content:encoded>
			<wfw:commentRss>http://elegando.jcg3.org/2007/08/seam-on-jboss-as-42/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Charts in Seam</title>
		<link>http://elegando.jcg3.org/2007/07/charts-in-seam/</link>
		<comments>http://elegando.jcg3.org/2007/07/charts-in-seam/#comments</comments>
		<pubDate>Wed, 25 Jul 2007 14:49:45 +0000</pubDate>
		<dc:creator>Jason G.</dc:creator>
				<category><![CDATA[JBoss Seam]]></category>

		<guid isPermaLink="false">http://www.elegando.com/2007/07/charts-in-seam/</guid>
		<description><![CDATA[From the Seam Forums: Using JFreeChart with Seam can be quite useful: package example.chartprocesser; @Name("chartprocesser") public class ChartProcesserBean { @In EntityManager em; // Entity Manager to access the database byte[] chart; // chart image (.png) as a byte array @Factory(value="chart") public void createChart() { DefaultCategoryDataset ds = this.getData; JFreeChart chart = ChartFactory.createLineChart( "TITLE", "Category Label", [...]]]></description>
			<content:encoded><![CDATA[<p>From the <a href="http://www.jboss.com/index.html?module=bb&amp;op=viewtopic&amp;t=114291">Seam Forums</a>:</p>
<p>Using JFreeChart with Seam can be quite useful:<span id="more-20"></span></p>
<blockquote>
<pre>package example.chartprocesser;

@Name("chartprocesser")
public class ChartProcesserBean {

    @In
    EntityManager em; // Entity Manager to access the database

    byte[] chart; // chart image (.png) as a byte array

    @Factory(value="chart")
    public void createChart() {

        DefaultCategoryDataset ds = this.getData;

        JFreeChart chart = ChartFactory.createLineChart(
                "TITLE",
                "Category Label",
                "Axis Lable",
                ds,
                PlotOrientation.HORIZONTAL,
                false,
                false,
                false
                );

        try{
     	    this.chart = ChartUtilities.encodeAsPNG(chart.createBufferedImage(400, 400));
        } catch (IOException e){
	    e.printStackTrace();
        }

    }

    private DefaultCategoryDataset getData(){
        //get the data and put into DefaultCategoryDataset
        //Then return it.
    }
}</pre>
</blockquote>
<p>In your JSF page:</p>
<blockquote>
<pre>&lt;s:graphicImage value="#{chartprocesser.chart}" /&gt;</pre>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://elegando.jcg3.org/2007/07/charts-in-seam/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
