Yes, but the question still stands: why is it that the ActionBeanContext doesn't make available the event name as requested by the client, instead of (or in addition to) the effective event name determined by the framework?
On Fri, Jan 8, 2010 at 8:19 AM, DaveMark <[email protected]> wrote: > 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 > -- Turtle, turtle, on the ground, Pink and shiny, turn around. ------------------------------------------------------------------------------ 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
