2 Replies Latest reply on Sep 24, 2009 9:32 AM by Ilya Shaikovsky

    a4j:commandLink oncomplete not executed

    Dave Chen Master

      Hi,

      For debug output:

      ....
      <span id="org.ajax4jsf.oncomplete">showFoo(true, false);</span>
      
      .....
      
      debug[19:58:27,792]: call selectSingleNode for id= org.ajax4jsf.oncomplete
      debug[19:58:27,792]: Call request oncomplete function after processing updates
      debug[19:58:27,792]: Update part of page for Id: j_id_jsp_1956673427_52 successful
      debug[19:58:27,792]: call selectSingleNode for id= ajax-view-state
      debug[19:58:27,802]: Hidden JSF state fields:
      debug[19:58:27,802]: Namespace for hidden view-state input fields is undefined
      debug[19:58:27,802]: search for elements by name 'input' in element span
      debug[19:58:27,812]: Replace value for inputs: 47 by new values: 1
      debug[19:58:27,812]: Input in response: javax.faces.ViewState
      debug[19:58:27,822]: Found same input on page with type: hidden
      debug[19:58:27,822]: Found same input on page with type: hidden
      debug[19:58:27,822]: Found same input on page with type: hidden
      debug[19:58:27,832]: Found same input on page with type: hidden
      debug[19:58:27,832]: Found same input on page with type: hidden
      debug[19:58:27,832]: Found same input on page with type: hidden
      debug[19:58:27,842]: Found same input on page with type: hidden
      debug[19:58:27,842]: Found same input on page with type: hidden
      debug[19:58:27,842]: Found same input on page with type: hidden
      debug[19:58:27,852]: search for elements by name 'INPUT' in element span
      debug[19:58:27,852]: Replace value for inputs: 47 by new values: 0
      debug[19:58:27,852]: call selectSingleNode for id= _A4J.AJAX.focus
      debug[19:58:27,852]: No focus information in response
      debug[19:58:28,352]: Evaluate script replaced area in document:
      error[19:58:28,352]: . Error message: invalid arguments
      debug[19:58:28,352]: Evaluate script replaced area in document: //
      function dpf(f) {var adp = f.adp;if (adp != null) {for (var i = 0;i < adp.length;i++) {f.removeChild(adp);}}};function apf(f, pvp) {var adp = new Array();f.adp = adp;var i = 0;for (k in pvp) {var p = document.createElement("input");p.type = "hidden";p.name = k;p.value = pvp[k];f.appendChild(p);adp[i++] = p;}};function jsfcljs(f, pvp, t) {apf(f, pvp);var ft = f.target;if (t) {f.target = t;}f.submit();f.target = ft;dpf(f);};
       //
       debug[19:58:28,362]: Script evaluation succeeded
       debug[19:58:28,362]: call selectSingleNode for id= _ajax:data
      


      a4j:commandLink oncomplete script was not executed. Where to look for the error? Thanks.

      Dave