a4j:support reRender loses focus in IE
ncheck Mar 3, 2011 3:10 PMHi There,
I'm having a problem with a4j:support tag on an input box - where I have an a4j:support tag. as I'm tabbing through the HTML/rendered page, and tab through the field with the a4j:support, after a few seconds' delay in IE ONLY, the form loses focus altogether. I've tried manually refocusing back to the activeElement with an oncomplete='document.activeElement.focus();' but it just doesn't work in IE. despite the error shown below, my oncomplete is still called (opens an alert box) - can someone please tell me a workaround for this issue? Thanks!
Here's the a4J LOG:
debug[10:25:28,281]: Update page part from call parameter for ID mainForm:j_id212
debug[10:25:28,281]: call selectSingleNode for id= mainForm:j_id212
debug[10:25:28,281]: Replace content of node by outerHTML()
debug[10:25:28,281]: search for elements by name 'script' in element span
debug[10:25:28,281]: Scripts in updated part count : 0
debug[10:25:28,281]: Update part of page for Id: mainForm:j_id212 successful
debug[10:25:28,281]: Update page part from call parameter for ID mainForm:j_id228
debug[10:25:28,281]: call selectSingleNode for id= mainForm:j_id228
debug[10:25:28,281]: Replace content of node by outerHTML()
debug[10:25:28,281]: search for elements by name 'script' in element span
debug[10:25:28,281]: Scripts in updated part count : 0
debug[10:25:28,281]: Update part of page for Id: mainForm:j_id228 successful
debug[10:25:28,281]: Update page part from call parameter for ID mainForm:j_id235
debug[10:25:28,281]: call selectSingleNode for id= mainForm:j_id235
debug[10:25:28,281]: Replace content of node by outerHTML()
debug[10:25:28,296]: search for elements by name 'script' in element span
debug[10:25:28,296]: Scripts in updated part count : 0
debug[10:25:28,296]: Update part of page for Id: mainForm:j_id235 successful
debug[10:25:28,296]: Update page part from call parameter for ID mainForm:j_id242
debug[10:25:28,296]: call selectSingleNode for id= mainForm:j_id242
debug[10:25:28,296]: Replace content of node by outerHTML()
debug[10:25:28,296]: search for elements by name 'script' in element span
debug[10:25:28,296]: Scripts in updated part count : 0
debug[10:25:28,296]: Update part of page for Id: mainForm:j_id242 successful
debug[10:25:28,296]: Update page part from call parameter for ID mainForm:j_id249
debug[10:25:28,296]: call selectSingleNode for id= mainForm:j_id249
debug[10:25:28,296]: Replace content of node by outerHTML()
debug[10:25:28,296]: search for elements by name 'script' in element span
debug[10:25:28,296]: Scripts in updated part count : 0
debug[10:25:28,296]: call selectSingleNode for id= org.ajax4jsf.oncomplete
debug[10:25:28,296]: Call request oncomplete function after processing updates
debug[10:25:28,296]: After request: queue 'mainForm:j_id173'
debug[10:25:28,296]: There are 0 requests more in this queue
debug[10:25:28,296]: Queue is empty now
debug[10:25:28,296]: Update part of page for Id: mainForm:j_id249 successful
debug[10:25:28,296]: call selectSingleNode for id= ajax-view-state
debug[10:25:28,296]: Hidden JSF state fields:
debug[10:25:28,296]: Namespace for hidden view-state input fields is undefined
debug[10:25:28,296]: search for elements by name 'input' in element span
debug[10:25:28,296]: Replace value for inputs: 29 by new values: 1
debug[10:25:28,296]: Input in response: javax.faces.ViewState
debug[10:25:28,296]: Found same input on page with type: hidden
debug[10:25:28,296]: Found same input on page with type: hidden
debug[10:25:28,312]: Found same input on page with type: hidden
debug[10:25:28,312]: Found same input on page with type: hidden
debug[10:25:28,312]: search for elements by name 'INPUT' in element span
debug[10:25:28,312]: Replace value for inputs: 29 by new values: 0
debug[10:25:28,312]: call selectSingleNode for id= _A4J.AJAX.focus
debug[10:25:28,312]: No focus information in response
debug[10:25:28,359]: call selectSingleNode for id= _ajax:data
error[10:25:28,359]: Error evaluate oncomplete function undefined