2 Replies Latest reply on Apr 9, 2009 1:24 PM by jigarzon

    Disable / Enable a4j:push

    jigarzon

      Hi,

      I'm using a4j:push to rerender a table with progressbars of tasks beeing executed in background. The problem I have is that a4j:push makes big use of CPU, so I would like to disable it when all tasks are completed (when this happens, it makes no sense to keep a4j:push making requests for checking state, because it will never change) or when there ar no tasks beeing executed. I also need to reenable it when new tasks are added.

      Is there a way to enable / disable the a4j:push (with javascript or something)?

      Thanks in advance!!!!