[Stripes-users] Determining event from EL validation expression
What's a good way to get at the event name relevant to an invocation of a validation EL expression? -- Turtle, turtle, on the ground, Pink and shiny, turn around. -- Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com ___ Stripes-users mailing list Stripes-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/stripes-users
Re: [Stripes-users] Determining event from EL validation expression
It seems that in the EL expression of such validations you can also access the action context (ActionBeanContext). From there you should be able to get the event name with "context.eventName". Haven't tried it though, but knowing that most Stripes things work "as it says on the tin", it's worth a shot. Cosmin > What's a good way to get at the event name relevant to an invocation > of a validation EL expression? > > -- Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com ___ Stripes-users mailing list Stripes-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/stripes-users
Re: [Stripes-users] Determining event from EL validation expression
On Wed, Mar 11, 2009 at 10:29 AM, Cosmin Marginean wrote: > It seems that in the EL expression of such validations you can also > access the action context (ActionBeanContext). From there you should be > able to get the event name with "context.eventName". > Haven't tried it though, but knowing that most Stripes things work "as > it says on the tin", it's worth a shot. Ah yes, awesome. Thanks! -- Turtle, turtle, on the ground, Pink and shiny, turn around. -- Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com ___ Stripes-users mailing list Stripes-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/stripes-users