public void addAuResponse(AuResponse response) { getUiEngine().addResponse(response); }
/** Safe to be called even if the Web application has been destroyed */ private void safeActivate(Execution exec) { final UiEngine uieng = ((WebAppCtrl) _wapp).getUiEngine(); if (uieng != null) { uieng.activate(exec); } else { _exec = exec; ExecutionsCtrl.setCurrent(exec); } }
public void invalidate() { if (_page != null) { getAttachedUiEngine().addInvalidate(this); } }
final Execution exec = new ExecutionImpl(ctx, request, response, desktop, page); WebManager.setDesktop(request, desktop); wappc.getUiEngine().recycleDesktop(exec, page, out); } else wappc.getUiEngine().execNewPage(exec, richlet, page, out);
final Execution exec = new ExecutionImpl(getServletContext(), request, response, desktop, page); final Writer out = compress ? (Writer) new StringWriter() : response.getWriter(); wappc.getUiEngine().execNewPage(exec, pagedef, page, out);
uieng.activate(exec); config.invokeExecutionCleanups(exec, oldexec, null); uieng.deactivate(exec);
public boolean ceaseSuspendedThread(EventProcessingThread evtthd, String cause) { return ((WebAppCtrl) _wapp).getUiEngine().ceaseSuspendedThread(this, evtthd, cause); }
/** Smart-updates a property of the peer widget with the given value * that allows caller to decide whether to append or overwrite. * In other words, {@link #smartUpdate(String, Object)} is a shortcut of * <code>smartUpdate(attr, value, false)</code>. * * <p>For example, if you invoke <code>smartUpdate("attr", "value1")</code> * and <code>smartUpdate("attr", "value2")</code>, then only <code>value2</code> * will be sent to the client. * <p>However, if you invoke <code>smartUpdate("attr", "value1", true)</code> * and <code>smartUpdate("attr", "value2", true)</code>, * then both <code>value1</code> and <code>value2</code> * will be sent to the client. In other words, <code>wgt.setAttr("value1")</code> * and <code>wgt.setAttr("value2")</code> will be invoked at the client * accordingly. * * @param append whether to append the updates of properties with the same * name. If false, only the last value of the same property will be sent * to the client. * @since 5.0.0 * @see #smartUpdate(String, Object) */ protected void smartUpdate(String attr, Object value, boolean append) { if (_page != null) getAttachedUiEngine().addSmartUpdate(this, attr, value, append); }
((WebAppCtrl)_desktop.getWebApp()).getUiEngine().beginUpdate(_active.exec); return true;
/** Called when this component is moved from the specified parent * and/or page to the new page. * * <p>Default: it notifies {@link UiEngine} to update the component * at the client (usually remove-and-add). * * <p>It is designed to let derived classes overriding this method * to disable this update. However, you rarely need to override it. * One possible but rare case: the component's * visual part at the client updates the visual representation * at the client and then notify the component at the server * to update its children accordingly. In this case, it is redundant * if we ask UI Engine to send the updates to client. * * @param oldparent the parent before moved. * The new parent can be found by calling {@link #getParent}. * @param oldpg the parent before moved. * @param newpg the new page. {@link #getPage} might return * the old page. */ protected void addMoved(Component oldparent, Page oldpg, Page newpg) { final Desktop dt; if (oldpg != null) dt = oldpg.getDesktop(); else if (newpg != null) dt = newpg.getDesktop(); else return; ((WebAppCtrl) dt.getWebApp()).getUiEngine().addMoved(this, oldparent, oldpg, newpg); }
getAttachedUiEngine().addUuidChanged(this);
final Execution exec = new ExecutionImpl(ctx, request, response, desktop, page); WebManager.setDesktop(request, desktop); wappc.getUiEngine().recycleDesktop(exec, page, out); } else wappc.getUiEngine().execNewPage(exec, richlet, page, out); wappc.getUiEngine().execNewPage(exec, pagedef, page, out); voided = exec.isVoided();
final Execution exec = new ExecutionImpl(_ctx, request, response, desktop, page); final StringWriter out = new StringWriter(4096 * 2); wappc.getUiEngine().execNewPage(exec, pagedef, page, out);
public void addAuResponse(String key, AuResponse response) { getUiEngine().addResponse(key, response); }
final Execution exec = new ExecutionImpl(svlctx, httpreq, httpres, desktop, page); fixContentType(response); wappc.getUiEngine().recycleDesktop(exec, page, response.getWriter()); } else page.setAttribute("org.zkoss.portlet2.namespace", getNamespace(response), Page.PAGE_SCOPE); wappc.getUiEngine().execNewPage(exec, richlet, page, out != null ? out : response.getWriter()); } else if (path != null) { final PageDefinition pagedef = uf.getPageDefinition(ri, path); page.setAttribute("org.zkoss.portlet2.namespace", getNamespace(response), Page.PAGE_SCOPE); wappc.getUiEngine().execNewPage(exec, pagedef, page, out != null ? out : response.getWriter()); } else return true; //nothing to do
wappc.getUiEngine().execNewPage(exec, richlet, _page, jspctx.getOut()); } finally { zkproxy.afterRender(exec, _page);
private static final CCInfo beforeCC(WebApp wapp) { Execution exec = Executions.getCurrent(); if (exec != null) return new CCInfo(exec, false); ((WebAppCtrl) wapp).getUiEngine().activate(exec = CCExecution.newInstance(wapp)); return new CCInfo(exec, true); }
public void invalidate() { getUiEngine().addInvalidate(this); }
private void addResponse(AuResponse response) { ((WebAppCtrl) _wapp).getUiEngine().addResponse(response); }
exec.setAttribute(Attributes.PAGE_RENDERER, new PageRenderer(exec, pageDOM)); wappc.getUiEngine().execNewPage(exec, richlet, page, out);