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?

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]>

Reply via email to