[jboss-jira] [JBoss JIRA] Commented: (JBPORTAL-2290) Enter key doesn't trigger the same action in IE6/7 and FIREFOX

Andy Pemberton (JIRA) jira-events at lists.jboss.org
Fri Apr 17 00:39:25 EDT 2009


    [ https://jira.jboss.org/jira/browse/JBPORTAL-2290?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12462801#action_12462801 ] 

Andy Pemberton commented on JBPORTAL-2290:
------------------------------------------

This looks like a fairly well-known Internet Explorer issue related to submitting forms with the enter button when only one input is present in the form.

See:
- http://style-vs-substance.com/form-submit-by-enter-key-and-internet-explorer/2009/02/
- http://www.thehenrys.net/wp/?p=14
- https://issues.apache.org/jira/browse/MYFACES-771

I checked IE8 and this still appears to be an issue. One easy, though not totally satisfying workaround, is to include a dummy input in the necessary forms/facelets templates (tested on editPage.xhtml):

<!--[if IE]> <input type="text" style="display:none;" disabled="disabled" /> <![endif]-->

Another nice way to solve this would be to conditionally comment in a javascript file that fixes this and other IE specific issues dynamically.


> Enter key doesn't trigger the same action in IE6/7 and FIREFOX
> --------------------------------------------------------------
>
>                 Key: JBPORTAL-2290
>                 URL: https://jira.jboss.org/jira/browse/JBPORTAL-2290
>             Project: JBoss Portal
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>    Affects Versions: 2.7.1 Final
>         Environment: lenovo t61, fedora 9, java 5
>            Reporter: Viliam Rockai
>            Assignee: Wesley Hales
>            Priority: Minor
>             Fix For: 2.8 Final
>
>
> when I set the name of a "component" to input box and I want to create the "component", in FF only pressing enter key is sufficient, but in IE6 (and IE7) I have to press the "create button" - only pressing the enter key just refresh the page and does nothing at all.
> I have found this inconsistency in many parts of portal GUI... i.e.:
> "Create a consumer named" in WSRP interface
> "Create a portal named" in Portal Objects interface
> "Create a page named" in Portal Objects interface
> ...

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list