Indeed for a link to post a form, you would send the _eventName
parameter. For a regular link, you can simply use the event= attribute
of the <stripes:link> tag.

On Mon, 22 Sep 2008 17:19:09 -0700 (PDT), "farouk alhassan"
<[EMAIL PROTECTED]> said:
> I think a literal explanation on how stripes is able to determine which
> button has generated the event will come in handy. this is because a lot
> of the times, i get into the situation where the action i am expecting
> will have to come from a link, not a button on a form. But i don't know
> how to make a link behave like a form post with the action name in the
> right place 
> for stripes to pick up. I have had to resort to passing in a parameter
> and letting the default handler handle the event and using the parameter
> to tell which method to call.
> 
> Cheers
> 
> --- On Mon, 9/22/08, Freddy Daoud <[EMAIL PROTECTED]> wrote:
> From: Freddy Daoud <[EMAIL PROTECTED]>
> Subject: Re: [Stripes-users] Sending event name
> To: "Stripes Users List" <[email protected]>
> Date: Monday, September 22, 2008, 7:37 AM
> 
> Hi Cosmin,
> 
> A safer, more explicit, less 'hacky' way to do it is to use a hidden
> input whose name is '_eventName' and value is the name of your event,
> as in
> 
> <s:hidden name="_eventName" value="execute"/>
> 
> This would call public Resolution execute() on your action bean.
> 
> Cheers,
> Freddy
> http://www.stripesbook.com
> 
> On Mon, 22 Sep 2008 17:22:56 +0300, "Cosmin Marginean"
> <[EMAIL PROTECTED]> said:
> > Hello everyone,
> > 
> > Again, I am running in a "best-practice" issue. I am trying to
> submit a 
> > form to an action but not to it's default handler. For this, I saw
> that 
> > having a submit button with the name of the event to be handled will 
> > submit to that event handler.
> > 
> > However, I am not using a submit button (UI issues) and I need to submit 
> > to this non-default handler. As I saw, I can use a hidden input whose 
> > name is the name of the event (same as in the case of the submit button 
> > input). This seems to work (at a first glance at least) but I was 
> > wondering if this can be avoided since it seems pretty "hacky"
> to me, to 
> > be honest.
> > 
> > Thanks,
> > Cosmin Marginean
> > 
> > -- 
> > cosminaru.ro
> -- 
>   
>   [EMAIL PROTECTED]
> 
> 
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the
> world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Stripes-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/stripes-users

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to