On 11/23/01 12:05 PM, "Pugh, Eric" <[EMAIL PROTECTED]> wrote:

> I thought of that solution, but I am wary of creating tons of actions that
> can't be easily organized (just dumped in one large directory).
> 
> What I did was have my A HREF link have an action=doDiff parameter.  Then in
> doPerform I checkfor the existance of the action parameter, and then
> delegate to the doDiff method.
> 
> If I added a parameter eventSubmit_dodiff, would that work, instead of going
> through doPerform?
> 
> Something like submit.x=eventSubmit_dodiff?

http://jakarta.apache.org/turbine/turbine-2/howto/action-event-howto.html
 
> Eric
> 
> -----Original Message-----
> From: Colm McCartan [mailto:[EMAIL PROTECTED]]
> Sent: Friday, November 23, 2001 11:41 AM
> To: Turbine Users List
> Subject: Re: How to use Action Event not from a form post
> 
> 
> 23/11/2001 16:29:51, "Pugh, Eric" <[EMAIL PROTECTED]> wrote:
> 
>> Hi,
>> 
>> I really like the action events, they make code much simpler to do!
>> 
>> In one case I want to be able to either do a doDiff button from one
>> location, or do an <A HREF> from another page.
>> 
>> I understand that I need to do:
>> <A href="#link.setAction("MyAction")">
>> 
>> But how do I get it to call the doDiff function, versus the default
>> doPerform?
> 
> One way (not necessarily the Correct Way) is to give such an action method
> its 
> own class and make this the default method (doPerform).
> 
> colm
> 
> 
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

-- 

jvz.

Jason van Zyl

http://tambora.zenplex.org
http://jakarta.apache.org/turbine
http://jakarta.apache.org/velocity
http://jakarta.apache.org/alexandria
http://jakarta.apache.org/commons



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to