I think ActionEvent patch doen't have a problem.
But DetermineActionValve patch has a problem to select logic.
For example,
If the two action event have same method, than which one should we select ?
and
If many action and action event give but there is not matched method found 
than which one should we select ?

I attache a little improved patch but still the basic problem exist.

Looks like javascript give definitity here. 
But  how convinient if we can support mulitple action name.

Need your comment.

Thanks.

Youngho

----- Original Message ----- 
From: "Eric Pugh" <[EMAIL PROTECTED]>
To: "Turbine Developers List" <[EMAIL PROTECTED]>; "Youngho Cho" 
<[EMAIL PROTECTED]>
Sent: Wednesday, December 15, 2004 7:13 PM
Subject: RE: ActionEvent Related Question - [ patch ] Include


> No problem!  I'll wait to see what you cook up!
> 
> > -----Original Message-----
> > From: Youngho Cho [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, December 15, 2004 5:25 AM
> > To: Turbine Developers List; [EMAIL PROTECTED]
> > Subject: Re: ActionEvent Related Question - [ patch ] Include
> >
> >
> > Hello all,
> >
> > After send my patch,
> > I realized that there is big mistake in it.
> > So please ignore my patch.
> >
> > Thanks,
> >
> > Youngho
> >
> > ----- Original Message -----
> > From: "Youngho Cho" <[EMAIL PROTECTED]>
> > To: "Turbine Developers List" <[EMAIL PROTECTED]>;
> > <[EMAIL PROTECTED]>
> > Sent: Wednesday, December 15, 2004 2:11 PM
> > Subject: Re: ActionEvent Related Question - [ patch ] Include
> >
> >
> > > Hello Eric,
> > > Thanks for your comment.
> > > I thought to use javascript as well. but sometimes it is annoying...
> > >
> > > Here is  a patch to support multi actions in single form
> > > by selected eventSumit_do button name like
> > >
> > > <form method="post" action="$link.setPage("Wizard1.html")">
> > > <input type="hidden" name="action" value="FirstAction" />
> > > <input type="hidden" name="action" value="SecondAction" />
> > >
> > >
> > > <input type="submit" value="eventSubmit_doCheckfirst"
> > name="click first" />
> > > <input type="submit" value="eventSubmit_doChecksecond"
> > name="click second" />
> > > </form>
> > >
> > > no need javascript.
> > >
> > > Enjoy !
> > >
> > > Thanks,
> > >
> > > Youngho
> > >
> > >
> > > ----- Original Message -----
> > > From: "Eric Pugh" <[EMAIL PROTECTED]>
> > > To: "Turbine Developers List" <[EMAIL PROTECTED]>;
> > "Youngho Cho" <[EMAIL PROTECTED]>
> > > Sent: Tuesday, December 14, 2004 6:41 PM
> > > Subject: RE: ActionEvent Related Question
> > >
> > >
> > > > I've done the second approach as well!  The alternative is
> > that you could
> > > > instead of using input type="submit" use input type="button" and some
> > > > javascript submit to an URL..
> > > >
> > > > Or, just inherit the doCheckSecond method in your actions
> > from some sort of
> > > > root action.
> > > >
> > > > > -----Original Message-----
> > > > > From: Youngho Cho [mailto:[EMAIL PROTECTED]
> > > > > Sent: Tuesday, December 14, 2004 8:15 AM
> > > > > To: 'Turbine Developers List'
> > > > > Subject: Re: ActionEvent Related Question
> > > > >
> > > > >
> > > > > Hello David,
> > > > >
> > > > > Thanks for your reply.
> > > > > But I don't know the relation between Pull Model and
> > ActionEvent usage.
> > > > > Maybe my previous explaination give some misundestand.
> > > > >
> > > > > I would like to understand a simple way which is in single form
> > > > > and there are some eventSubmit buttons
> > > > > but the methods are NOT belongs to single action class.
> > > > >
> > > > > for example, in case of belowing form
> > > > > <form method="post"
> > > > > action="$link.setPage("Wizard1.html").setAction("FirstAction")">
> > > > >
> > > > > <input type="submit" value="eventSubmit_doCheckfirst"
> > > > > name="click first" />
> > > > > </form>
> > > > >
> > > > > Simply we can excute FirstAction class doCheckfirst method when
> > > > > click first button.
> > > > >
> > > > > But I would like to put second button into the same form here like
> > > > > <form method="post"
> > > > > action="$link.setPage("Wizard1.html").setAction("FirstAction")">
> > > > >
> > > > > <input type="submit" value="eventSubmit_doCheckfirst"
> > > > > name="click first" />
> > > > > <input type="submit" value="eventSubmit_doChecksecond"
> > > > > name="click second" />
> > > > >
> > > > > </form>
> > > > >
> > > > > But unfortunately, the doChecksecond method is in SecondAction
> > > > > already not FirstAction
> > > > > So I would like to execute SecondAction doChecksecond method when
> > > > > click second button clicked.
> > > > > without any action java class modification.
> > > > >
> > > > > Any comments appreciate.
> > > > >
> > > > > Thanks.
> > > > >
> > > > > Youngho
> > > > >
> > > > > ps: the simple way I thought that we can put another
> > > > > <input type="hidden" name="action" value="SecondAction"  />
> > > > > and check the right action class name at the DetermineAction
> > > > > Valve using the input method name.
> > > > >
> > > > >
> > > > > ----- Original Message -----
> > > > > From: "David Demner" <[EMAIL PROTECTED]>
> > > > > To: "'Turbine Developers List'" <[EMAIL PROTECTED]>;
> > > > > "'Youngho Cho'" <[EMAIL PROTECTED]>
> > > > > Sent: Tuesday, December 14, 2004 4:36 PM
> > > > > Subject: RE: ActionEvent Related Question
> > > > >
> > > > >
> > > > > > Hi Youngho,
> > > > > >
> > > > > > You will need to use a pull tool to achieve this.  Please see
> > > > > >
> > > >
> http://jakarta.apache.org/turbine/turbine/turbine-2.3.1/howto/pullmodel-howt
> > > > o.html for more information and don't hesitate to ask any questions.
> > > >
> > > > Good luck,
> > > >
> > > > David
> > > >
> > > > -----Original Message-----
> > > > From: Youngho Cho [mailto:[EMAIL PROTECTED]
> > > > Sent: Monday December 13, 2004 6:20 PM
> > > > To: Turbine Developers List
> > > > Subject: ActionEvent Related Question
> > > >
> > > >
> > > > Hello,
> > > >
> > > > I would like to call a 'foo' action class 'bar' method
> > > > within form like
> > > > <form>
> > > > <action name='baz'>
> > > >
> > > > </form>
> > > >
> > > > Is there any simple way to achieve that ?
> > > >
> > > > Any comment appreciate.
> > > >
> > > > Thanks.
> > > >
> > > > Youngho
> > > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> ----------------------------------------------------------------------------
> ----
> 
> 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to