/** Returns the page definition from the page file specified by an URI. * * <p>Like {@link #createComponents(WebApp,PageDefinition,Map)}, * this method can be invoked without the current execution, such as * a working thread. In this case, the wapp argument must be specified. * * @param wapp the Web application. It is optional and used only if * no current execution (e.g., in a working thread). * The instance of {@link WebApp} can be retrieved by use of {@link org.zkoss.zk.ui.http.WebManager#getWebApp}, * while the instance of {@link org.zkoss.zk.ui.http.WebManager} can be retrieved * by {@link org.zkoss.zk.ui.http.WebManager#getWebManager} * @param uri the URI of the page file. * * @see #getPageDefinitionDirectly(WebApp, String, String) * @see #getPageDefinitionDirectly(WebApp, Document, String) * @see #getPageDefinitionDirectly(WebApp, Reader, String) * @since 3.6.2 */ public static PageDefinition getPageDefinition(WebApp wapp, String uri) { final CCInfo cci = beforeCC(wapp); try { return cci.exec.getPageDefinition(uri); } finally { afterCC(cci); } }
/** Creates components that don't belong to any page * from the specified page definition. * * <p>Unlike {@link #createComponents(PageDefinition,Component,Map)}, * this method can be invoked without the current execution, such as * a working thread. In this case, the wapp argument must be specified. * * @param wapp the Web application. It is optional and used only if * no current execution (e.g., in a working thread). * The instance of {@link WebApp} can be retrieved by use of {@link org.zkoss.zk.ui.http.WebManager#getWebApp}, * while the instance of {@link org.zkoss.zk.ui.http.WebManager} can be retrieved * by {@link org.zkoss.zk.ui.http.WebManager#getWebManager} * @param pagedef the page definition to use. It cannot be null. * @param arg a map of parameters that is accessible by the arg variable * in EL, or by {@link Execution#getArg}. * Ignored if null. * @return all top-level components being created. * @see #createComponents(WebApp, String, Map) * @since 3.6.2 */ public static Component[] createComponents(WebApp wapp, PageDefinition pagedef, Map<?, ?> arg) { final CCInfo cci = beforeCC(wapp); try { return cci.exec.createComponents(pagedef, arg); } finally { afterCC(cci); } }
return cci.exec.getPageDefinitionDirectly(content, extension); } finally { afterCC(cci);
return cci.exec.getPageDefinitionDirectly(reader, extension); } finally { afterCC(cci);
return cci.exec.getPageDefinitionDirectly(content, extension); } finally { afterCC(cci);
return cci.exec.createComponents(uri, arg); } finally { afterCC(cci);
return cci.exec.createComponentsDirectly(content, extension, arg); } finally { afterCC(cci);
return cci.exec.createComponentsDirectly(content, extension, arg); } finally { afterCC(cci);
return cci.exec.createComponentsDirectly(reader, extension, arg); } finally { afterCC(cci);