[seam-commits] Seam SVN: r7226 - in trunk/src/main/org/jboss/seam: security and 1 other directory.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Thu Jan 24 18:53:21 EST 2008


Author: shane.bryzak at jboss.com
Date: 2008-01-24 18:53:21 -0500 (Thu, 24 Jan 2008)
New Revision: 7226

Modified:
   trunk/src/main/org/jboss/seam/navigation/Pages.java
   trunk/src/main/org/jboss/seam/security/FacesSecurityEvents.java
Log:
JBSEAM-2533

Modified: trunk/src/main/org/jboss/seam/navigation/Pages.java
===================================================================
--- trunk/src/main/org/jboss/seam/navigation/Pages.java	2008-01-24 23:52:55 UTC (rev 7225)
+++ trunk/src/main/org/jboss/seam/navigation/Pages.java	2008-01-24 23:53:21 UTC (rev 7226)
@@ -575,12 +575,6 @@
 //    TODO - Deprecated, remove for next major release
       Events.instance().raiseEvent("org.jboss.seam.notLoggedIn");
       Events.instance().raiseEvent(Identity.EVENT_NOT_LOGGED_IN);
-      
-      FacesMessages.instance().addFromResourceBundleOrDefault( 
-            FacesMessage.SEVERITY_WARN, 
-            "org.jboss.seam.NotLoggedIn", 
-            "Please log in first" 
-         );
    }
 
    public static String toString(Object returnValue)

Modified: trunk/src/main/org/jboss/seam/security/FacesSecurityEvents.java
===================================================================
--- trunk/src/main/org/jboss/seam/security/FacesSecurityEvents.java	2008-01-24 23:52:55 UTC (rev 7225)
+++ trunk/src/main/org/jboss/seam/security/FacesSecurityEvents.java	2008-01-24 23:53:21 UTC (rev 7226)
@@ -114,6 +114,16 @@
                getLoginSuccessfulMessage(), 
                Identity.instance().getUsername());
    }
+   
+   @Observer(Identity.EVENT_NOT_LOGGED_IN)
+   public void addNotLoggedInMessage()
+   {      
+      FacesMessages.instance().addFromResourceBundleOrDefault( 
+            FacesMessage.SEVERITY_WARN, 
+            "org.jboss.seam.NotLoggedIn", 
+            "Please log in first" 
+         );      
+   }
 
    public Severity getLoginSuccessfulMessageSeverity()
    {




More information about the seam-commits mailing list