Details
Description
Problem: enter key on h:inputText w/ actionListener causes 2 submits, full form submit (via enter key pressed on h:inputText, from the bridge?), followed by action event submit form the h:inputText.
The issue is that we have assumed that any component that fired an action event on "enter" would also consume the "enter" key event so that it would not bubble up the DOM. This appears to be an incorrect assumption in this case.
- this behavior can cause problems with validators/users as the they are
under the perception that just one submit has occurred, the double submit
will likely leave the application in an unexpected state.
- Workaround in auction is to avoid having an action listener on the input field.
- Ideally the framework would not do the full form submit if the component already had an action listener ready to fire.
The issue is that we have assumed that any component that fired an action event on "enter" would also consume the "enter" key event so that it would not bubble up the DOM. This appears to be an incorrect assumption in this case.
- this behavior can cause problems with validators/users as the they are
under the perception that just one submit has occurred, the double submit
will likely leave the application in an unexpected state.
- Workaround in auction is to avoid having an action listener on the input field.
- Ideally the framework would not do the full form submit if the component already had an action listener ready to fire.
Issue Links
- duplicates
-
ICE-5536 The action method of two components are called when Enter key is pressed
- Closed
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
Ken Fyten
created issue -
Ken Fyten
made changes -
Field | Original Value | New Value |
---|---|---|
Salesforce Case | [] | |
Fix Version/s | 2.0-Beta2 [ 10242 ] | |
Assignee Priority | P2 | |
Assignee | Mircea Toma [ mircea.toma ] |
Mircea Toma
made changes -
Mircea Toma
made changes -
Status | Open [ 1 ] | Resolved [ 5 ] |
Resolution | Fixed [ 1 ] |
Patrick Corless
made changes -
Resolution | Fixed [ 1 ] | |
Status | Resolved [ 5 ] | Reopened [ 4 ] |
Mircea Toma
made changes -
Status | Reopened [ 4 ] | Resolved [ 5 ] |
Resolution | Fixed [ 1 ] |
Ken Fyten
made changes -
Fix Version/s | 2.0.0 [ 10230 ] |
Ken Fyten
made changes -
Status | Resolved [ 5 ] | Closed [ 6 ] |
Assignee Priority | P2 |