Another option is to extend AnnotatedClassActionResolver or 
NameBasedActionResolver and save the submitted event name in request/session.

Christian


-----Original Message-----
From: DaveMark [mailto:[email protected]] 
Sent: Friday, January 08, 2010 9:20 AM
To: [email protected]
Subject: Re: [Stripes-users] ActionBeanConext.getEventName() does not return 
the correct event when called from the default handler

Hi Mick,

You could create the event handlers so that Stripes picks them up, then call 
your defaultHandler() which would then get the correct event name (although I'm 
not sure why you would want to do this):


public class MyHandlerActionBean implements ActionBean {
    private ActionBeanContext context;
.
.
.
    public Resolution save() {
        return defaultHandler();
    }
    
    public Resolution update() {
        return defaultHandler();
    }
    
    public Resolution delete() {
        return defaultHandler();
    }
    
    @DefaultHandler
    public Resolution defaultHandler() {
        String event = context.getEventName();
    }
}


Cheers,
DaveMark


      

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community Take 
advantage of Verizon's best-in-class app development support A streamlined, 14 
day to market process makes app distribution fast and easy Join now and get one 
step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to