Use of ZK JSF Components"

From Documentation
(Created page with '{{ZKDevelopersGuidePageHeader}} ZK provides an equivalent JSF component for each ZUL component. The use is similar to ZK JSP Tags, except the taglib URI is [http://www.zkoss.org…')
 
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
{{ZKDevelopersGuidePageHeader}}
 
{{ZKDevelopersGuidePageHeader}}
  
ZK provides an equivalent JSF component for each ZUL component. The use is similar to ZK JSP Tags, except the taglib URI is [http://www.zkoss.org/jsf/zul http://www.zkoss.org/jsf/zul].
+
ZK provides an equivalent JSF component for each ZUL component. The use is similar to ZK JSP Tags, except the taglib URI is [http://www.zkoss.org/javadoc/zkjsf/2.0.0/ http://www.zkoss.org/javadoc/zkjsf/2.0.0/].
  
 
<source lang="xml" >
 
<source lang="xml" >

Latest revision as of 06:25, 26 July 2010

Stop.png This documentation is for an older version of ZK. For the latest one, please click here.


ZK provides an equivalent JSF component for each ZUL component. The use is similar to ZK JSP Tags, except the taglib URI is http://www.zkoss.org/javadoc/zkjsf/2.0.0/.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>Validator Example</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"%>
<body>
<f:view>
    <h:form id="helloForm">
        <z:page>
            <z:window z:title="Validator Example" width="500px" border="normal">
                --Validate input day must in weekend--<br/>
                <z:datebox id="dbox" format="yyyy/MM/dd"
                     f:value="#{ValidatorBean.value}"
                     f:validator="#{ValidatorBean.validateDate}"/>
            <h:message
                 style="color: red; font-style: oblique;"
                     for="dbox" />
                <br/>
                <h:commandButton id="submit" action="#{ValidatorBean.doSubmit}" value="Submit" />                
            </z:window>
            <h:messages/>
        </z:page>
    </h:form>
    <a href="../index.html">Back</a>
</f:view>
</body>
</html>



Last Update : 2010/07/26

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.