Configure ZK Spreadsheet JSF Component"

From Documentation
Line 1: Line 1:
 
{{ZKSpreadsheetEssentialsPageHeader}}
 
{{ZKSpreadsheetEssentialsPageHeader}}
 
__TOC__
 
__TOC__
==Downloads==
+
===Downloads===
 
* [http://www.zkoss.org/download/zk.dsp Download ZK] 5.0.5 or later release binaries.  
 
* [http://www.zkoss.org/download/zk.dsp Download ZK] 5.0.5 or later release binaries.  
 
* [http://www.zkoss.org/download/zkspreadsheet.dsp Download ZK Spreadsheet] 2.0 Beta3 or later release binaries. and config it to be used as your JSF web application library by either directly copying into WEB-INF/lib or putting them on your web application classpath
 
* [http://www.zkoss.org/download/zkspreadsheet.dsp Download ZK Spreadsheet] 2.0 Beta3 or later release binaries. and config it to be used as your JSF web application library by either directly copying into WEB-INF/lib or putting them on your web application classpath
  
==Configuration==
+
===Configuration===
 
* Configure downloaded ZK & ZK Spreadsheet binaries as your JSF web application libraries by either directly copying into WEB-INF/lib or putting them on your web application classpath
 
* Configure downloaded ZK & ZK Spreadsheet binaries as your JSF web application libraries by either directly copying into WEB-INF/lib or putting them on your web application classpath
 
* Add <code>org.zkoss.zk.au.http.DHtmlUpdateServlet</code> and its mapping into web.xml as shown below
 
* Add <code>org.zkoss.zk.au.http.DHtmlUpdateServlet</code> and its mapping into web.xml as shown below
Line 21: Line 21:
 
   </servlet-mapping>
 
   </servlet-mapping>
 
</source>
 
</source>
* and finally add ZK Spreadsheet JSF component taglib into the web.xml as shown below
+
* add ZK Spreadsheet JSF component taglib into the web.xml as shown below
 
<source lang="xml">
 
<source lang="xml">
 
<context-param>
 
<context-param>
Line 28: Line 28:
 
</context-param>
 
</context-param>
 
</source>
 
</source>
 
+
* and finally create jsfzss-taglib.xml with following contents and add to WEB-INF folder
 +
<source lang="xml">
 +
<?xml version="1.0" encoding="UTF-8"?>
 +
<facelet-taglib xmlns="http://java.sun.com/xml/ns/javaee"
 +
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 +
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facelettaglibrary_2_0.xsd"
 +
version="2.0">
 +
<namespace>http://www.zkoss.org/jsf/zss</namespace>
 +
<tag>
 +
<tag-name>spreadsheet</tag-name>
 +
<component>
 +
<component-type>spreadsheet</component-type>
 +
</component>
 +
</tag>
 +
</facelet-taglib>
 +
</source>
 
=Version History=
 
=Version History=
 
{{LastUpdated}}
 
{{LastUpdated}}

Revision as of 03:40, 25 November 2010


Configure ZK Spreadsheet JSF Component



Downloads

  • Download ZK 5.0.5 or later release binaries.
  • Download ZK Spreadsheet 2.0 Beta3 or later release binaries. and config it to be used as your JSF web application library by either directly copying into WEB-INF/lib or putting them on your web application classpath

Configuration

  • Configure downloaded ZK & ZK Spreadsheet binaries as your JSF web application libraries by either directly copying into WEB-INF/lib or putting them on your web application classpath
  • Add org.zkoss.zk.au.http.DHtmlUpdateServlet and its mapping into web.xml as shown below
  <servlet>
  	<description>
  	The asynchronous update engine for ZK</description>
  	<servlet-name>auEngine</servlet-name>
  	<servlet-class>
  	org.zkoss.zk.au.http.DHtmlUpdateServlet</servlet-class>
  </servlet>
  <servlet-mapping>
  	<servlet-name>auEngine</servlet-name>
  	<url-pattern>/zkau/*</url-pattern>
  </servlet-mapping>
  • add ZK Spreadsheet JSF component taglib into the web.xml as shown below
	<context-param>
		<param-name>javax.faces.FACELETS_LIBRARIES</param-name>
		<param-value>/WEB-INF/jsfzss-taglib.xml</param-value>
	</context-param>
  • and finally create jsfzss-taglib.xml with following contents and add to WEB-INF folder
<?xml version="1.0" encoding="UTF-8"?>
<facelet-taglib xmlns="http://java.sun.com/xml/ns/javaee"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facelettaglibrary_2_0.xsd"
	version="2.0">
	<namespace>http://www.zkoss.org/jsf/zss</namespace>
	<tag>
		<tag-name>spreadsheet</tag-name>
		<component>
			<component-type>spreadsheet</component-type>
		</component>
	</tag>
</facelet-taglib>

Version History

Last Update : 2010/11/25


Version Date Content
     


All source code listed in this book is at Github.


Last Update : 2010/11/25

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