org.zkoss.zk.ui.Execution.pushArg()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(1.2k)|赞(0)|评价(0)|浏览(107)

本文整理了Java中org.zkoss.zk.ui.Execution.pushArg()方法的一些代码示例,展示了Execution.pushArg()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Execution.pushArg()方法的具体详情如下:
包路径:org.zkoss.zk.ui.Execution
类名称:Execution
方法名:pushArg

Execution.pushArg介绍

[英]Pushes the parameters (aka., arg) that EL could refer it by the arg variable. Remember to call #popArg in the finally clause.
[中]推送EL可以通过arg变量引用的参数(aka.,arg)。记住在finally子句中调用#popArg。

代码示例

代码示例来源:origin: org.zkoss.zk/zk

public void pushArg(Map<?, ?> arg) {
  exec().pushArg(arg);
}

代码示例来源:origin: org.zkoss.zk/zkbind

public void call(Object data) {
    try {
      Executions.getCurrent().pushArg(currentArg);
      doBeforeComposeChildren(comp);
    } catch (Exception e) {
      throw UiException.Aide.wrap(e);
    } finally {
      Executions.getCurrent().popArg();
    }
  }
});

代码示例来源:origin: org.zkoss.zk/zkbind

public void call(Object data) {
    try {
      Executions.getCurrent().pushArg(currentArg);
      doAfterCompose(comp);
    } catch (Exception e) {
      throw UiException.Aide.wrap(e);
    } finally {
      Executions.getCurrent().popArg();
    }
  }
});

代码示例来源:origin: org.zkoss.zk/zk

final PageDefinition olddef = execCtrl.getCurrentPageDefinition();
execCtrl.setCurrentPageDefinition(pagedef);
exec.pushArg(arg != null ? arg : Collections.EMPTY_MAP);

相关文章