Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: EE-4.2.0.GA, EE-3.3.0.GA_P05
-
Fix Version/s: 4.3, EE-3.3.0.GA_P06
-
Component/s: ACE-Components
-
Labels:None
-
Environment:ace jsf2
-
Support Case References:Support Case 14252:-https://icesoft.my.salesforce.com/5000g00001oqHON
-
Workaround Description:
Description
See the attached jsf (only) example to see standard h:commandButton behaviour. When any button on a form has focus and the enter key is pressed, that button submits (and triggers any actionListener methods or action methods). ice:commandButton also behaves this way.
For some reason, ace:pushButton does not.
Must also evaluate its impact on icecore:default and when a regular “submit” button is on the form behavior.
For some reason, ace:pushButton does not.
Must also evaluate its impact on icecore:default and when a regular “submit” button is on the form behavior.
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
Field | Original Value | New Value |
---|---|---|
Assignee | Arturo Zambrano [ artzambrano ] |
Fix Version/s | 4.3 [ 13096 ] | |
Fix Version/s | EE-3.3.0.GA_P07 [ 13118 ] |
Workaround Description | javascript function for onkeypress when a button has a focus to do ice.s or ice.se. |
Disable the framework's submitOnEnter feature to allow the component's own listener to handle the request. This is done by setting the 'submitOnEnter' property on the button element itself to 'disabled'. The following markup is an example:
<script type="text/javascript"> document.getElementById('form:pushBttnActionList_button').submitOnEnter = 'disabled'; </script> |
Workaround Description |
Disable the framework's submitOnEnter feature to allow the component's own listener to handle the request. This is done by setting the 'submitOnEnter' property on the button element itself to 'disabled'. The following markup is an example:
<script type="text/javascript"> document.getElementById('form:pushBttnActionList_button').submitOnEnter = 'disabled'; </script> |
Disable the framework's submitOnEnter feature to allow the component's own listener to handle the request. This is done by setting the 'submitOnEnter' property on the button element itself to 'disabled'. The following markup is an example to do this for all ace:pushButton's on the page:
<script type="text/javascript"> ice.ace.jq('.ice-pushbutton button').each(function(){this.submitOnEnter = 'disabled'}); </script> Note that this code has to go at the end of the page, so that no more ace:pushButton components appear after this code on the page. |
Status | Open [ 1 ] | Resolved [ 5 ] |
Resolution | Fixed [ 1 ] |
Fix Version/s | EE-3.3.0.GA_P06 [ 13114 ] | |
Fix Version/s | EE-3.3.0.GA_P07 [ 13118 ] |
Status | Resolved [ 5 ] | Closed [ 6 ] |