-
1. Re: Can't use oncomplete with IE6
nbelaevski Nov 16, 2008 4:29 PM (in response to hwoarang)Hello,
Please add<a4j:log popup="false" />
to the page, press button and post log here. -
2. Re: Can't use oncomplete with IE6
hwoarang Nov 16, 2008 7:45 PM (in response to hwoarang)Hi nbelaevski! sorry for the long post, but the log is long... :)
Below is the log, when I click the buttom on IE.
I noticed error message on final, but cant figure out what it is...
When I hit the buttom using Firefox, there's not error message, only debug messages.
Thank you!debug[22:36:10,918]: Have Event [object Object] with properties: target: undefined, srcElement: [object], type: click debug[22:36:10,918]: NEW AJAX REQUEST !!! with form :formulario debug[22:36:10,919]: Append hidden control formulario with value [formulario] and value attribute [formulario] debug[22:36:10,920]: Append text control formulario:j_id63 with value [] and value attribute [] debug[22:36:10,921]: Append text control formulario:j_id67 with value [] and value attribute [] debug[22:36:10,921]: Append select-one control formulario:j_id71 with value [] and value attribute [] debug[22:36:10,923]: Append hidden control formulario:id with value [0] and value attribute [0] debug[22:36:10,924]: Append text control formulario:sigla with value [] and value attribute [] debug[22:36:10,924]: Append text control formulario:descricao with value [] and value attribute [] debug[22:36:10,925]: Append hidden control javax.faces.ViewState with value [j_id6] and value attribute [j_id6] debug[22:36:10,926]: parameter formulario:j_id77 with value formulario:j_id77 debug[22:36:10,936]: Start XmlHttpRequest debug[22:36:10,937]: Reqest state : 1 debug[22:36:10,938]: QueryString: AJAXREQUEST=_viewRoot&formulario=formulario&formulario%3Aj_id63=&formulario%3Aj_id67=&formulario%3Aj_id71=&formulario%3Aid=0&formulario%3Asigla=&formulario%3Adescricao=&javax.faces.ViewState=j_id6&formulario%3Aj_id77=formulario%3Aj_id77& debug[22:36:11,126]: Reqest state : 2 debug[22:36:11,128]: Reqest state : 3 debug[22:36:11,130]: Reqest state : 4 debug[22:36:11,130]: Reqest end with state 4 debug[22:36:11,131]: Response with content-type: text/xml;charset=UTF-8 debug[22:36:11,131]: Full response content: <?xml version="1.0"?> <html xmlns="http://www.w3.org/1999/xhtml"><head><title></title><link class="component" rel="stylesheet" type="text/css" href="/Certificado/a4j/s/3_2_2.GAorg/richfaces/renderkit/html/css/basic_classes.xcss/DATB/eAF7sqpgb-jyGdIAFrMEaw__.jsf" /><link class="component" rel="stylesheet" type="text/css" href="/Certificado/a4j/s/3_2_2.GAorg/richfaces/renderkit/html/css/extended_classes.xcss/DATB/eAF7sqpgb-jyGdIAFrMEaw__.jsf" media="rich-extended-skinning" /><script type="text/javascript" src="/Certificado/a4j/g/3_2_2.GAorg.ajax4jsf.javascript.AjaxScript.jsf"> </script><script type="text/javascript" src="/Certificado/a4j/g/3_2_2.GAorg.ajax4jsf.javascript.PrototypeScript.jsf"> </script><script type="text/javascript" src="/Certificado/a4j/g/3_2_2.GAorg/richfaces/renderkit/html/scripts/utils.js.jsf"> </script><script type="text/javascript" src="/Certificado/a4j/g/3_2_2.GAorg/richfaces/renderkit/html/scripts/browser_info.js.jsf"> </script><script type="text/javascript" src="/Certificado/a4j/g/3_2_2.GAorg/richfaces/renderkit/html/scripts/modalPanel.js.jsf"> </script><script type="text/javascript" src="/Certificado/a4j/g/3_2_2.GAorg/richfaces/renderkit/html/scripts/modalPanelBorders.js.jsf"> </script><link class="component" rel="stylesheet" type="text/css" href="/Certificado/a4j/s/3_2_2.GAorg/richfaces/renderkit/html/css/modalPanel.xcss/DATB/eAF7sqpgb-jyGdIAFrMEaw__.jsf" /><link class="component" rel="stylesheet" type="text/css" href="/Certificado/a4j/s/3_2_2.GAcss/panel.xcss/DATB/eAF7sqpgb-jyGdIAFrMEaw__.jsf" /><script type="text/javascript" src="/Certificado/a4j/g/3_2_2.GAorg/richfaces/renderkit/html/scripts/data-table.js.jsf"> </script><link class="component" rel="stylesheet" type="text/css" href="/Certificado/a4j/s/3_2_2.GAcss/table.xcss/DATB/eAF7sqpgb-jyGdIAFrMEaw__.jsf" /><link class="component" rel="stylesheet" type="text/css" href="/Certificado/a4j/s/3_2_2.GAcss/datascroller.xcss/DATB/eAF7sqpgb-jyGdIAFrMEaw__.jsf" /><link class="component" rel="stylesheet" type="text/css" href="/Certificado/a4j/g/3_2_2.GAorg/richfaces/renderkit/html/css/msg.css.jsf" /><link class="component" rel="stylesheet" type="text/css" href="/Certificado/a4j/g/3_2_2.GAorg/richfaces/renderkit/html/css/msgs.css.jsf" /><script type="text/javascript" src="/Certificado/a4j/g/3_2_2.GAorg/richfaces/renderkit/html/scripts/skinning.js.jsf"> </script></head><body><div id="mymodal" style="display: none;"><input id="mymodalOpenedState" name="mymodalOpenedState" type="hidden" /><div class="rich-modalpanel" id="mymodalContainer" style="position: absolute; display: none; z-index: 100; background-color: inherit;"><div class="dr-mpnl-mask-div dr-mpnl-mask-div-opaque rich-mpnl-mask-div" id="mymodalDiv" style="z-index: 1;"><button class="dr-mpnl-pnl-button" id="mymodalFirstHref"></button></div><div class="dr-mpnl-panel rich-mpnl_panel"><div id="mymodalCDiv" style="position: absolute; left: 0px; top: 0px; z-index: 9;"><div class="dr-mpnl-shadow rich-mpnl-shadow" id="mymodalShadowDiv"></div><div class="dr-mpnl-pnl rich-mp-content" id="mymodalContentDiv"><div class="dr-mpnl-pnl-text rich-mpnl-text rich-mpnl-controls"><img src="imagens/error.gif" /></div><table border="0" cellpadding="0" cellspacing="0" id="mymodalContentTable" style="width: 600px;height: 400px;"><tbody><tr style="height: 1%;"><td class="dr-mpnl-header rich-mpnl-header-cell"><div class="dr-mpnl-pnl-text dr-mpnl-pnl-h rich-mpnl-text rich-mpnl-header" id="mymodalHeader" style="white-space: nowrap;">Selecione um item</div></td></tr><tr style="height: 99%"><td class="dr-mpnl-pnl-b rich-mpnl-body" valign="top"><form id="formModalSelecionarItem" name="formModalSelecionarItem" method="post" action="/Certificado/ManterPessoa.jsf" enctype="application/x-www-form-urlencoded"><input type="hidden" name="formModalSelecionarItem" value="formModalSelecionarItem" /> <center><div class="dr-pnl rich-panel" id="formModalSelecionarItem:j_id12" style="width:720px; height: 310px;"><div class="dr-pnl-b rich-panel-body" id="formModalSelecionarItem:j_id12_body"><table cellpadding="0" cellspacing="0" width="700"><tbody><tr><td><table class="dr-table rich-table" id="formModalSelecionarItem:table" style="heigth: 700px;" align="center" border="0" cellpadding="0" cellspacing="0" width="680"><colgroup span="3"></colgroup><thead class="dr-table-thead"><tr class="dr-table-header rich-table-header"><th class="dr-table-headercell rich-table-headercell" colspan="3" scope="colgroup">Registros encontrados</th></tr><tr class="dr-table-subheader rich-table-subheader"><th class="dr-table-subheadercell rich-table-subheadercell" scope="col" id="formModalSelecionarItem:table:j_id15header" onclick="A4J.AJAX.Submit('_viewRoot','formModalSelecionarItem',event,{'parameters':{'formModalSelecionarItem:table':'fsp','fsp':'formModalSelecionarItem:table:j_id15'} ,'actionUrl':'/Certificado/ManterPessoa.jsf'} )" style="cursor: pointer;"><div id="formModalSelecionarItem:table:j_id15header:sortDiv"><span class="dr-table-sortable-header">Sigla<img src="/Certificado/a4j/g/3_2_2.GAorg.richfaces.renderkit.html.iconimages.DataTableIconSortNone/DATB/eAFjYGD4!!8!AAYAAv4_.jsf" width="15" height="15" class="dr-table-header-sort-img rich-sort-icon" /></span></div></th><th class="dr-table-subheadercell rich-table-subheadercell" scope="col" id="formModalSelecionarItem:table:j_id18header" onclick="A4J.AJAX.Submit('_viewRoot','formModalSelecionarItem',event,{'parameters':{'formModalSelecionarItem:table':'fsp','fsp':'formModalSelecionarItem:table:j_id18'} ,'actionUrl':'/Certificado/ManterPessoa.jsf'} )" style="cursor: pointer;"><div id="formModalSelecionarItem:table:j_id18header:sortDiv"><span class="dr-table-sortable-header">Descrição<img src="/Certificado/a4j/g/3_2_2.GAorg.richfaces.renderkit.html.iconimages.DataTableIconSortNone/DATB/eAFjYGD4!!8!AAYAAv4_.jsf" width="15" height="15" class="dr-table-header-sort-img rich-sort-icon" /></span></div></th><th class="dr-table-subheadercell rich-table-subheadercell" scope="col" id="formModalSelecionarItem:table:j_id21header"><div id="formModalSelecionarItem:table:j_id21header:sortDiv"></div></th></tr></thead><tbody id="formModalSelecionarItem:table:tb"><tr class="dr-table-firstrow rich-table-firstrow"><td class="dr-table-cell rich-table-cell" id="formModalSelecionarItem:table:0:j_id15" width="20%">1 JUIZADO</td><td class="dr-table-cell rich-table-cell" id="formModalSelecionarItem:table:0:j_id18" width="75%">PRIMEIRO JUIZADO</td><td class="dr-table-cell rich-table-cell" id="formModalSelecionarItem:table:0:j_id21" width="5%"><a href="#" id="formModalSelecionarItem:table:0:j_id23" name="formModalSelecionarItem:table:0:j_id23" onclick="A4J.AJAX.Submit('_viewRoot','formModalSelecionarItem',event,{'oncomplete':function(request,event,data){Richfaces.hideModalPanel('mymodal');},'parameters':{'formModalSelecionarItem:table:0:j_id23':'formModalSelecionarItem:table:0:j_id23','paramDesc':'PRIMEIRO JUIZADO','paramId':'7','paramSigla':'1 JUIZADO'} ,'actionUrl':'/Certificado/ManterPessoa.jsf'} );return false;" style="text-decoration: none; border: none"><img src="/Certificado/imagens/selecionar.gif" style="text-decoration: none; border: none" title="selecionar registro" /></a></td></tr><tr class="dr-table-firstrow rich-table-firstrow"><td class="dr-table-cell rich-table-cell" id="formModalSelecionarItem:table:1:j_id15" width="20%">1 VARA</td><td class="dr-table-cell rich-table-cell" id="formModalSelecionarItem:table:1:j_id18" width="75%">PRIMEIRA VARA</td><td class="dr-table-cell rich-table-cell" id="formModalSelecionarItem:table:1:j_id21" width="5%"><a href="#" id="formModalSelecionarItem:table:1:j_id23" name="formModalSelecionarItem:table:1:j_id23" onclick="A4J.AJAX.Submit('_viewRoot','formModalSelecionarItem',event,{'oncomplete':function(request,event,data){Richfaces.hideModalPanel('mymodal');},'parameters':{'formModalSelecionarItem:table:1:j_id23':'formModalSelecionarItem:table:1:j_id23','paramDesc':'PRIMEIRA VARA','paramId':'9','paramSigla':'1 VARA'} ,'actionUrl':'/Certificado/ManterPessoa.jsf'} );return false;" style="text-decoration: none; border: none"><img src="/Certificado/imagens/selecionar.gif" style="text-decoration: none; border: none" title="selecionar registro" /></a></td></tr><tr class="dr-table-firstrow rich-table-firstrow"><td class="dr-table-cell rich-table-cell" id="formModalSelecionarItem:table:2:j_id15" width="20%">1234567890</td><td class="dr-table-cell rich-table-cell" id="formModalSelecionarItem:table:2:j_id18" width="75%">1º Juizado Especial Criminal de Ceilândia</td><td class="dr-table-cell rich-table-cell" id="formModalSelecionarItem:table:2:j_id21" width="5%"><a href="#" id="formModalSelecionarItem:table:2:j_id23" name="formModalSelecionarItem:table:2:j_id23" onclick="A4J.AJAX.Submit('_viewRoot','formModalSelecionarItem',event,{'oncomplete':function(request,event,data){Richfaces.hideModalPanel('mymodal');},'parameters':{'formModalSelecionarItem:table:2:j_id23':'formModalSelecionarItem:table:2:j_id23','paramDesc':'1º Juizado Especial Criminal de Ceilândia','paramId':'48','paramSigla':'1234567890'} ,'actionUrl':'/Certificado/ManterPessoa.jsf'} );return false;" style="text-decoration: none; border: none"><img src="/Certificado/imagens/selecionar.gif" style="text-decoration: none; border: none" title="selecionar registro" /></a></td></tr><tr class="dr-table-firstrow rich-table-firstrow"><td class="dr-table-cell rich-table-cell" id="formModalSelecionarItem:table:3:j_id15" width="20%">2 JUIZADO</td><td class="dr-table-cell rich-table-cell" id="formModalSelecionarItem:table:3:j_id18" width="75%">SEGUNDO JUIZADO</td><td class="dr-table-cell rich-table-cell" id="formModalSelecionarItem:table:3:j_id21" width="5%"><a href="#" id="formModalSelecionarItem:table:3:j_id23" name="formModalSelecionarItem:table:3:j_id23" onclick="A4J.AJAX.Submit('_viewRoot','formModalSelecionarItem',event,{'oncomplete':function(request,event,data){Richfaces.hideModalPanel('mymodal');},'parameters':{'formModalSelecionarItem:table:3:j_id23':'formModalSelecionarItem:table:3:j_id23','paramDesc':'SEGUNDO JUIZADO','paramId':'8','paramSigla':'2 JUIZADO'} ,'actionUrl':'/Certificado/ManterPessoa.jsf'} );return false;" style="text-decoration: none; border: none"><img src="/Certificado/imagens/selecionar.gif" style="text-decoration: none; border: none" title="selecionar registro" /></a></td></tr><tr class="dr-table-firstrow rich-table-firstrow"><td class="dr-table-cell rich-table-cell" id="formModalSelecionarItem:table:4:j_id15" width="20%">2 VARA</td><td class="dr-table-cell rich-table-cell" id="formModalSelecionarItem:table:4:j_id18" width="75%">SEGUNDA VARA</td><td class="dr-table-cell rich-table-cell" id="formModalSelecionarItem:table:4:j_id21" width="5%"><a href="#" id="formModalSelecionarItem:table:4:j_id23" name="formModalSelecionarItem:table:4:j_id23" onclick="A4J.AJAX.Submit('_viewRoot','formModalSelecionarItem',event,{'oncomplete':function(request,event,data){Richfaces.hideModalPanel('mymodal');},'parameters':{'formModalSelecionarItem:table:4:j_id23':'formModalSelecionarItem:table:4:j_id23','paramDesc':'SEGUNDA VARA','paramId':'10','paramSigla':'2 VARA'} ,'actionUrl':'/Certificado/ManterPessoa.jsf'} );return false;" style="text-decoration: none; border: none"><img src="/Certificado/imagens/selecionar.gif" style="text-decoration: none; border: none" title="selecionar registro" /></a></td></tr><tr class="dr-table-firstrow rich-table-firstrow"><td class="dr-table-cell rich-table-cell" id="formModalSelecionarItem:table:5:j_id15" width="20%">3 VARA</td><td class="dr-table-cell rich-table-cell" id="formModalSelecionarItem:table:5:j_id18" width="75%">TERCEIRA VARA</td><td class="dr-table-cell rich-table-cell" id="formModalSelecionarItem:table:5:j_id21" width="5%"><a href="#" id="formModalSelecionarItem:table:5:j_id23" name="formModalSelecionarItem:table:5:j_id23" onclick="A4J.AJAX.Submit('_viewRoot','formModalSelecionarItem',event,{'oncomplete':function(request,event,data){Richfaces.hideModalPanel('mymodal');},'parameters':{'paramDesc':'TERCEIRA VARA','paramId':'11','formModalSelecionarItem:table:5:j_id23':'formModalSelecionarItem:table:5:j_id23','paramSigla':'3 VARA'} ,'actionUrl':'/Certificado/ManterPessoa.jsf'} );return false;" style="text-decoration: none; border: none"><img src="/Certificado/imagens/selecionar.gif" style="text-decoration: none; border: none" title="selecionar registro" /></a></td></tr><tr class="dr-table-firstrow rich-table-firstrow"><td class="dr-table-cell rich-table-cell" id="formModalSelecionarItem:table:6:j_id15" width="20%">ASDF</td><td class="dr-table-cell rich-table-cell" id="formModalSelecionarItem:table:6:j_id18" width="75%">asdf</td><td class="dr-table-cell rich-table-cell" id="formModalSelecionarItem:table:6:j_id21" width="5%"><a href="#" id="formModalSelecionarItem:table:6:j_id23" name="formModalSelecionarItem:table:6:j_id23" onclick="A4J.AJAX.Submit('_viewRoot','formModalSelecionarItem',event,{'oncomplete':function(request,event,data){Richfaces.hideModalPanel('mymodal');},'parameters':{'paramDesc':'asdf','paramId':'55','paramSigla':'ASDF','formModalSelecionarItem:table:6:j_id23':'formModalSelecionarItem:table:6:j_id23'} ,'actionUrl':'/Certificado/ManterPessoa.jsf'} );return false;" style="text-decoration: none; border: none"><img src="/Certificado/imagens/selecionar.gif" style="text-decoration: none; border: none" title="selecionar registro" /></a></td></tr><tr class="dr-table-firstrow rich-table-firstrow"><td class="dr-table-cell rich-table-cell" id="formModalSelecionarItem:table:7:j_id15" width="20%">ESAWW</td><td class="dr-table-cell rich-table-cell" id="formModalSelecionarItem:table:7:j_id18" width="75%">asdfasdfadfads</td><td class="dr-table-cell rich-table-cell" id="formModalSelecionarItem:table:7:j_id21" width="5%"><a href="#" id="formModalSelecionarItem:table:7:j_id23" name="formModalSelecionarItem:table:7:j_id23" onclick="A4J.AJAX.Submit('_viewRoot','formModalSelecionarItem',event,{'oncomplete':function(request,event,data){Richfaces.hideModalPanel('mymodal');},'parameters':{'formModalSelecionarItem:table:7:j_id23':'formModalSelecionarItem:table:7:j_id23','paramDesc':'asdfasdfadfads','paramId':'56','paramSigla':'ESAWW'} ,'actionUrl':'/Certificado/ManterPessoa.jsf'} );return false;" style="text-decoration: none; border: none"><img src="/Certificado/imagens/selecionar.gif" style="text-decoration: none; border: none" title="selecionar registro" /></a></td></tr><tr class="dr-table-firstrow rich-table-firstrow"><td class="dr-table-cell rich-table-cell" id="formModalSelecionarItem:table:8:j_id15" width="20%">SERASI</td><td class="dr-table-cell rich-table-cell" id="formModalSelecionarItem:table:8:j_id18" width="75%">Serviço de Atendimento aos Sistemas Institucionais</td><td class="dr-table-cell rich-table-cell" id="formModalSelecionarItem:table:8:j_id21" width="5%"><a href="#" id="formModalSelecionarItem:table:8:j_id23" name="formModalSelecionarItem:table:8:j_id23" onclick="A4J.AJAX.Submit('_viewRoot','formModalSelecionarItem',event,{'oncomplete':function(request,event,data){Richfaces.hideModalPanel('mymodal');},'parameters':{'paramDesc':'Serviço de Atendimento aos Sistemas Institucionais','paramId':'1','formModalSelecionarItem:table:8:j_id23':'formModalSelecionarItem:table:8:j_id23','paramSigla':'SERASI'} ,'actionUrl':'/Certificado/ManterPessoa.jsf'} );return false;" style="text-decoration: none; border: none"><img src="/Certificado/imagens/selecionar.gif" style="text-decoration: none; border: none" title="selecionar registro" /></a></td></tr><tr class="dr-table-firstrow rich-table-firstrow"><td class="dr-table-cell rich-table-cell" id="formModalSelecionarItem:table:9:j_id15" width="20%">SETI</td><td class="dr-table-cell rich-table-cell" id="formModalSelecionarItem:table:9:j_id18" width="75%">Superintedência de Tecnologia</td><td class="dr-table-cell rich-table-cell" id="formModalSelecionarItem:table:9:j_id21" width="5%"><a href="#" id="formModalSelecionarItem:table:9:j_id23" name="formModalSelecionarItem:table:9:j_id23" onclick="A4J.AJAX.Submit('_viewRoot','formModalSelecionarItem',event,{'oncomplete':function(request,event,data){Richfaces.hideModalPanel('mymodal');},'parameters':{'formModalSelecionarItem:table:9:j_id23':'formModalSelecionarItem:table:9:j_id23','paramDesc':'Superintedência de Tecnologia','paramId':'51','paramSigla':'SETI'} ,'actionUrl':'/Certificado/ManterPessoa.jsf'} );return false;" style="text-decoration: none; border: none"><img src="/Certificado/imagens/selecionar.gif" style="text-decoration: none; border: none" title="selecionar registro" /></a></td></tr></tbody></table></td></tr></tbody></table></div></div><div class="dr-dscr rich-datascr" id="formModalSelecionarItem:j_id28" style="" align="center"><table align="center" border="0" cellpadding="0" cellspacing="1" class="dr-dscr-t rich-dtascroller-table" id="formModalSelecionarItem:j_id28_table"><tbody><tr><td class="dr-dscr-button-dsbld rich-datascr-button-dsbld dr-dscr-button rich-datascr-button">««</td><td class="dr-dscr-button-dsbld rich-datascr-button-dsbld dr-dscr-button rich-datascr-button">«</td><td class="dr-dscr-button-dsbld rich-datascr-button-dsbld dr-dscr-button rich-datascr-button"></td><td class="dr-dscr-act rich-datascr-act">1</td><td class="dr-dscr-inact rich-datascr-inact" onclick="Event.fire(this, 'rich:datascroller:onscroll', {'page': '2'});">2</td><td class=" dr-dscr-button rich-datascr-button" onclick="Event.fire(this, 'rich:datascroller:onscroll', {'page': 'next'});"></td><td class=" dr-dscr-button rich-datascr-button" onclick="Event.fire(this, 'rich:datascroller:onscroll', {'page': 'fastforward'});">»</td><td class=" dr-dscr-button rich-datascr-button" onclick="Event.fire(this, 'rich:datascroller:onscroll', {'page': 'last'});">»»</td></tr></tbody></table><script type="text/javascript">//<![CDATA[ Event.observe('formModalSelecionarItem:j_id28', 'rich:datascroller:onscroll', function(event){A4J.AJAX.Submit('_viewRoot','formModalSelecionarItem',event,{'ignoreDupResponses':true,'parameters':{'formModalSelecionarItem:j_id28':event.memo.page,'ajaxSingle':'formModalSelecionarItem:j_id28'} ,'eventsQueue':'formModalSelecionarItem:j_id28','actionUrl':'/Certificado/ManterPessoa.jsf'} ); return false;}); //]]> </script></div><input id="formModalSelecionarItem:j_id30" name="formModalSelecionarItem:j_id30" onclick="A4J.AJAX.Submit('_viewRoot','formModalSelecionarItem',event,{'oncomplete':function(request,event,data){Richfaces.hideModalPanel('mymodal');},'parameters':{'paramSiglaCancel':'','paramIdCancel':'0','formModalSelecionarItem:j_id30':'formModalSelecionarItem:j_id30','paramDescricaoCancel':''} ,'actionUrl':'/Certificado/ManterPessoa.jsf'} );return false;" value="Cancelar" type="button" /></center><input type="hidden" name="javax.faces.ViewState" id="javax.faces.ViewState" value="j_id6" /></form></td></tr></tbody></table></div></div></div><div class="dr-mpnl-mask-div dr-mpnl-mask-div-transparent rich-mpnl-mask-div" id="mymodalCursorDiv" style="z-index: -200;"><button class="dr-mpnl-pnl-button" id="mymodalLastHref"></button></div><script type="text/javascript">//<![CDATA[ new ModalPanel('mymodal', { width: -1, height: -1, minWidth: 600, minHeight: 400, resizeable: false, moveable: true, left: "auto", top: "auto", zindex: 100,onresize: '',onmove: '',onshow: '',onhide: '',onbeforeshow: '',onbeforehide: '', keepVisualState: false, showWhenRendered: false, selectBehavior: "disable", autosized: true});//]]> </script></div><script type="text/javascript"> </script></div><dl id="formModalMensagens:j_id41" class="rich-messages" style="display: none; null"><dt><span class="rich-messages-label"></span></dt></dl><meta name="Ajax-Update-Ids" content="mymodal,formModalSelecionarItem:table:j_id15header:sortDiv,formModalSelecionarItem:table:j_id18header:sortDiv,formModalSelecionarItem:table:j_id21header:sortDiv,formModalMensagens:j_id41" /><span id="ajax-view-state"><input type="hidden" name="javax.faces.ViewState" id="javax.faces.ViewState" value="j_id6" /></span><meta id="Ajax-Response" name="Ajax-Response" content="true" /><span id="org.ajax4jsf.oncomplete">Richfaces.showModalPanel('mymodal'); return false;</span></body></html> debug[22:36:11,134]: Header Ajax-Expired not found, search in <meta> debug[22:36:11,135]: search for elements by name 'meta' in element #document debug[22:36:11,136]: Find <meta name='Ajax-Update-Ids' content='mymodal,formModalSelecionarItem:table:j_id15header:sortDiv,formModalSelecionarItem:table:j_id18header:sortDiv,formModalSelecionarItem:table:j_id21header:sortDiv,formModalMensagens:j_id41'> debug[22:36:11,136]: Find <meta name='Ajax-Response' content='true'> debug[22:36:11,137]: Header Ajax-Update-Ids not found, search in <meta> debug[22:36:11,137]: search for elements by name 'meta' in element #document debug[22:36:11,138]: Find <meta name='Ajax-Update-Ids' content='mymodal,formModalSelecionarItem:table:j_id15header:sortDiv,formModalSelecionarItem:table:j_id18header:sortDiv,formModalSelecionarItem:table:j_id21header:sortDiv,formModalMensagens:j_id41'> debug[22:36:11,139]: Update page by list of rendered areas from response mymodal,formModalSelecionarItem:table:j_id15header:sortDiv,formModalSelecionarItem:table:j_id18header:sortDiv,formModalSelecionarItem:table:j_id21header:sortDiv,formModalMensagens:j_id41 debug[22:36:11,140]: search for elements by name 'script' in element #document debug[22:36:11,140]: <script> in response with src=/Certificado/a4j/g/3_2_2.GAorg.ajax4jsf.javascript.AjaxScript.jsf debug[22:36:11,141]: Such element exist in document debug[22:36:11,141]: <script> in response with src=/Certificado/a4j/g/3_2_2.GAorg.ajax4jsf.javascript.PrototypeScript.jsf debug[22:36:11,142]: Such element exist in document debug[22:36:11,143]: <script> in response with src=/Certificado/a4j/g/3_2_2.GAorg/richfaces/renderkit/html/scripts/utils.js.jsf debug[22:36:11,143]: Such element exist in document debug[22:36:11,144]: <script> in response with src=/Certificado/a4j/g/3_2_2.GAorg/richfaces/renderkit/html/scripts/browser_info.js.jsf debug[22:36:11,144]: Such element exist in document debug[22:36:11,145]: <script> in response with src=/Certificado/a4j/g/3_2_2.GAorg/richfaces/renderkit/html/scripts/modalPanel.js.jsf debug[22:36:11,146]: Such element exist in document debug[22:36:11,147]: <script> in response with src=/Certificado/a4j/g/3_2_2.GAorg/richfaces/renderkit/html/scripts/modalPanelBorders.js.jsf debug[22:36:11,147]: Such element exist in document debug[22:36:11,148]: <script> in response with src=/Certificado/a4j/g/3_2_2.GAorg/richfaces/renderkit/html/scripts/data-table.js.jsf debug[22:36:11,149]: Such element exist in document debug[22:36:11,149]: <script> in response with src=/Certificado/a4j/g/3_2_2.GAorg/richfaces/renderkit/html/scripts/skinning.js.jsf debug[22:36:11,150]: Such element exist in document debug[22:36:11,151]: search for elements by name 'link' in element #document debug[22:36:11,152]: <link> in response with src=/Certificado/a4j/s/3_2_2.GAorg/richfaces/renderkit/html/css/basic_classes.xcss/DATB/eAF7sqpgb-jyGdIAFrMEaw__.jsf debug[22:36:11,153]: Such element exist in document debug[22:36:11,153]: <link> in response with src=/Certificado/a4j/s/3_2_2.GAorg/richfaces/renderkit/html/css/extended_classes.xcss/DATB/eAF7sqpgb-jyGdIAFrMEaw__.jsf debug[22:36:11,154]: Such element exist in document debug[22:36:11,155]: <link> in response with src=/Certificado/a4j/s/3_2_2.GAorg/richfaces/renderkit/html/css/modalPanel.xcss/DATB/eAF7sqpgb-jyGdIAFrMEaw__.jsf debug[22:36:11,156]: Such element exist in document debug[22:36:11,156]: <link> in response with src=/Certificado/a4j/s/3_2_2.GAcss/panel.xcss/DATB/eAF7sqpgb-jyGdIAFrMEaw__.jsf debug[22:36:11,157]: Such element exist in document debug[22:36:11,158]: <link> in response with src=/Certificado/a4j/s/3_2_2.GAcss/table.xcss/DATB/eAF7sqpgb-jyGdIAFrMEaw__.jsf debug[22:36:11,159]: Such element exist in document debug[22:36:11,159]: <link> in response with src=/Certificado/a4j/s/3_2_2.GAcss/datascroller.xcss/DATB/eAF7sqpgb-jyGdIAFrMEaw__.jsf debug[22:36:11,160]: Such element exist in document debug[22:36:11,161]: <link> in response with src=/Certificado/a4j/g/3_2_2.GAorg/richfaces/renderkit/html/css/msg.css.jsf debug[22:36:11,161]: Such element exist in document debug[22:36:11,163]: <link> in response with src=/Certificado/a4j/g/3_2_2.GAorg/richfaces/renderkit/html/css/msgs.css.jsf debug[22:36:11,163]: Such element exist in document debug[22:36:11,164]: Update page part from call parameter for ID mymodal debug[22:36:11,165]: call selectSingleNode for id= mymodal debug[22:36:11,174]: Replace content of node by outerHTML() debug[22:36:11,184]: search for elements by name 'script' in element div debug[22:36:11,185]: Scripts in updated part count : 3 debug[22:36:11,186]: Update part of page for Id: mymodal successful debug[22:36:11,186]: Update page part from call parameter for ID formModalSelecionarItem:table:j_id15header:sortDiv debug[22:36:11,186]: call selectSingleNode for id= formModalSelecionarItem:table:j_id15header:sortDiv debug[22:36:11,188]: Replace content of node by outerHTML() debug[22:36:11,189]: search for elements by name 'script' in element div debug[22:36:11,189]: Scripts in updated part count : 0 debug[22:36:11,190]: Update part of page for Id: formModalSelecionarItem:table:j_id15header:sortDiv successful debug[22:36:11,190]: Update page part from call parameter for ID formModalSelecionarItem:table:j_id18header:sortDiv debug[22:36:11,191]: call selectSingleNode for id= formModalSelecionarItem:table:j_id18header:sortDiv debug[22:36:11,192]: Replace content of node by outerHTML() debug[22:36:11,193]: search for elements by name 'script' in element div debug[22:36:11,193]: Scripts in updated part count : 0 debug[22:36:11,194]: Update part of page for Id: formModalSelecionarItem:table:j_id18header:sortDiv successful debug[22:36:11,194]: Update page part from call parameter for ID formModalSelecionarItem:table:j_id21header:sortDiv debug[22:36:11,195]: call selectSingleNode for id= formModalSelecionarItem:table:j_id21header:sortDiv debug[22:36:11,196]: Replace content of node by outerHTML() debug[22:36:11,197]: search for elements by name 'script' in element div debug[22:36:11,197]: Scripts in updated part count : 0 debug[22:36:11,198]: Update part of page for Id: formModalSelecionarItem:table:j_id21header:sortDiv successful debug[22:36:11,198]: Update page part from call parameter for ID formModalMensagens:j_id41 debug[22:36:11,199]: call selectSingleNode for id= formModalMensagens:j_id41 debug[22:36:11,200]: Replace content of node by outerHTML() error[22:36:11,201]: Error to clear node content by innerHTML Erro em tempo de execução desconhecido debug[22:36:11,214]: Evaluate script replaced area in document: // Event.observe('formModalSelecionarItem:j_id28', 'rich:datascroller:onscroll', function(event){A4J.AJAX.Submit('_viewRoot','formModalSelecionarItem',event,{'ignoreDupResponses':true,'parameters':{'formModalSelecionarItem:j_id28':event.memo.page,'ajaxSingle':'formModalSelecionarItem:j_id28'} ,'eventsQueue':'formModalSelecionarItem:j_id28','actionUrl':'/Certificado/ManterPessoa.jsf'} ); return false;}); // debug[22:36:11,217]: Evaluate script replaced area in document: // new ModalPanel('mymodal', { width: -1, height: -1, minWidth: 600, minHeight: 400, resizeable: false, moveable: true, left: "auto", top: "auto", zindex: 100,onresize: '',onmove: '',onshow: '',onhide: '',onbeforeshow: '',onbeforehide: '', keepVisualState: false, showWhenRendered: false, selectBehavior: "disable", autosized: true});// debug[22:36:11,227]: Evaluate script replaced area in document: error[22:36:11,227]: . Error message: Argumento inválido.
-
3. Re: Can't use oncomplete with IE6
ilya_shaikovsky Nov 17, 2008 5:43 AM (in response to hwoarang)please paste also not only the buttons code but whole page code where the proble occurs...
-
4. Re: Can't use oncomplete with IE6
hwoarang Nov 17, 2008 9:56 AM (in response to hwoarang)"ilya_shaikovsky" wrote:
please paste also not only the buttons code but whole page code where the proble occurs...
Sorry Ilya. I didn't understood that I should post the page too.
@nbelaevski:
This is the same page that I got the problem related here:
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=145662
I'm trying to decompose my page to find what is causing the javascript error in IE.
Thank you for you time.
The page code:<?xml version="1.0" encoding="iso-8859-1"?> <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:r="http://richfaces.org/rich" xmlns:a4j="http://richfaces.org/a4j" version="2.0"> <body> <ui:composition template="/template.jspx"> <ui:define name="extraHeader"> <script type="text/javascript" src="/Certificado/js/jquery.meiomask.js"></script> <script type="text/javascript"> ( function($) { $( function() { $("#formulario\\:telefone").setMask(); }); })(jQuery); </script> </ui:define> <ui:define name="tituloPagina"> <h:outputText value="#{msg.tituloPessoa}" /> </ui:define> <ui:define name="corpo"> <h:form id="formulario" onkeypress="return desabilitaEnter(event);"> <f:loadBundle basename="util.mensagens" var="msg" /> <!-- *************** INICIO DOS CAMPOS DE CONSULTA ********************* --> <center><h:panelGroup style="width:760px; height: 70px;"> <h:panelGrid columns="2"> <h:column> <h:outputLabel value="MatrÃÂÂÂcula:" /> </h:column> <h:column> <h:inputText size="10" onkeypress="submitJSFViaEnter(event, 'botaoConsultar');" value="#{ManterPessoa.matricula}"> </h:inputText> </h:column> <h:column> <h:outputLabel value="Nome:" /> </h:column> <h:column> <h:inputText size="70" onkeypress="submitJSFViaEnter(event, 'botaoConsultar');" value="#{ManterPessoa.nome}" /> </h:column> <h:column> <h:outputLabel value="Cargo:" /> </h:column> <h:column> <h:selectOneMenu value="#{ManterPessoa.cargo}"> <f:selectItem itemValue="" /> <f:selectItems value="#{ManterPessoa.listaCargo}" /> </h:selectOneMenu> </h:column> <h:column> <h:outputLabel value="Localização:" /> </h:column> <h:column> <h:inputHidden id="id" value="#{ManterPessoa.localizacaoId}" /> <h:inputText size="10" id="sigla" disabled="true" value="#{ManterPessoa.localizacaoSigla}" /> <a4j:commandButton value="..." reRender="mymodal" actionListener="#{ManterLocalizacao.consultarAction}" oncomplete="Richfaces.showModalPanel('mymodal'); return false;"/> <h:inputText size="70" id="descricao" disabled="true" value="#{ManterPessoa.localizacaoDescricao}" /> </h:column> </h:panelGrid> </h:panelGroup> <!-- *************** FIM DOS CAMPOS DE CONSULTA ********************* --> <!-- *************** INICIO DO GRID ********************* --> <r:panel style="width:760px; height: 230px;"> <h:panelGrid cellpadding="0" cellspacing="0" width="700" style="height: 70px;" rendered="#{ManterPessoa.mostrarGrid}"> <r:dataTable value="#{ManterPessoa.lista}" var="item" sortMode="single" id="tablePessoas" rows="7" width="700" style="heigth: 700px;" align="center"> <f:facet name="header"> <h:outputText value="Registros encontrados" /> </f:facet> <r:column sortBy="#{item.matricula}" width="10%"> <f:facet name="header"> <h:outputText value="MatrÃÂÂÂcula" /> </f:facet> <h:outputText value="#{item.matricula}" /> </r:column> <r:column sortBy="#{item.nome}" width="50%"> <f:facet name="header"> <h:outputText value="Nome" /> </f:facet> <h:outputText value="#{item.nome}" /> </r:column> <r:column sortBy="#{item.cargo}" width="25%"> <f:facet name="header"> <h:outputText value="Cargo" /> </f:facet> <h:outputText value="#{item.cargo.completo}" /> </r:column> <r:column sortBy="#{item.localizacao.sigla}" width="15%"> <f:facet name="header"> <h:outputText value="Localização" /> </f:facet> <h:outputText value="#{item.localizacao.sigla}" /> </r:column> <r:column width="5%"> <f:facet name="header"> <h:outputText value="" /> </f:facet> <h:commandLink action="#{ManterPessoa.alterar}" style="text-decoration: none; border: none"> <h:graphicImage value="/imagens/alterar.gif" style="text-decoration: none; border: none" title="alterar registro" /> </h:commandLink> </r:column> <r:column width="5%"> <f:facet name="header"> <h:outputText value="" /> </f:facet> <h:commandLink action="#{ManterPessoa.excluir}" style="text-decoration: none; border: none"> <h:graphicImage value="/imagens/excluir.gif" style="text-decoration: none; border: none" title="excluir registro" /> </h:commandLink> </r:column> </r:dataTable> </h:panelGrid> </r:panel> <r:datascroller for="tablePessoas" maxPages="5" rendered="#{ManterPessoa.mostrarGrid}"> </r:datascroller> <!-- *************** FIM DO GRID ********************* --> <!-- *************** INICIO DOS BOTÕES ********************* --> <br /> <br /> <h:panelGroup> <h:commandButton value="Consultar" id="botaoConsultar" action="#{ManterPessoa.consultar}" /> <h:commandButton value="Incluir" action="#{ManterPessoa.incluir}" /> <h:commandButton value="Limpar" action="#{ManterPessoa.limparCampos}" /> <h:commandButton value="Cancelar" action="#{ManterPessoa.cancelar}" /> </h:panelGroup> <!-- *************** FIM DOS BOTÕES ********************* --></center> </h:form> </ui:define> </ui:composition> </body> </jsp:root>
-
5. Re: Can't use oncomplete with IE6
hwoarang Nov 17, 2008 11:46 AM (in response to hwoarang)Hi there!
I decomposed my pages and discovery the component that caused all the trouble: my template.jspx had a tag inside my modalPanel that stoped IE to work with datascroller's step controls and to open my modal from 'oncomplete' event...
Well... sorry for taking some time from anyone...
The problem is resolved now, even the reason for the problem still unclear to me.
Thanks for nbelaevski and ilya_shaikovsky that take some time to look into it.