Package org.zkoss.zkplus.embed

Examples of org.zkoss.zkplus.embed.Bridge


public class Embed extends HttpServlet {
  private int cnt = 0;
  public void service(HttpServletRequest request, HttpServletResponse response)
  throws javax.servlet.ServletException, java.io.IOException {
    final Desktop desktop = getDesktop(request);
    Bridge bridge = Bridge.start(getServletContext(), request, response, desktop);
    try {
      final Listbox listbox = (Listbox) ((Page)desktop.getPages().iterator().next()).getRoots().iterator().next();
      listbox.appendChild(new Listitem("Ajax " + ++cnt));
      response.getWriter().write(bridge.getResult());
    } finally {
      bridge.close();
    }
  }
View Full Code Here

TOP

Related Classes of org.zkoss.zkplus.embed.Bridge

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.