%@page import="org.zkoss.zk.ui.*"%> <%@page import="org.zkoss.zul.*"%> <%@page import="org.zkoss.zkplus.embed.Renders"%> <%@page import="java.util.*"%>
This is a test of embed component: listbox.
<% final HttpSession sess = session; Renders.render(config.getServletContext(), request, response, new GenericRichlet() { public void service(Page page) { Listbox listbox = new Listbox(); listbox.appendChild(new Listitem("Item 1")); listbox.appendChild(new Listitem("Item 2")); listbox.setPage(page); } }, null, out); %> This is a regular button to send Ajax thru jQuery (not AU)This is a test of embed component: datebox.
<% Datebox db = new Datebox(); Renders.render(config.getServletContext(), request, response, db, null, out); %>