Revision: 432
          http://svn.sourceforge.net/stripes/?rev=432&view=rev
Author:   tfenne
Date:     2006-10-07 10:55:32 -0700 (Sat, 07 Oct 2006)

Log Message:
-----------
Added a re-fetch of the even name for after method execution to ensure event 
filtering is done right during handler resolution.

Modified Paths:
--------------
    
trunk/stripes/src/net/sourceforge/stripes/controller/BeforeAfterMethodInterceptor.java

Modified: 
trunk/stripes/src/net/sourceforge/stripes/controller/BeforeAfterMethodInterceptor.java
===================================================================
--- 
trunk/stripes/src/net/sourceforge/stripes/controller/BeforeAfterMethodInterceptor.java
      2006-10-07 17:50:55 UTC (rev 431)
+++ 
trunk/stripes/src/net/sourceforge/stripes/controller/BeforeAfterMethodInterceptor.java
      2006-10-07 17:55:32 UTC (rev 432)
@@ -115,9 +115,13 @@
 
         // Run After filter methods (if any)
         ActionBean bean = context.getActionBean();
-               FilterMethods filterMethods = getFilterMethods(bean.getClass());
+        FilterMethods filterMethods = getFilterMethods(bean.getClass());
                List<Method> afterMethods = 
filterMethods.getAfterMethods(stage);
 
+        // Re-get the event name in case we're executing after handler 
resolution
+        // in which case the name will have been null before, and non-null now
+        event = abc == null ? null : abc.getEventName();
+
         Resolution overrideResolution = null;
         for (Method method : afterMethods) {
             String[] on = method.getAnnotation(After.class).on();


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development

Reply via email to