Olá Pessoal,
Estou com um “erro” na aplicação e não consigo resolver.
1 - Utilizo o jquery ( $(‘botao’).trigger(‘click’); ) para acionar um botão (a4j:commandButton + a4j:support)
2 - Quando testo no IE o log (a4j:log) é o seguinte (sem erros)
debug[13:31:43,250]: search for elements by name 'script' in element form
debug[13:31:43,250]: Scripts in updated part count : 2
debug[13:31:43,250]: Update part of page for Id: estadoCivilJsfBeanForm successful
debug[13:31:43,250]: Update page part from call parameter for ID j_id_jsp_1774508783_0pc3
debug[13:31:43,250]: call selectSingleNode for id= j_id_jsp_1774508783_0pc3
debug[13:31:43,250]: Replace content of node by outerHTML()
debug[13:31:43,250]: search for elements by name 'script' in element span
debug[13:31:43,250]: Scripts in updated part count : 1
debug[13:31:43,250]: Update part of page for Id: j_id_jsp_1774508783_0pc3 successful
debug[13:31:43,250]: call selectSingleNode for id= ajax-view-state
debug[13:31:43,250]: Hidden JSF state fields:
debug[13:31:43,250]: Namespace for hidden view-state input fields is undefined
debug[13:31:43,250]: search for elements by name 'input' in element span
debug[13:31:43,250]: Replace value for inputs: 11 by new values: 1
debug[13:31:43,250]: Input in response: javax.faces.ViewState
debug[13:31:43,250]: Found same input on page with type: hidden
debug[13:31:43,265]: search for elements by name 'INPUT' in element span
debug[13:31:43,265]: Replace value for inputs: 11 by new values: 0
debug[13:31:43,265]: call selectSingleNode for id= _A4J.AJAX.focus
debug[13:31:43,265]: No focus information in response
debug[13:31:43,265]: Evaluate script replaced area in document:
function estadoCivilJsfBeanForm_hdPrimariKeySelected(_array, event){
document.getElementById('estadoCivilJsfBeanForm:hdPrimariKey').value = _array[0];
document.getElementById('estadoCivilJsfBeanForm:toolbar1SEARCHPopup').value = 'search';
document.getElementById('diframe').style.display = 'none';
A4J.AJAX.Submit('estadoCivilJsfBeanForm',event,{'similarityGroupingId':'estadoCivilJsfBeanForm:j_id_jsp_872141097_7','parameters':{'estadoCivilJsfBeanForm:j_id_jsp_872141097_7':'estadoCivilJsfBeanForm:j_id_jsp_872141097_7'} ,'containerId':'j_id_jsp_872141097_0'} );
}
debug[13:31:43,265]: Script evaluation succeeded
debug[13:31:43,265]: Evaluate script replaced area in document: LOG.LEVEL = LOG.ALL;
debug[13:31:43,265]: Script evaluation succeeded
debug[13:31:43,265]: Evaluate script replaced area in document:
//<![CDATA[ afterRequest(); //]]>
debug[13:31:43,281]: Script evaluation succeeded
debug[13:31:43,281]: call selectSingleNode for id= org.ajax4jsf.oncomplete
debug[13:31:43,281]: Processing updates finished, no oncomplete function to call
debug[13:31:43,281]: Evaluate script replaced area in document:
function estadoCivilJsfBeanForm_hdPrimariKeySelected(_array, event){
document.getElementById('estadoCivilJsfBeanForm:hdPrimariKey').value = _array[0];
document.getElementById('estadoCivilJsfBeanForm:toolbar1SEARCHPopup').value = 'search';
document.getElementById('diframe').style.display = 'none';
A4J.AJAX.Submit('estadoCivilJsfBeanForm',event,{'similarityGroupingId':'estadoCivilJsfBeanForm:j_id_jsp_872141097_7','parameters':{'estadoCivilJsfBeanForm:j_id_jsp_872141097_7':'estadoCivilJsfBeanForm:j_id_jsp_872141097_7'} ,'containerId':'j_id_jsp_872141097_0'} );
}
debug[13:31:43,281]: Script evaluation succeeded
debug[13:31:43,281]: Evaluate script replaced area in document: LOG.LEVEL = LOG.ALL;
debug[13:31:43,281]: Script evaluation succeeded
debug[13:31:43,296]: Evaluate script replaced area in document:
//<![CDATA[ afterRequest(); //]]>
debug[13:31:43,296]: Script evaluation succeeded
debug[13:31:43,296]: call selectSingleNode for id= org.ajax4jsf.oncomplete
debug[13:31:43,296]: Processing updates finished, no oncomplete function to call
3 - Quando executo no firefox (com erro)
debug[13:28:26,815]: Have Event [object Object] with properties: target: [object HTMLInputElement], srcElement: undefined, type: click
debug[13:28:26,816]: Query preparation for form 'estadoCivilJsfBeanForm' requested
debug[13:28:26,816]: Append hidden control estadoCivilJsfBeanForm with value [estadoCivilJsfBeanForm] and value attribute [estadoCivilJsfBeanForm]
debug[13:28:26,816]: Append hidden control estadoCivilJsfBeanForm:hdPrimariKey with value [] and value attribute [null]
debug[13:28:26,816]: Append text control estadoCivilJsfBeanForm:codigo with value [] and value attribute [null]
debug[13:28:26,816]: Append textarea control estadoCivilJsfBeanForm:descricao with value [] and value attribute [null]
debug[13:28:26,817]: Append hidden control estadoCivilJsfBeanForm:toolbar1SEARCHPopup with value [] and value attribute []
debug[13:28:26,817]: Append hidden control javax.faces.ViewState with value [j_id4] and value attribute [j_id4]
debug[13:28:26,817]: parameter estadoCivilJsfBeanForm:toolbar1CANCEL_NEW.x with value estadoCivilJsfBeanForm:toolbar1CANCEL_NEW
debug[13:28:26,817]: parameter estadoCivilJsfBeanForm:j_id_jsp_872141097_7 with value estadoCivilJsfBeanForm:j_id_jsp_872141097_7
debug[13:28:26,817]: Look up queue with default name
debug[13:28:26,817]: NEW AJAX REQUEST !!! with form: estadoCivilJsfBeanForm
debug[13:28:26,818]: Start XmlHttpRequest
debug[13:28:26,818]: Request state : 1
debug[13:28:26,818]: QueryString: AJAXREQUEST=j_id_jsp_872141097_0&estadoCivilJsfBeanForm=estadoCivilJsfBeanForm&estadoCivilJsfBeanForm%3AhdPrimariKey=&estadoCivilJsfBeanForm%3Acodigo=&estadoCivilJsfBeanForm%3Adescricao=&estadoCivilJsfBeanForm%3Atoolbar1SEARCHPopup=&javax.faces.ViewState=j_id4&estadoCivilJsfBeanForm%3Atoolbar1CANCEL_NEW.x=estadoCivilJsfBeanForm%3Atoolbar1CANCEL_NEW&estadoCivilJsfBeanForm%3Aj_id_jsp_872141097_7=estadoCivilJsfBeanForm%3Aj_id_jsp_872141097_7&
debug[13:28:26,820]: Request state : 1
debug[13:28:26,833]: Have Event [object Object] with properties: target: [object HTMLInputElement], srcElement: undefined, type: click
debug[13:28:26,833]: Query preparation for form 'estadoCivilJsfBeanForm' requested
debug[13:28:26,833]: Append hidden control estadoCivilJsfBeanForm with value [estadoCivilJsfBeanForm] and value attribute [estadoCivilJsfBeanForm]
debug[13:28:26,834]: Append hidden control estadoCivilJsfBeanForm:hdPrimariKey with value [] and value attribute [null]
debug[13:28:26,834]: Append text control estadoCivilJsfBeanForm:codigo with value [] and value attribute [null]
debug[13:28:26,834]: Append textarea control estadoCivilJsfBeanForm:descricao with value [] and value attribute [null]
debug[13:28:26,834]: Append hidden control estadoCivilJsfBeanForm:toolbar1SEARCHPopup with value [] and value attribute []
debug[13:28:26,834]: Append hidden control javax.faces.ViewState with value [j_id4] and value attribute [j_id4]
debug[13:28:26,834]: parameter estadoCivilJsfBeanForm:toolbar1CANCEL_NEW.x with value estadoCivilJsfBeanForm:toolbar1CANCEL_NEW
debug[13:28:26,834]: parameter estadoCivilJsfBeanForm:j_id_jsp_872141097_7 with value estadoCivilJsfBeanForm:j_id_jsp_872141097_7
debug[13:28:26,835]: Look up queue with default name
debug[13:28:26,835]: NEW AJAX REQUEST !!! with form: estadoCivilJsfBeanForm
debug[13:28:26,835]: Start XmlHttpRequest
debug[13:28:26,835]: Request state : 1
debug[13:28:26,836]: QueryString: AJAXREQUEST=j_id_jsp_872141097_0&estadoCivilJsfBeanForm=estadoCivilJsfBeanForm&estadoCivilJsfBeanForm%3AhdPrimariKey=&estadoCivilJsfBeanForm%3Acodigo=&estadoCivilJsfBeanForm%3Adescricao=&estadoCivilJsfBeanForm%3Atoolbar1SEARCHPopup=&javax.faces.ViewState=j_id4&estadoCivilJsfBeanForm%3Atoolbar1CANCEL_NEW.x=estadoCivilJsfBeanForm%3Atoolbar1CANCEL_NEW&estadoCivilJsfBeanForm%3Aj_id_jsp_872141097_7=estadoCivilJsfBeanForm%3Aj_id_jsp_872141097_7&
debug[13:28:26,837]: Request state : 1
debug[13:28:26,848]: Have Event [object Object] with properties: target: [object HTMLInputElement], srcElement: undefined, type: click
debug[13:28:26,848]: Query preparation for form 'estadoCivilJsfBeanForm' requested
debug[13:28:26,848]: Append hidden control estadoCivilJsfBeanForm with value [estadoCivilJsfBeanForm] and value attribute [estadoCivilJsfBeanForm]
debug[13:28:26,849]: Append hidden control estadoCivilJsfBeanForm:hdPrimariKey with value [] and value attribute [null]
debug[13:28:26,849]: Append text control estadoCivilJsfBeanForm:codigo with value [] and value attribute [null]
debug[13:28:26,849]: Append textarea control estadoCivilJsfBeanForm:descricao with value [] and value attribute [null]
debug[13:28:26,849]: Append hidden control estadoCivilJsfBeanForm:toolbar1SEARCHPopup with value [] and value attribute []
debug[13:28:26,849]: Append hidden control javax.faces.ViewState with value [j_id4] and value attribute [j_id4]
debug[13:28:26,849]: parameter estadoCivilJsfBeanForm:toolbar1CANCEL_NEW.x with value estadoCivilJsfBeanForm:toolbar1CANCEL_NEW
debug[13:28:26,850]: parameter estadoCivilJsfBeanForm:j_id_jsp_872141097_7 with value estadoCivilJsfBeanForm:j_id_jsp_872141097_7
debug[13:28:26,850]: Look up queue with default name
debug[13:28:26,850]: NEW AJAX REQUEST !!! with form: estadoCivilJsfBeanForm
debug[13:28:26,850]: Start XmlHttpRequest
debug[13:28:26,850]: Request state : 1
debug[13:28:26,851]: QueryString: AJAXREQUEST=j_id_jsp_872141097_0&estadoCivilJsfBeanForm=estadoCivilJsfBeanForm&estadoCivilJsfBeanForm%3AhdPrimariKey=&estadoCivilJsfBeanForm%3Acodigo=&estadoCivilJsfBeanForm%3Adescricao=&estadoCivilJsfBeanForm%3Atoolbar1SEARCHPopup=&javax.faces.ViewState=j_id4&estadoCivilJsfBeanForm%3Atoolbar1CANCEL_NEW.x=estadoCivilJsfBeanForm%3Atoolbar1CANCEL_NEW&estadoCivilJsfBeanForm%3Aj_id_jsp_872141097_7=estadoCivilJsfBeanForm%3Aj_id_jsp_872141097_7&
debug[13:28:26,852]: Request state : 1
debug[13:28:26,863]: Have Event [object Object] with properties: target: [object HTMLInputElement], srcElement: undefined, type: click
debug[13:28:26,863]: Query preparation for form 'estadoCivilJsfBeanForm' requested
debug[13:28:26,863]: Append hidden control estadoCivilJsfBeanForm with value [estadoCivilJsfBeanForm] and value attribute [estadoCivilJsfBeanForm]
debug[13:28:26,863]: Append hidden control estadoCivilJsfBeanForm:hdPrimariKey with value [] and value attribute [null]
debug[13:28:26,863]: Append text control estadoCivilJsfBeanForm:codigo with value [] and value attribute [null]
debug[13:28:26,864]: Append textarea control estadoCivilJsfBeanForm:descricao with value [] and value attribute [null]
debug[13:28:26,864]: Append hidden control estadoCivilJsfBeanForm:toolbar1SEARCHPopup with value [] and value attribute []
debug[13:28:26,864]: Append hidden control javax.faces.ViewState with value [j_id4] and value attribute [j_id4]
debug[13:28:26,864]: parameter estadoCivilJsfBeanForm:toolbar1CANCEL_NEW.x with value estadoCivilJsfBeanForm:toolbar1CANCEL_NEW
debug[13:28:26,864]: parameter estadoCivilJsfBeanForm:j_id_jsp_872141097_7 with value estadoCivilJsfBeanForm:j_id_jsp_872141097_7
debug[13:28:26,864]: Look up queue with default name
debug[13:28:26,864]: NEW AJAX REQUEST !!! with form: estadoCivilJsfBeanForm
debug[13:28:26,865]: Start XmlHttpRequest
debug[13:28:26,865]: Request state : 1
debug[13:28:26,865]: QueryString: AJAXREQUEST=j_id_jsp_872141097_0&estadoCivilJsfBeanForm=estadoCivilJsfBeanForm&estadoCivilJsfBeanForm%3AhdPrimariKey=&estadoCivilJsfBeanForm%3Acodigo=&estadoCivilJsfBeanForm%3Adescricao=&estadoCivilJsfBeanForm%3Atoolbar1SEARCHPopup=&javax.faces.ViewState=j_id4&estadoCivilJsfBeanForm%3Atoolbar1CANCEL_NEW.x=estadoCivilJsfBeanForm%3Atoolbar1CANCEL_NEW&estadoCivilJsfBeanForm%3Aj_id_jsp_872141097_7=estadoCivilJsfBeanForm%3Aj_id_jsp_872141097_7&
debug[13:28:26,867]: Request state : 1
debug[13:28:26,889]: Request state : 2
debug[13:28:26,890]: Request state : 4
debug[13:28:26,890]: Request end with state 4
error[13:28:26,890]: request don't have status code - network problem, Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE) [nsIXMLHttpRequest.statusText]
error[13:28:26,890]: Request error, status : 599 Network error
debug[13:28:26,890]: No parsed XML document in response
debug[13:28:26,890]: Processing updates finished, no oncomplete function to call
debug[13:28:26,891]: Request state : 2
debug[13:28:26,891]: Request state : 4
debug[13:28:26,891]: Request end with state 4
[b]error[13:28:26,891]: request don't have status code - network problem, Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE) [nsIXMLHttpRequest.statusText][/b]
error[13:28:26,891]: Request error, status : 599 Network error
debug[13:28:26,891]: No parsed XML document in response
debug[13:28:26,892]: Processing updates finished, no oncomplete function to call
debug[13:28:26,892]: Request state : 2
debug[13:28:26,892]: Request state : 4
debug[13:28:26,892]: Request end with state 4
[b]error[13:28:26,892]: request don't have status code - network problem, Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE) [nsIXMLHttpRequest.statusText][/b]
error[13:28:26,893]: Request error, status : 599 Network error
debug[13:28:26,893]: No parsed XML document in response
debug[13:28:26,893]: Processing updates finished, no oncomplete function to call
debug[13:28:26,893]: Request state : 2
debug[13:28:26,893]: Request state : 4
debug[13:28:26,893]: Request end with state 4
error[13:28:26,894]: request don't have status code - network problem, Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE) [nsIXMLHttpRequest.statusText]
error[13:28:26,894]: Request error, status : 599 Network error
debug[13:28:26,894]: No parsed XML document in response
debug[13:28:26,894]: Processing updates finished, no oncomplete function to call
Alguém já teve esse problema ??
Agradeço se alguém puder ajudar.
Abraço,
Fred