Details
-
Type:
New Feature
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: EE-3.0.0.GA, 3.1
-
Fix Version/s: 3.3
-
Labels:None
-
Environment:ICEfaces
-
Assignee Priority:P2
-
ICEsoft Forum Reference:
-
Affects:Documentation (User Guide, Ref. Guide, etc.), Sample App./Tutorial
Description
Create a component which will allow to control which command to initiate form submit when enter key is pressed.
For example such component will allow to execute button#2 by default when a user hit Enter:
<h:form id="form">
...
<h:commandButton value="Ajax button" id="button1" actionListener="#{sampleBean.ajaxSubmit}">
<f:ajax execute="@this" render="@form">
<h:commandButton>
<h:commandButton value="Regular Button" id="button2" action="#{sampleBean.nonAjaxSubmit}" />
<ace:defaultAction target="#{someEL_poinitng_to_button2}" />
...
</h:form>
The component could also support more keys in addition to Enter.
Example:
<h:form id="form">
...
<f:ajax execute="@this" render="@form">
<h:commandButton value="Submit" id="button1" actionListener="#{sampleBean.ajaxSubmit}"/>
<h:commandButton value="Cancel" id="button2" action="#{sampleBean.nonAjaxSubmit}" />
<f:ajax/>
<ace:defaultAction target="button1" key="Enter"/>
<ace:defaultAction target="button2" key="Esc"/>
...
</h:form>
For example such component will allow to execute button#2 by default when a user hit Enter:
<h:form id="form">
...
<h:commandButton value="Ajax button" id="button1" actionListener="#{sampleBean.ajaxSubmit}">
<f:ajax execute="@this" render="@form">
<h:commandButton>
<h:commandButton value="Regular Button" id="button2" action="#{sampleBean.nonAjaxSubmit}" />
<ace:defaultAction target="#{someEL_poinitng_to_button2}" />
...
</h:form>
The component could also support more keys in addition to Enter.
Example:
<h:form id="form">
...
<f:ajax execute="@this" render="@form">
<h:commandButton value="Submit" id="button1" actionListener="#{sampleBean.ajaxSubmit}"/>
<h:commandButton value="Cancel" id="button2" action="#{sampleBean.nonAjaxSubmit}" />
<f:ajax/>
<ace:defaultAction target="button1" key="Enter"/>
<ace:defaultAction target="button2" key="Esc"/>
...
</h:form>
Activity
Field | Original Value | New Value |
---|---|---|
Salesforce Case | [5007000000NJSvR] |
Fix Version/s | 3.3 [ 10370 ] | |
Assignee | Mircea Toma [ mircea.toma ] | |
Affects | Documentation (User Guide, Ref. Guide, etc.),Sample App./Tutorial [ 10003, 10001 ] | |
Assignee Priority | P2 [ 10011 ] | |
Component/s | Bridge [ 10011 ] | |
ICEsoft Forum Reference | http://www.icesoft.org/JForum/posts/list/21411.page |
Assignee Priority | P2 [ 10011 ] | P3 [ 10012 ] |
Assignee Priority | P3 [ 10012 ] | P2 [ 10011 ] |
Status | Open [ 1 ] | In Progress [ 3 ] |
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #33245 | Mon Jan 28 05:10:26 MST 2013 | mircea.toma | |
Files Changed | ||||
![]() ![]() ![]() ![]() ![]() |
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #33247 | Mon Jan 28 05:18:10 MST 2013 | mircea.toma | |
Files Changed | ||||
![]() |
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #33248 | Mon Jan 28 09:25:22 MST 2013 | mircea.toma | |
Files Changed | ||||
![]() |
Status | In Progress [ 3 ] | Resolved [ 5 ] |
Resolution | Fixed [ 1 ] |
Resolution | Fixed [ 1 ] | |
Status | Resolved [ 5 ] | Reopened [ 4 ] |
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #33481 | Mon Feb 18 04:17:23 MST 2013 | mircea.toma | |
Files Changed | ||||
![]() |
Status | Reopened [ 4 ] | Resolved [ 5 ] |
Resolution | Fixed [ 1 ] |
Component/s | Framework [ 10013 ] | |
Component/s | ACE-Components [ 10050 ] |
Summary | New default action component | New icecore:defaultAction component |
Status | Resolved [ 5 ] | Closed [ 6 ] |
This likely should be an icecore: component.