Re: Multiple buttons with Dispatch Action

2006-03-15 Thread Ahmed Hashim
I think it will be better to change one of the buttons. Anyway, Thank too much for your help. On 3/15/06, Dave Newton <[EMAIL PROTECTED]> wrote: > > Niall Pemberton wrote: > > LOL, maybe we can work together on a LazyRandomDispatchAction > > implementation? > > > > Ah, that would be better; it w

Re: Multiple buttons with Dispatch Action

2006-03-15 Thread Dave Newton
Niall Pemberton wrote: > LOL, maybe we can work together on a LazyRandomDispatchAction > implementation? > Ah, that would be better; it would save having to write the methods until they're called. "Gah; I'm getting a page from the website. I have to write an action method--hang on." Dave -

Re: Multiple buttons with Dispatch Action

2006-03-15 Thread Niall Pemberton
LOL, maybe we can work together on a LazyRandomDispatchAction implementation? Niall - Original Message - From: "Dave Newton" <[EMAIL PROTECTED]> Sent: Wednesday, March 15, 2006 4:00 PM > > Use my implementation of RandomDispatchAction, which will run a > pseudo-random method matching a

Re: Multiple buttons with Dispatch Action

2006-03-15 Thread Dave Newton
Wendy Smoak wrote: > No. LDA does a reverse lookup from the property value to the key (and > then from the key to the method name.) If there are two identical > values in your .properties file, how would it know which key to pick? > Use my implementation of RandomDispatchAction, which will ru

Re: Multiple buttons with Dispatch Action

2006-03-15 Thread Wendy Smoak
On 3/15/06, Ahmed Hashim <[EMAIL PROTECTED]> wrote: > Can I solve the problem of 2 buttons with the same name using > LookupDispatchAction ? No. LDA does a reverse lookup from the property value to the key (and then from the key to the method name.) If there are two identical values in your .pr

Re: Multiple buttons with Dispatch Action

2006-03-15 Thread Ahmed Hashim
I'll solve the execute calling. the problem is the class EventActionDispatcher comes with struts 1.2.9 I am using 1.2.8 Can I solve the problem of 2 buttons with the same name using LookupDispatchAction ? On 3/15/06, Michael Jouravlev <[EMAIL PROTECTED]> wrote: > > On 3/15/06, Ahmed Hashim <[E

Re: Multiple buttons with Dispatch Action

2006-03-15 Thread Michael Jouravlev
On 3/15/06, Ahmed Hashim <[EMAIL PROTECTED]> wrote: > I'd like to ask about the LookupDispatchAction > If my action extends from LookupDispatchAction, can I use the execute method > In case the user request the Action Directly? not from clicking a button? execute() is always called first. > I wan

Re: Multiple buttons with Dispatch Action

2006-03-15 Thread Ahmed Hashim
I'd like to ask about the LookupDispatchAction If my action extends from LookupDispatchAction, can I use the execute method In case the user request the Action Directly? not from clicking a button? I want the action to do the following: 1- Load the page 2- When the user click on button X it will e

Re: Multiple buttons with Dispatch Action

2006-02-16 Thread Michael Jouravlev
Use this one: http://issues.apache.org/bugzilla/attachment.cgi?id=17485 The related ticket: http://issues.apache.org/bugzilla/show_bug.cgi?id=38343 This class is better, simpler and leaner than LookupDispatchAction. Michael. On 2/16/06, Sun Shine <[EMAIL PROTECTED]> wrote: > Hi, > I have a page

Multiple buttons with Dispatch Action

2006-02-16 Thread Sun Shine
Hi, I have a page with multiple 'links'. One is an image button and another is a simple submit button. I was using a Dispatch action that maps to each one of these buttons, using javascript to set the methodToCall on each of the buttons. worked like a charm until... I was informed I cannot use j