<?xml version="1.0" encoding="utf-8" ?>

<rss version="2.0" 
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/"
   xmlns:content="http://purl.org/rss/1.0/modules/content/"
   >
<channel>
    
    <title>Webcode - Java</title>
    <link>http://webcode.lemme.at/</link>
    <description>My little place on the web...</description>
    <dc:language>de</dc:language>
    <generator>Serendipity 1.5.5 - http://www.s9y.org/</generator>
    <pubDate>Fri, 29 Apr 2011 12:39:24 GMT</pubDate>

    <image>
        <url>http://webcode.lemme.at/templates/default/img/s9y_banner_small.png</url>
        <title>RSS: Webcode - Java - My little place on the web...</title>
        <link>http://webcode.lemme.at/</link>
        <width>100</width>
        <height>21</height>
    </image>

<item>
    <title>Komisches JSF Facets Rendering</title>
    <link>http://webcode.lemme.at/archives/54-Komisches-JSF-Facets-Rendering.html</link>
            <category>Java</category>
    
    <comments>http://webcode.lemme.at/archives/54-Komisches-JSF-Facets-Rendering.html#comments</comments>
    <wfw:comment>http://webcode.lemme.at/wfwcomment.php?cid=54</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://webcode.lemme.at/rss.php?version=2.0&amp;type=comments&amp;cid=54</wfw:commentRss>
    

    <author>nospam@example.com (Thomas Lemmé)</author>
    <content:encoded>
    &lt;p&gt;Interessant. Facets dürfen nicht mehrere Subelemente haben, sondern nur eines. Das wiederum darf schon mehrere Elemente beinhalten. Langer Rede kurzer Sinn: Das&lt;/p&gt; 
&lt;pre name=&quot;code&quot;&gt;&amp;lt;rich:tabPanel&amp;gt;
	&amp;lt;rich:tab id=&quot;xyz&quot;&amp;gt;
		&amp;lt;f:facet name=&quot;label&quot;&amp;gt;
			&amp;lt;s:fragment&amp;gt;
				&amp;lt;h:outputText value=&quot;#{bean.property1}&quot; /&amp;gt;
				&amp;lt;h:outputText value=&quot;#{bean.property2}&quot; /&amp;gt;
			&amp;lt;/s:fragment&amp;gt;
		&amp;lt;/f:facet&amp;gt;
		...
		Tab Content
		...
	&amp;lt;/rich:tab&amp;gt;
&amp;lt;/rich:tabPanel&amp;gt;
&lt;/pre&gt; 
&lt;p&gt;funktioniert, das&lt;/p&gt; 
&lt;pre name=&quot;code&quot;&gt;&amp;lt;rich:tabPanel&amp;gt;
	&amp;lt;rich:tab id=&quot;xyz&quot;&amp;gt;
		&amp;lt;f:facet name=&quot;label&quot;&amp;gt;
			&amp;lt;h:outputText value=&quot;#{bean.property1}&quot; /&amp;gt;
			&amp;lt;h:outputText value=&quot;#{bean.property2}&quot; /&amp;gt;
		&amp;lt;/f:facet&amp;gt;
		...
		Tab Content
		...
	&amp;lt;/rich:tab&amp;gt;
&amp;lt;/rich:tabPanel&amp;gt; 
&lt;/pre&gt; 
&lt;p&gt; nicht.&lt;br /&gt;&lt;/p&gt; 
    </content:encoded>

    <pubDate>Fri, 29 Apr 2011 14:30:10 +0200</pubDate>
    <guid isPermaLink="false">http://webcode.lemme.at/archives/54-guid.html</guid>
    
</item>
<item>
    <title>How to inject a ManagedBean into a ManagedBean</title>
    <link>http://webcode.lemme.at/archives/46-How-to-inject-a-ManagedBean-into-a-ManagedBean.html</link>
            <category>Java</category>
    
    <comments>http://webcode.lemme.at/archives/46-How-to-inject-a-ManagedBean-into-a-ManagedBean.html#comments</comments>
    <wfw:comment>http://webcode.lemme.at/wfwcomment.php?cid=46</wfw:comment>

    <slash:comments>1</slash:comments>
    <wfw:commentRss>http://webcode.lemme.at/rss.php?version=2.0&amp;type=comments&amp;cid=46</wfw:commentRss>
    

    <author>nospam@example.com (Thomas Lemmé)</author>
    <content:encoded>
    &lt;p&gt;That&#039;s really easy, just use the @ManagedProperty annotation.&lt;/p&gt; 
&lt;p&gt;A Simple Example:&lt;/p&gt; 
&lt;p&gt; We got two managed beans, one for logging into the system and storing the user&#039;s state, and one for using a shopping cart. We got the LoginController &lt;br /&gt;&lt;/p&gt; 
&lt;pre class=&quot;Java&quot; name=&quot;code&quot;&gt;import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;

@ManagedBean(name = &quot;loginController&quot;)
@SessionScoped
public class LoginController {
	... // Do something...
}&lt;/pre&gt; 
&lt;p&gt;and the ShoppingCartController, where we want to use the LoginController:&lt;/p&gt; 
&lt;pre class=&quot;Java&quot; name=&quot;code&quot;&gt;import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ManagedProperty;
import javax.faces.bean.SessionScoped;

@ManagedBean
@SessionScoped
public class ShoppingCartController {
	
	// Inject some Enterprise Java bean (has nothing to do with the example)
	@EJB
	private BookingBean bookingBean;

	//Inject the LoginController (that&#039;s what we wanted to do )
	@ManagedProperty(&quot;#{loginController}&quot;)
	LoginController loginController;

	... // do the shopping cart stuff
}&lt;/pre&gt; 
&lt;p&gt; &lt;/p&gt;That is easy. If you know how :)&lt;br /&gt; 
    </content:encoded>

    <pubDate>Sun, 30 May 2010 16:33:57 +0200</pubDate>
    <guid isPermaLink="false">http://webcode.lemme.at/archives/46-guid.html</guid>
    <category>cdi</category>
<category>dependency</category>
<category>injection</category>
<category>java</category>
<category>managedbeans</category>

</item>

</channel>
</rss>
