AW: Enter button on forms with keel:command

"Vidakovic Aleksandar" <[email protected]> Wed, 16 Jun 2004 10:03:41 +0200
Newsgroups gmane.comp.java.keel.user
Message-ID <[email protected]>
BTW, would it be possible to inherit the command tag from struts' ImageTag? There is a hack in the source to allow images displayed instead of the ugly grey buttons, but I was wondering why we don't use the ImageTag (which is anyway a descendant of SubmitTag)... then we get the image functionality for free...

Cheers,

Aleks

-----Ursprüngliche Nachricht-----
Von: Nathan Kontny [mailto:Nathan.Kontny-UgwZ4owrJFB8UrSeD/[email protected]]
Gesendet: Mittwoch, 16. Juni 2004 04:48
An: developers-6VIttnCrOeJXNEnpj1eHPNi2O/[email protected];
user-keelframework.org-rI8AND0JKYOgdSakss0wQjfEH8FBEnyy@public.gmane.org
Betreff: Re: [Keel User] Enter button on forms with keel:command


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