0

ZK Spreadsheet and Maven [closed]

asked 2011-04-13 07:06:46 +0800

oresistemas gravatar image oresistemas
21 1 1
http://coresware.com

Hi. We are using ZK with Maven. How can I add libraries for ZK Spreadsheet in our POM.XML? What dependencies are necessary?

delete flag offensive retag edit

The question has been closed for the following reason "the question is answered, right answer was accepted" by sjoshi
close date 2013-02-08 06:39:59

9 Replies

Sort by ยป oldest newest

answered 2012-06-08 01:24:21 +0800

jimmyshiau gravatar image jimmyshiau
4921 5
http://www.zkoss.org/ ZK Team

Hi oresistemas
We have updated the document, please refer to http://books.zkoss.org/wiki/ZK_Spreadsheet_Essentials/Getting_Started_with_ZK_Spreadsheet/Maven

link publish delete flag offensive edit

answered 2011-05-01 22:36:22 +0800

RyanWu gravatar image RyanWu
533 2
about.me/flyworld

Currently it not support maven update yet.,

in none maven project, all you need is add zss.jar into your ZK projects.

link publish delete flag offensive edit

answered 2012-04-10 08:58:54 +0800

ojerteg gravatar image ojerteg
3

updated 2012-04-10 09:00:08 +0800

Still no support for ZK spreadsheet using maven? According to this http://tracker.zkoss.org/browse/ZSS-17 request there should be some ZSS artifacts in the ZK maven bot I am not able to find them in the indicated location.

link publish delete flag offensive edit

answered 2012-04-16 01:59:38 +0800

henrichen gravatar image henrichen
3869 2
ZK Team

We are going to release next version of ZK Spreadsheet. The new version will be put onto ZK maven repository 1 week after release day.

link publish delete flag offensive edit

answered 2012-04-19 22:00:56 +0800

oresistemas gravatar image oresistemas
21 1 1
http://coresware.com

Are there any estimated date for the new version?

link publish delete flag offensive edit

answered 2012-04-20 01:25:28 +0800

henrichen gravatar image henrichen
3869 2
ZK Team

Just released ZSS 2.3 on Apr. 17.

http://www.zkoss.org/product/zkspreadsheet/releasenote/2.3

link publish delete flag offensive edit

answered 2012-12-20 02:11:33 +0800

zkrao gravatar image zkrao
15

Hi,

I have tried it but getting the below error . Any ideas?

org.apache.jasper.JasperException: /sample.jsp(10,52) The zss:spreadsheet tag declares that it accepts dynamic attributes but does not implement the required interface
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:148)
org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:775)
org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1512)
org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2343)
org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2393)
org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2399)
org.apache.jasper.compiler.Node$Root.accept(Node.java:489)
org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2343)
org.apache.jasper.compiler.Validator.validate(Validator.java:1737)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:165)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:314)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:294)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:281)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

link publish delete flag offensive edit

answered 2012-12-21 06:21:13 +0800

samchuang gravatar image samchuang
4084 4

updated 2012-12-21 07:29:58 +0800

hi zkrao

You can refer to Using ZK Spreadsheet JSP Tag

If it doesn't help, can you post your sample code ?

link publish delete flag offensive edit

answered 2013-01-14 05:42:08 +0800

this post is marked as community wiki

This post is a wiki. Anyone with karma >100 is welcome to improve it.

updated 2013-01-23 06:49:59 +0800

neillee gravatar image neillee flag of Taiwan
1692 1 5
https://plus.google.com/u...

Hi samchuang,

I have been waiting for this long time? I think the issue is with maven EE jars

Here is my pom.xml , web.xml and my jsp code . When I copy all jars from zss app , it works fine. it looks either my web.xml is wrong or pom file doesn't have all jars

Jsp code:

<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>ZK Spreadsheet JSP application</title>
</head>
<body>
<%@ taglib prefix="zss" uri="http://www.zkoss.org/jsp/zss" %>
    <div width="100%" style="height: 100%;">
    <zss:spreadsheet id="myzss" src="/WEB-INF/sample.xlsx" 
        width="100%" height="800px" maxrows="200" maxcolumns="40"/>
    </div>
</body>
</html>

pom.xml :

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
    http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <groupId>com.sample</groupId>
    <artifactId>zk</artifactId>
    <name>z</name>
    <packaging>war</packaging>
    <version>1.0</version>

    <properties>
        <zpoi.version>3.8.1</zpoi.version>
        <zss.version>2.5.0</zss.version>
        <zk.version>6.5.1</zk.version>
    </properties>

    <repositories>
        <repository>
            <!--<id>ZK Spreadsheet EE Evaluation</id>-->
            <!--<url>http://mavensync.zkoss.org/eval/</url>-->

            <id>zkmaven</id>
            <name>ZK Maven Plugin Repository</name>
            <url>http://mavensync.zkoss.org/maven2</url>
        </repository>

        <repository>
            <id>zk ee evaluation repository</id>
            <url>http://mavensync.zkoss.org/zk/ee-eval/</url>
        </repository>

        <repository>
            <id>ZK Spreadsheet EE Evaluation</id>
            <url>http://mavensync.zkoss.org/eval/</url>
        </repository>
    </repositories>

    <build>
        <finalName>zk</finalName>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <configuration>
                    <verbose>true</verbose>
                    <source>1.6</source>
                    <target>1.6</target>
                    <showWarnings>true</showWarnings>
                </configuration>
            </plugin>
        </plugins>
    </build>

    <dependencies>
        <!-- ZSS -->
        <dependency>
            <groupId>org.zkoss.poi</groupId>
            <artifactId>zpoi</artifactId>
            <version>${zpoi.version}</version>
        </dependency>
        <dependency>
            <groupId>org.zkoss.poi</groupId>
            <artifactId>zpoiex</artifactId>
            <version>${zpoi.version}</version>
        </dependency>
        <dependency>
            <groupId>org.zkoss.zss</groupId>
            <artifactId>zss</artifactId>
            <version>${zss.version}</version>
        </dependency>
        <dependency>
            <groupId>org.zkoss.zss</groupId>
            <artifactId>zssex</artifactId>
            <version>${zss.version}</version>
        </dependency>
        <dependency>
            <groupId>org.zkoss.zss</groupId>
            <artifactId>zsspdf</artifactId>
            <version>${zss.version}</version>
        </dependency>
        <dependency>
            <groupId>org.zkoss.zss</groupId>
            <artifactId>zsshtml</artifactId>
            <version>${zss.version}</version>
        </dependency>
        <dependency>
            <groupId>org.zkoss.zss</groupId>
            <artifactId>zssjsp</artifactId>
            <version>${zss.version}</version>
        </dependency>
        <dependency>
            <groupId>org.zkoss.zk</groupId>
            <artifactId>zkplus</artifactId>
            <version>${zk.version}</version>
        </dependency>
        <dependency>
            <groupId>org.zkoss.zk</groupId>
            <artifactId>zhtml</artifactId>
            <version>${zk.version}</version>
        </dependency>

        <!-- ZK -->
        <dependency>
            <groupId>org.zkoss.zk</groupId>
            <artifactId>zul</artifactId>
            <version>${zk.version}</version>
        </dependency>
        <dependency>
            <groupId>org.zkoss.zk</groupId>
            <artifactId>zkex</artifactId>
            <version>${zk.version}</version>
        </dependency>
    </dependencies>
</project>

web.xml is :

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns="http://java.sun.com/xml/ns/javaee"
    xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee 
    http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" 
    id="WebApp_ID" version="2.5">
    <display-name>eom</display-name>
    <listener>
        <description>Used to cleanup when a session is destroyed</description>
        <display-name>ZK Session cleaner</display-name>
        <listener-class>org.zkoss.zk.ui.http.HttpSessionListener</listener-class>
    </listener>
    <servlet>
        <description>The ZK loader for ZUML pages</description>
        <servlet-name>zkLoader</servlet-name>
        <servlet-class>org.zkoss.zk.ui.http.DHtmlLayoutServlet</servlet-class>
        <init-param>
            <param-name>update-uri</param-name>
            <param-value>/zkau</param-value>
        </init-param>
        <load-on-startup>1</load-on-startup>
    </servlet>
    <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>zkLoader</servlet-name>
        <url-pattern>*.zul</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>zkLoader</servlet-name>
        <url-pattern>*.zhtml</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>auEngine</servlet-name>
        <url-pattern>/zkau/*</url-pattern>
    </servlet-mapping>
    <welcome-file-list>
        <welcome-file>index.html</welcome-file>
        <welcome-file>index.htm</welcome-file>
        <welcome-file>index.jsp</welcome-file>
        <welcome-file>default.html</welcome-file>
        <welcome-file>default.htm</welcome-file>
        <welcome-file>default.jsp</welcome-file>
        <welcome-file>index.zul</welcome-file>
    </welcome-file-list>
</web-app>
link publish delete flag offensive edit

Question tools

Follow

RSS

Stats

Asked: 2011-04-13 07:06:46 +0800

Seen: 2,916 times

Last updated: Jan 23 '13

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More