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

Reply via email to