O'Reilly logo

ZK Developer's Guide by Markus Stauble, Hans-Jurgen Schumacher, Jurgen Schumacher

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

ZK JSF Components

To enable features from JSF like Validator and ValueBinding the ZK JSF Components wrap ZK components.

Similarly to with the JSP components, just declare the name space and start using the components, that is:

<%@ taglib uri="http://www.zkoss.org/jsf/zul" prefix="z"%>

The sample code from the JSP section will look like:

<HTML> <HEAD> <title>JSF Component Demo</title> </HEAD> <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%> <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%> <%@ taglib uri="http://www.zkoss.org/jsf/zul" prefix="z"%> <f:view> <z:page> <z:window title="jsf demo" border="normal"> <z:button label="Click Me"> <z:attribute name="onClick">{ Messagebox.show("It works.", "Information", Messagebox.OK, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required