Class ExecutionsCtrl

java.lang.Object
org.zkoss.zk.ui.Executions
org.zkoss.zk.ui.sys.ExecutionsCtrl

public class ExecutionsCtrl extends Executions
Additional utilities for Execution.
Author:
tomyeh
  • Constructor Details

    • ExecutionsCtrl

      protected ExecutionsCtrl()
  • Method Details

    • setCurrent

      public static final void setCurrent(Execution exec)
      Sets the execution for the current thread. Called only internally.

      Note: you have to clean up the current execution with try/finally:

      
       setCurrent(exec);
       try {
       ...
       finally {
         setCurrent(null);
       }
    • getCurrentCtrl

      public static final ExecutionCtrl getCurrentCtrl()
      Returns the current ExecutionCtrl.
    • getPageRedrawControl

      public static final String getPageRedrawControl(Execution exec)
      Returns the page redraw control. It first check if a request attribute called Attributes.PAGE_REDRAW_CONTROL is defined. If not, it checks a request parameter called zk.redrawCtrl is defined. If none of them is defined, null is returned.
      Since:
      5.0.0