Nevermind: Enter button on forms with keel:command
Nathan Kontny <Nathan.Kontny-UgwZ4owrJFB8UrSeD/[email protected]> Thu, 17 Jun 2004 20:28:28 -0700
| Newsgroups | gmane.comp.java.keel.user |
|---|---|
| Message-ID | <[email protected]> |
Sorry guys. Further testing shows that this breaks down on forms with two buttons. What happens on 2 button forms is that hitting the second button seems to have the first button's value submitted. Anyone else have any ideas on how to fix this? Quoting Nathan Kontny <Nathan.Kontny-UgwZ4owrJFB8UrSeD/[email protected]>: > Attached is a newer version of my patch. I just added a new line character > to > the new output of the command tag for formatting. I also tested the effect > of > the patch in FireFox and it works. > > The fix was to add another hidden element to the form with the same name and > value as the submit button thats created. Does anyone know if this has > negative consequences? > > > > > Quoting Nathan Kontny <Nathan.Kontny-UgwZ4owrJFB8UrSeD/[email protected]>: > > > I noticed bug 887181 in Sourceforge where hitting the enter button causes > > the > > form to post without any values. I don't really understand the solution > and > > I > > have only tried it in IE, but here is some website talking about a fix for > > this > > (http://forums.devshed.com/t35386/s.html). > > > > Anyways, I altered the CommandTag.java to do this, and its allowing me > now > > to > > hit the enter button on forms. Here is the patch, let me know if this > works > > for you. > > > > -Nate > > > > > > >