Package org.zkoss.zk.ui

Examples of org.zkoss.zk.ui.Execution.include()


    final Execution exec = getExecution();
    final String src = exec.toAbsoluteURI(_src, false);
    final Map old = setupDynams(exec);
    ComponentRedraws.beforeRedraw(true); //starting a new page
    try {
      exec.include(out, src, null, 0);
    } catch (Throwable err) {
      setChildPage(null);
    //though DHtmlLayoutServlet handles exception, we still have to
    //handle it because src might not be ZUML
      final String errpg =
View Full Code Here


        try {
          exec.setAttribute("javax.servlet.error.message", Exceptions.getMessage(err));
          exec.setAttribute("javax.servlet.error.exception", err);
          exec.setAttribute("javax.servlet.error.exception_type", err.getClass());
          exec.setAttribute("javax.servlet.error.status_code", new Integer(500));
          exec.include(out, errpg, null, 0);
          return; //done
        } catch (IOException ex) { //eat it (connection off)
        } catch (Throwable ex) {
          log.warning("Failed to load the error page: "+errpg, ex);
        }
View Full Code Here

        new Object[] {src, Exceptions.getMessage(err),
          Exceptions.formatStackTrace(null, err, null, 6)});
      final HashMap attrs = new HashMap();
      attrs.put(Attributes.ALERT_TYPE, "error");
      attrs.put(Attributes.ALERT, msg);
      exec.include(out,
        "~./html/alert.dsp", attrs, Execution.PASS_THRU_ATTR);
    } finally {
      ComponentRedraws.afterRedraw();
      restoreDynams(exec, old);
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.