Author: gavin.king(a)jboss.com
Date: 2008-12-21 00:16:08 -0500 (Sun, 21 Dec 2008)
New Revision: 645
Modified:
doc/trunk/reference/en/modules/example.xml
ri/trunk/examples/login/src/main/java/org/jboss/webbeans/examples/login/Login.java
Log:
oops, sillyme
Modified: doc/trunk/reference/en/modules/example.xml
===================================================================
--- doc/trunk/reference/en/modules/example.xml 2008-12-21 05:09:27 UTC (rev 644)
+++ doc/trunk/reference/en/modules/example.xml 2008-12-21 05:16:08 UTC (rev 645)
@@ -69,7 +69,7 @@
return user!=null;
}
- @Produces @LoggedIn @Dependent User getCurrentUser() {
+ @Produces @LoggedIn User getCurrentUser() {
return user;
}
Modified:
ri/trunk/examples/login/src/main/java/org/jboss/webbeans/examples/login/Login.java
===================================================================
---
ri/trunk/examples/login/src/main/java/org/jboss/webbeans/examples/login/Login.java 2008-12-21
05:09:27 UTC (rev 644)
+++
ri/trunk/examples/login/src/main/java/org/jboss/webbeans/examples/login/Login.java 2008-12-21
05:16:08 UTC (rev 645)
@@ -6,7 +6,6 @@
import javax.faces.application.FacesMessage;
import javax.faces.context.FacesContext;
import javax.webbeans.Current;
-import javax.webbeans.Dependent;
import javax.webbeans.Named;
import javax.webbeans.Produces;
import javax.webbeans.SessionScoped;
@@ -47,8 +46,7 @@
return user!=null;
}
- @Produces @LoggedIn @Dependent
- User getCurrentUser() {
+ @Produces @LoggedIn User getCurrentUser() {
return user;
}