Re: re problem with html:cancel

2007-08-03 Thread Laurie Harper
Charl Gerber wrote: OK, I think I found the problem. So if someone can come up with a feasible workaround, please! Its nothing struts related, btw. Javascript. I have a form onSubmit function which disabled all the input buttons to prevent users from clicking buttons twice or clicking another bu

Re: re problem with html:cancel

2007-08-03 Thread Paul Benedict
You need to submit a form field -- could be anything -- with the name of the cancel button Struts expects. Take a look at your generated HTML again to get the name of the button. That needs to be in the submission for the isCancelled() method to detect cancellation. On 8/3/07, Charl Gerber <[EMAIL

re problem with html:cancel

2007-08-02 Thread Charl Gerber
OK, I think I found the problem. So if someone can come up with a feasible workaround, please! Its nothing struts related, btw. Javascript. I have a form onSubmit function which disabled all the input buttons to prevent users from clicking buttons twice or clicking another button (the actions take

Re: problem with html:cancel

2007-08-02 Thread Charl Gerber
server --- Paul Benedict <[EMAIL PROTECTED]> wrote: > Is the problem with server or client validation? > > On 8/2/07, Charl Gerber <[EMAIL PROTECTED]> > wrote: > > > > OK, more info if I remove the styleId > attribute, > > then it works. Maybe something to do with the > actual > > style id

Re: problem with html:cancel

2007-08-02 Thread Paul Benedict
Is the problem with server or client validation? On 8/2/07, Charl Gerber <[EMAIL PROTECTED]> wrote: > > OK, more info if I remove the styleId attribute, > then it works. Maybe something to do with the actual > style id (#submitButton) not being declared in the > .css? > > > > --- Paul Benedict

Re: problem with html:cancel

2007-08-02 Thread Charl Gerber
OK, more info if I remove the styleId attribute, then it works. Maybe something to do with the actual style id (#submitButton) not being declared in the .css? --- Paul Benedict <[EMAIL PROTECTED]> wrote: > This is interesting. The name isn't changing so I > don't know what is going > on. Ca

Re: problem with html:cancel

2007-08-02 Thread Charl Gerber
You mean check in my action class? Why should the name change? Its the same for both "cancel" buttons, one works, the other not just the id and class extras that "breaks" it. --- Paul Benedict <[EMAIL PROTECTED]> wrote: > This is interesting. The name isn't changing so I > don't know what i

Re: problem with html:cancel

2007-08-02 Thread Paul Benedict
This is interesting. The name isn't changing so I don't know what is going on. Can you debug into the Controller and tell me what you see when it tries to detect when the cancel flag? On 8/2/07, Charl Gerber <[EMAIL PROTECTED]> wrote: > > name="org.apache.struts.taglib.html.CANCEL" > value="Cance

Re: problem with html:cancel

2007-08-02 Thread Charl Gerber
> Paste in the generated HTML for both cases please. > > Thanks, > Paul > > On 8/2/07, Charl Gerber <[EMAIL PROTECTED]> > wrote: > > > > Hi, > > > > I've got this tag: > > > > > styleClass="submitbutton" /> > > > > But the isCancelled() in the action then always > return > > false, even if

Re: problem with html:cancel

2007-08-02 Thread Paul Benedict
Paste in the generated HTML for both cases please. Thanks, Paul On 8/2/07, Charl Gerber <[EMAIL PROTECTED]> wrote: > > Hi, > > I've got this tag: > > styleClass="submitbutton" /> > > But the isCancelled() in the action then always return > false, even if I hit the cancel button. > > If I replace

problem with html:cancel

2007-08-02 Thread Charl Gerber
Hi, I've got this tag: But the isCancelled() in the action then always return false, even if I hit the cancel button. If I replace the tag with a default then it works. Looks like something with the generated ID and CLASS attributes that's fishy. Its worth mentioning that the styleId 'cance