📄 b2143479.java
字号:
/* B2143479.java{{IS_NOTE Purpose: Description: History: Fri Oct 3 10:16:18 2008, Created by tomyeh}}IS_NOTECopyright (C) 2008 Potix Corporation. All Rights Reserved.{{IS_RIGHT This program is distributed under GPL Version 2.0 in the hope that it will be useful, but WITHOUT ANY WARRANTY.}}IS_RIGHT*/package org.zkoss.zkdemo.test2;import org.zkoss.zk.ui.Executions;import org.zkoss.zk.ui.Desktop;import org.zkoss.zk.ui.util.DesktopInit;/** * Used to verify Bug 2143479: whether able to sendRedirect in desktopInit. * * @author tomyeh */public class B2143479 implements DesktopInit { public void init(Desktop desktop, Object request) throws Exception { final String path = desktop.getRequestPath(); if (path != null && path.indexOf("B30-2143479.zul") >= 0) { System.out.println("sendRedirect "+path); Executions.getCurrent().sendRedirect("B30-2143479-1.zul"); //Executions.getCurrent().forward("B30-2143479-1.zul"); } }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -