4 Replies Latest reply on Dec 20, 2007 3:35 PM by alexsmirnov

    Firefox a4j:push FireFox/Mozilla problem

    joselitol

      Hi people,

      i´m using the a4j:push at my page, just exactly as i found in the examples, and it´s working ok on IE but i´m having some problem with Firefox(2.0.6). When a looked at the Firefox Error console i saw this message:

      "Error: uncaught exception: [Exception... "Not enough arguments" nsresult: "0x80570001 (NS_ERROR_XPC_NOT_ENOUGH_ARGS)" location: "JS frame :: http://localhost:8080/PAV/a4j.res/org.ajax4jsf.framework.ajax.AjaxScript.faces :: anonymous :: line 1131" data: no]"

      Code on My page:

      <a4j:push reRender="documentosFiscais" eventProducer="#{pesquisaDocumentoFiscalBean.addListener}" interval="3000"/>
      


      Code on my backing bean:

      public void addListener(EventListener listener) {
      synchronized (listener) {
      if (this.listener != listener) {
      this.listener = (PushEventListener) listener;
      Thread th = new Thread(this);
      th.start();

      }
      }
      }

      public void run() {
      try {
      while (true) {
      Thread.sleep(3000);
      //refresh the list used on DataTable
      search();
      synchronized (listener) {
      listener.onEvent(new EventObject(this));
      }
      }
      } catch (InterruptedException e) {
      e.printStackTrace();
      }

      }


      Does anyone have any idea of what is happening?
      Regards,
      Joselito.