Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.0-Beta2
-
Fix Version/s: 2.0.0
-
Component/s: None
-
Labels:None
-
Environment:ICEfaces
Description
ice.se (singleSubmitExecuteThis) causes focus to be lost when used with compat and h: components.
Using the singleSubmit variant of component-showcase:
icefaces2/branches/ice-6178/
Choose the selection demo. Observe that focus is lost when any of the "select" items are selected.
Modifying application.js to use the following allows focus to be retained in component-showcase:
jsf.ajax.request(element, event,
{execute: element.id, render: "@all"});
// ice.se(e, element);
The root cause of loss of focus appears to be the following in submit.js:
//move element from its original place into the single submit form
form.appendChild(element);
Moving the element that is currently focused by the user is likely the source of the problem. Using innerHtml may be an option for cloning the element if DOM APIs are not suitable.