Package org.zkoss.zk.ui

Examples of org.zkoss.zk.ui.Session


          if (dtid != null) {
            final HttpSession hsess = ((HttpServletRequest)request).getSession(false);
            if (hsess != null) {
              if (hsess.getAttribute(dtid) != null) { //with the preset token
                hsess.removeAttribute(dtid);
                final Session sess = ((WebAppCtrl)_webApp).getSessionCache().get(hsess);
                if (sess != null) {
                  final DesktopCache cache = ((WebAppCtrl)_webApp).getDesktopCache(sess);
                  if (cache != null) {
                    final Desktop olddesktop = cache.getDesktopIfAny(dtid);
                    if (olddesktop != null) {
View Full Code Here


  public void onPrint(){
    doPrint();
  }
  private void doPrint() {
    String printKey=""+System.currentTimeMillis();
    Session session=this.getDesktop().getSession();
    session.setAttribute("zssFromHi"+printKey,spreadsheet);

    Window win = (Window) getFellow("menuPrintWin");
    Button printBtn=(Button) win.getFellow("printBtn");
    printBtn.setTarget("_blank");
    printBtn.setHref("print.zul?printKey="+printKey);
View Full Code Here

TOP

Related Classes of org.zkoss.zk.ui.Session

Copyright © 2018 www.massapicom. 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.