[weld-commits] Weld SVN: r5071 - doc/trunk/reference/en-US.
weld-commits at lists.jboss.org
weld-commits at lists.jboss.org
Sun Nov 15 20:49:48 EST 2009
Author: gavin.king at jboss.com
Date: 2009-11-15 20:49:47 -0500 (Sun, 15 Nov 2009)
New Revision: 5071
Modified:
doc/trunk/reference/en-US/ee.xml
Log:
tip
Modified: doc/trunk/reference/en-US/ee.xml
===================================================================
--- doc/trunk/reference/en-US/ee.xml 2009-11-16 01:42:52 UTC (rev 5070)
+++ doc/trunk/reference/en-US/ee.xml 2009-11-16 01:49:47 UTC (rev 5071)
@@ -53,6 +53,18 @@
</para>
</note>
+ <tip>
+ <para>
+ Oh, you <emphasis>really</emphasis> want to inject the <literal>FacesContext</literal>? Alright then, try
+ this producer method:
+ </para>
+ <programlisting role="JAVA"><![CDATA[class FacesContextProducer {
+ @Produces @RequestScoped FacesContext getFacesContext() {
+ return FacesContext.getCurrentInstance();
+ }
+}]]></programlisting>
+ </tip>
+
</section>
<section>
More information about the weld-commits
mailing list