<p>If you are using CDI, please do not use the JSF managed bean annotations (@javax.faces.bean.*). JSF managed beans do not have any integration with CDI because that spec was not properly aligned with the platform.</p>
<p>The CDI annotations give you everything you need as a drop-in replacement. That was the original goal of CDI (it has become a lot more, thankfully).</p>
<p>If you are concerned that you&#39;ll accidentally use the JSF managed bean annotations without realizing it, you can either:</p>
<p>- exclude the javax.faces.bean package from the allowed imports in your IDE<br>
- use Seam Faces or MyFaces CODI, which both alias the JSF managed bean annotations to CDI annotations (effectively intergrating the two technologies).</p>
<p>I strongly recommend that you checkout the Weld reference guide for more tips on how to use CDI beans and scopes.</p>
<p>Hope that helps,</p>
<p>- Dan Allen</p>
<p>Sent from my Android-powered phone:<br>
An open platform for carriers, consumers<br>
and developers.</p>
<p><blockquote type="cite">On Dec 21, 2010 5:48 AM, &quot;Sebastian E. Ovide&quot; &lt;<a href="mailto:sebastian.ovide@gmail.com">sebastian.ovide@gmail.com</a>&gt; wrote:<br><br>adding implements Serializable fixes that exception... but now it cannot find the methods of the managed (named) bean...<div>
<br></div><div>I guess that must be another way to inject CDI into JSF... <p><font color="#500050"><br><br>On Tue, Dec 21, 2010 at 12:43 AM, Sebastian E. Ovide &lt;<a href="mailto:sebastian.ovide@gmail.com">sebastian.ovide@gmail.com</a>&gt; wrote:<br>
&gt;<br>&gt; no. It...</font></p>-- <br>Sebastian E. Ovide<br><br><br><br><br>
</div>
<br>_______________________________________________<br>
weld-dev mailing list<br>
<a href="mailto:weld-dev@lists.jboss.org">weld-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/weld-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/weld-dev</a><br></blockquote></p>