Author: gavin.king(a)jboss.com
Date: 2008-12-20 20:49:50 -0500 (Sat, 20 Dec 2008)
New Revision: 639
Modified:
doc/trunk/reference/en/modules/example.xml
Log:
fix example scope bug
Modified: doc/trunk/reference/en/modules/example.xml
===================================================================
--- doc/trunk/reference/en/modules/example.xml 2008-12-21 01:22:48 UTC (rev 638)
+++ doc/trunk/reference/en/modules/example.xml 2008-12-21 01:49:50 UTC (rev 639)
@@ -8,7 +8,7 @@
we'll define a Web Bean to hold the username and password entered during
login:</para>
-<programlisting role="JAVA"><![CDATA[@Named
+<programlisting role="JAVA"><![CDATA[@Named @RequestScoped
public class Credentials {
private String username;
@@ -69,7 +69,7 @@
return user!=null;
}
- @Produces @LoggedIn User getCurrentUser() {
+ @Produces @LoggedIn @Dependent User getCurrentUser() {
return user;
}