What event name do you expect to be there? What handler is called?

On Thu, Jan 7, 2010 at 12:09 PM, Mick O'Doherty
<[email protected]> wrote:
> Hi,
>
> I am trying to get the event name by calling getEventName() on the
> ActionBeanContext from my default handler, but it always seems to
> return "defaultHandler" regardless of the original event.
>
> For example in the following extract the String event will always be
> "defaultHandler" reagreless of the event 'name' in the calling jsp page.
>
> public class MyHandlerActionBean implements ActionBean {
>     private ActionBeanContext context;
> .
> .
> .
>
>     @DefaultHandler
>     public Resolution defaultHandler() {
>
>        String event = context.getEventName();
>      }
> }
>
> I think from an earlier discussion (much earlier in 2006...) that this
> should work intuitively and return the original event name:
>
> "Another nice change is that as long as an event has a name, even if
> it is invoked as the default, calling ActionBeanContext.getEvent()
> will return you the correct event name. " (from Subject: Re: [Stripes-
> dev] ValidationErrors - msg#00188 List: java.stripes.devel)
>
> Is anyone aware of this issue and is there any workaround (or am I
> doing something wrong above)?
>
> Cheers,
>
> Mick
>
>
>
> ------------------------------------------------------------------------------
> 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

Reply via email to