本文整理了Java中org.zkoss.zk.ui.Desktop.getRequestPath()
方法的一些代码示例,展示了Desktop.getRequestPath()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Desktop.getRequestPath()
方法的具体详情如下:
包路径:org.zkoss.zk.ui.Desktop
类名称:Desktop
方法名:getRequestPath
[英]Returns the path of the request that causes this desktop to be created, or "" if not available. In other words, it is the request path of the first page (see Page#getRequestPath).
For example, "/foo/index.zul" (a ZUML page is requested) or /test (a richlet).
[中]返回导致创建此桌面的请求的路径,如果不可用,则返回“”。换句话说,它是第一页的请求路径(请参见第#页getRequestPath)。
例如,“/foo/index.zul”(请求ZUML页面)或/test(richlet)。
代码示例来源:origin: org.zkoss.zk/zkplus
public void render(Page page, Writer out) throws IOException {
out.write(HtmlPageRenders.outLangStyleSheets(_exec, null, null));
out.write(HtmlPageRenders.outLangJavaScripts(_exec, null, null));
if (_pageDOM) {
HtmlPageRenders.outPageContent(_exec, page, out, false);
return;
}
final Desktop desktop = _exec.getDesktop();
out.write("<script class=\"z-runonce\" type=\"text/javascript\">zkpb('");
out.write(page.getUuid());
out.write("','");
out.write(desktop.getId());
out.write("','");
out.write(getContextURI());
out.write("','");
out.write(desktop.getUpdateURI(null));
out.write("','");
out.write(desktop.getRequestPath());
out.write('\'');
String style = page.getStyle();
if (style != null && style.length() > 0) {
out.write(",{style:'");
out.write(style);
out.write("'}");
}
out.write(");zkpe();</script>\n");
for (Component root = page.getFirstRoot(); root != null; root = root.getNextSibling()) {
HtmlPageRenders.outStandalone(_exec, root, out);
}
}
代码示例来源:origin: org.zkoss.zk/zk
sb.append("<script class=\"z-runonce\" type=\"text/javascript\">\nzkdt('").append(desktop.getId())
.append("','").append(getContextURI(exec)).append("','").append(desktop.getUpdateURI(null))
.append("','").append(desktop.getRequestPath()).append("');").append(outSpecialJS(desktop))
.append("\n</script>\n");
代码示例来源:origin: org.zkoss.zk/zuljsp
out.write(desktop.getUpdateURI(null));
out.write("','");
out.write(desktop.getRequestPath());
out.write('\'');
代码示例来源:origin: org.zkoss.zk/zk
appendProp(props, "cu", getContextURI(exec));
appendProp(props, "uu", desktop.getUpdateURI(null));
appendProp(props, "ru", desktop.getRequestPath());
内容来源于网络,如有侵权,请联系作者删除!