Details
-
Type: New Feature
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 2.0-Alpha2
-
Fix Version/s: 2.0-Alpha3, 2.0.0
-
Component/s: Bridge
-
Labels:None
-
Environment:ICEfaces 2.0 Alpha2 / JSF 2.
Description
In ICEfaces 1.x the doSubmit() function in the bridge would block the default submit on enter functionality that is present in some browsers when Enter is pressed inside an HTML input element. We need a similar mechanism for ICEfaces 2.0, to allow the components themselves full control over submit processing as triggered by the enter key.
Issue Links
- blocks
-
ICE-5536 The action method of two components are called when Enter key is pressed
- Closed
Introduced system event listener that wires up any rendered form to capture enter key presses. The JS event handler is registered with the form element capturing thus any enter key presses that can arrive from any input or select elements enclosed within the form.
Here's a link that describes the difference in IE's behavior without the fix for this issue: http://www.thefutureoftheweb.com/blog/submit-a-form-in-ie-with-enter .