Details
Description
When using the ICEfaces 2 singleSubmit feature (either via the ice core:singleSubmit tag or on an ace: component attribute), the singleSubmit doesn't enforce a "required=true" validation condition if the component is not edited when visited.
If you visit an input component with "required=true", but do not edit it's contents, the singleSubmit is not fired when the component is loses focus, so the "required=true" condition is never enforced.
I believe this can be fixed by adding some smart logic to the singleSubmit feature to trigger a singleSubmit during an input component's "onBlur" event, but only in cases where "required-true" is defined on that component.
If you visit an input component with "required=true", but do not edit it's contents, the singleSubmit is not fired when the component is loses focus, so the "required=true" condition is never enforced.
I believe this can be fixed by adding some smart logic to the singleSubmit feature to trigger a singleSubmit during an input component's "onBlur" event, but only in cases where "required-true" is defined on that component.
Activity
Ken Fyten
created issue -
Ken Fyten
made changes -
Field | Original Value | New Value |
---|---|---|
Salesforce Case | [] | |
Affects | [Documentation (User Guide, Ref. Guide, etc.)] | |
Assignee Priority | P1 | |
Assignee | Ted Goddard [ ted.goddard ] |
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #26288 | Tue Nov 08 16:13:07 MST 2011 | ted.goddard | submitOnBlur attribute ( |
Files Changed | ||||
MODIFY
/icefaces2/trunk/icefaces/core/src/main/javascript/application.js
MODIFY /icefaces2/trunk/icefaces/core/src/main/java/org/icefaces/impl/renderkit/html_basic/SingleSubmitRenderer.java MODIFY /icefaces2/trunk/icefaces/core/src/main/resources/META-INF/core.taglib.xml |
Ted Goddard
made changes -
Status | Open [ 1 ] | Resolved [ 5 ] |
Resolution | Fixed [ 1 ] |
Ken Fyten
made changes -
Fix Version/s | 3.0.RC1 [ 10300 ] | |
Fix Version/s | 3.0 [ 10241 ] |
Ken Fyten
made changes -
Fix Version/s | 3.0 [ 10241 ] |
Ken Fyten
made changes -
Status | Resolved [ 5 ] | Closed [ 6 ] |
The singleSubmit tag has been modified to allow a submitOnBlur parameter:
<icecore:singleSubmit submitOnBlur="true" />
This can be used for server-side validation of required elements (which should actually be performed client-side) or for other features that react to the specific field the user is on (such as an application that updates lock information to show that a field cannot currently be edited).