You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Joris Verschoor (JIRA)" <de...@myfaces.apache.org> on 2005/11/01 17:35:55 UTC
[jira] Created: (MYFACES-771) action in a submit button is not triggered on IE
action in a submit button is not triggered on IE
------------------------------------------------
Key: MYFACES-771
URL: http://issues.apache.org/jira/browse/MYFACES-771
Project: MyFaces
Type: Bug
Components: Implementation
Versions: 1.1.0
Environment: linux 2.6.9-11 running java 1.5.0_05-b05
internet explorer 6.0.2900.2180.xpsp_sp2_gdr.050301-1519
Reporter: Joris Verschoor
We have a form with:
* a submit button (commandButton, type="submit") with an action (action="#{bean.go}")
* a single textinput field (single textbox is key)
* several selectboxes
If you press enter, when the textbox has focus, it's expected to submit the first submitbutton.
This works fine under firefox. However, under IE, when you press enter, yuo get a different results than clicking the submit button.
This results in unexpected behaviour: Because the name/value pair is not submitted by pressing enter, myfaces does not know that the button was clicked, and therefore does not invoke the action (bean.go())
The problem is also described: http://ppewww.ph.gla.ac.uk/~flavell/www/formquestion.html
The input pixel image solution did not work for us, but we've found another way:
At the beginning of the form, we've put:
<f:verbatim>
<input type="text" name="input_for_enterkey_submit" style="display: none;">
</f:verbatim>
The myfaces renderer should count the number of textinputs, and if there is only one textinput, it should create a hidden textinput.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Commented: (MYFACES-771) action in a submit button is not triggered on IE
Posted by "Joris Verschoor (JIRA)" <de...@myfaces.apache.org>.
[ http://issues.apache.org/jira/browse/MYFACES-771?page=comments#action_12356579 ]
Joris Verschoor commented on MYFACES-771:
-----------------------------------------
Ofcourse it should only be done when internet explorer is detected.
> action in a submit button is not triggered on IE
> ------------------------------------------------
>
> Key: MYFACES-771
> URL: http://issues.apache.org/jira/browse/MYFACES-771
> Project: MyFaces
> Type: Bug
> Components: Implementation
> Versions: 1.1.0
> Environment: linux 2.6.9-11 running java 1.5.0_05-b05
> internet explorer 6.0.2900.2180.xpsp_sp2_gdr.050301-1519
> Reporter: Joris Verschoor
>
> We have a form with:
> * a submit button (commandButton, type="submit") with an action (action="#{bean.go}")
> * a single textinput field (single textbox is key)
> * several selectboxes
> If you press enter, when the textbox has focus, it's expected to submit the first submitbutton.
> This works fine under firefox. However, under IE, when you press enter, yuo get a different results than clicking the submit button.
> This results in unexpected behaviour: Because the name/value pair is not submitted by pressing enter, myfaces does not know that the button was clicked, and therefore does not invoke the action (bean.go())
> The problem is also described: http://ppewww.ph.gla.ac.uk/~flavell/www/formquestion.html
> The input pixel image solution did not work for us, but we've found another way:
> At the beginning of the form, we've put:
> <f:verbatim>
> <input type="text" name="input_for_enterkey_submit" style="display: none;">
> </f:verbatim>
> The myfaces renderer should count the number of textinputs, and if there is only one textinput, it should create a hidden textinput.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Commented: (MYFACES-771) action in a submit button is not
triggered on IE
Posted by "Stefan Sieber (JIRA)" <de...@myfaces.apache.org>.
[ https://issues.apache.org/jira/browse/MYFACES-771?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12613544#action_12613544 ]
Stefan Sieber commented on MYFACES-771:
---------------------------------------
In my opinion it's a bug and not just an HTML - problem. This works in FF (or in IE if there is more than one input - field as suggested by the workaround).
Shouldn't JSF hide all (or at least most) of these browser compatibility hacks from us?
other resources mentioning this problem:
http://www.nabble.com/Having-a-%22Default%22-commandButton-to984179.html#a994644
http://www.nabble.com/Form-submit-problem-on-IE-only-to2908217.html#a2908217
It took me quite a while until i found a workaround to this problem. Maybe we could save the time of many myfaces users?
Regards,
Stefan
> action in a submit button is not triggered on IE
> ------------------------------------------------
>
> Key: MYFACES-771
> URL: https://issues.apache.org/jira/browse/MYFACES-771
> Project: MyFaces Core
> Issue Type: Bug
> Components: General
> Affects Versions: 1.1.0
> Environment: linux 2.6.9-11 running java 1.5.0_05-b05
> internet explorer 6.0.2900.2180.xpsp_sp2_gdr.050301-1519
> Reporter: Joris Verschoor
>
> We have a form with:
> * a submit button (commandButton, type="submit") with an action (action="#{bean.go}")
> * a single textinput field (single textbox is key)
> * several selectboxes
> If you press enter, when the textbox has focus, it's expected to submit the first submitbutton.
> This works fine under firefox. However, under IE, when you press enter, yuo get a different results than clicking the submit button.
> This results in unexpected behaviour: Because the name/value pair is not submitted by pressing enter, myfaces does not know that the button was clicked, and therefore does not invoke the action (bean.go())
> The problem is also described: http://ppewww.ph.gla.ac.uk/~flavell/www/formquestion.html
> The input pixel image solution did not work for us, but we've found another way:
> At the beginning of the form, we've put:
> <f:verbatim>
> <input type="text" name="input_for_enterkey_submit" style="display: none;">
> </f:verbatim>
> The myfaces renderer should count the number of textinputs, and if there is only one textinput, it should create a hidden textinput.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (MYFACES-771) action in a submit button is not
triggered on IE
Posted by "Martin Marinschek (JIRA)" <de...@myfaces.apache.org>.
[ http://issues.apache.org/jira/browse/MYFACES-771?page=comments#action_12363812 ]
Martin Marinschek commented on MYFACES-771:
-------------------------------------------
Ok, but that's a bug where you present a workaround already, right?
I mean -that's nothing got to do with MyFaces, that's rather an HTML problem?
regards,
Martin
> action in a submit button is not triggered on IE
> ------------------------------------------------
>
> Key: MYFACES-771
> URL: http://issues.apache.org/jira/browse/MYFACES-771
> Project: MyFaces
> Type: Bug
> Components: Implementation
> Versions: 1.1.0
> Environment: linux 2.6.9-11 running java 1.5.0_05-b05
> internet explorer 6.0.2900.2180.xpsp_sp2_gdr.050301-1519
> Reporter: Joris Verschoor
>
> We have a form with:
> * a submit button (commandButton, type="submit") with an action (action="#{bean.go}")
> * a single textinput field (single textbox is key)
> * several selectboxes
> If you press enter, when the textbox has focus, it's expected to submit the first submitbutton.
> This works fine under firefox. However, under IE, when you press enter, yuo get a different results than clicking the submit button.
> This results in unexpected behaviour: Because the name/value pair is not submitted by pressing enter, myfaces does not know that the button was clicked, and therefore does not invoke the action (bean.go())
> The problem is also described: http://ppewww.ph.gla.ac.uk/~flavell/www/formquestion.html
> The input pixel image solution did not work for us, but we've found another way:
> At the beginning of the form, we've put:
> <f:verbatim>
> <input type="text" name="input_for_enterkey_submit" style="display: none;">
> </f:verbatim>
> The myfaces renderer should count the number of textinputs, and if there is only one textinput, it should create a hidden textinput.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira