/** Returns the {@link ZScript} object hold in this info. */ public ZScript getZScript() { _zs.setEvaluatorRef(_evalr); //in case that this info has been moved return _zs; }
/** Returns the content of zscript. * If URL is specified, this method loads the content from it. * If URL is an EL expression, it will be evaluated first. * * <p>Note: before evaluating the returned script, you have to invoke * {@link #isEffective(Component)} or {@link #isEffective(Page)} first. * * @param page the page when this zscript is interpreted. * Used only if this object is constructed with {@link #ZScriptInfo(NodeInfo, String, String, Locator, ConditionImpl)}. * @param comp the component when this zscript is interpreted. * Used only if this object is constructed with {@link #ZScriptInfo(NodeInfo, String, String, Locator, ConditionImpl)}. * @exception org.zkoss.zk.ui.UiException if failed to load the content */ public String getContent(Page page, Component comp) { _zs.setEvaluatorRef(_evalr); //in case that this info has been moved return _zs.getContent(page, comp); }