This content has been marked as final.
Show 2 replies
-
1. Re: a4j:form does not submit with enter key in IE6/7, works
lincolnthree Aug 24, 2008 11:51 PM (in response to lincolnthree)I checked the <a4j:log> and noticed in FireFox on pressing enter:
FireFox:
debug[23:48:52,621]: Form submitted by button storyform:submit
debug[23:48:52,621]: NEW AJAX REQUEST !!! with form :storyform
But in IE:
debug[23:48:52,621]: NEW AJAX REQUEST !!! with form :storyform
Seems like FireFox actually clicks the button for you when you press enter. Recommendations? -
2. Re: a4j:form does not submit with enter key in IE6/7, works
lincolnthree Aug 25, 2008 12:12 AM (in response to lincolnthree)SOLVED: IE does not send the submit button / submit the form if there is only ONE text input field... good to know. I fixed it by adding an invisible, unusable, unbound input field to the form.
<h:inputText type="text" style="visibility:hidden;display:none;" disabled="disabled" required="false" />