9 Replies Latest reply on Oct 27, 2008 6:46 AM by Peryshkin Sergey

    oncomplete arguments problem

    Konstantin V. Grigoriev Newbie

      As i know oncomplete attribute generates into such code: 'oncomplete':function(request,event,data){ some js code }

      So i often use request, event and data arguments in oncomplete code, but after upgrading to RC6 or final release i have problems only in IE6 - all this arguments always is undefined.

      for example how i used data argument:

      <a4j:commandLink id="doExportLink" action="#{pageBean.doExport}" data="#{facesContext.maximumSeverity}"
      oncomplete="if(typeof data == 'undefined' || data == null) { Richfaces.showModalPanel('exportFileInfoModalPanel',{width:350, top:200}); }" reRender="exportMessage" >Export</a4j:commandLink>
      


      where
      exportMessage - h:messages component
      exportFileInfoModalPanel - rich:modalPanel component

      So i don't need to open modal panel if error appears.

      Whats happened? In FF everything OK.