You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Martin Marinschek (JIRA)" <de...@myfaces.apache.org> on 2006/01/24 12:25:11 UTC
[jira] Commented: (MYFACES-771) action in a submit button is not
triggered on IE
[ 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