0

ZK PDF-version of 5.x Developer Guide

asked 2010-12-14 05:22:23 +0800

valmar gravatar image valmar
925 2 13
http://www.timo-ernst.net

I really loved the PDF-Version of the ZK Developer's Guide for ZK 3.x since I could just print it to A5 paper and then read it like a book.
As far as I can see, there is no such version for the current ZK 5.x or am I missing something?

It also seems like as if the Developer's Guide got split into several single references as shown on http://docs.zkoss.org/wiki/Documentation

So, what I really would love to see is the Developer's Reference as a PDF-version.

Any chance that this will come in the near future?

delete flag offensive retag edit

8 Replies

Sort by ยป oldest newest

answered 2010-12-15 02:52:16 +0800

terrytornado gravatar image terrytornado flag of Germany
9393 3 7 16
http://www.oxitec.de/

I have this whish too.

link publish delete flag offensive edit

answered 2010-12-22 21:42:00 +0800

henrichen gravatar image henrichen
3869 2
ZK Team

Will do that when we finish revising the book ;).

link publish delete flag offensive edit

answered 2010-12-22 22:46:50 +0800

Cogito gravatar image Cogito
66 1
ZK Team

Hi guys,
The ZK Developer's Reference will have a PDF version for download when ZK 5.0.6 comes out. Not really answering the question with a definitive date, but you get the idea :)

link publish delete flag offensive edit

answered 2010-12-23 06:06:09 +0800

valmar gravatar image valmar
925 2 13
http://www.timo-ernst.net

Nice, lookin forward to it :-)

link publish delete flag offensive edit

answered 2010-12-24 02:58:54 +0800

yaryan997 gravatar image yaryan997
210 2

Hi..

Friend

I am very new to Zk framework.

Currently I am doing project with the combination of JPA 2.0 with Hibernate and Spring Framework

I am able to write my queries in JP QL but it throws me the following error


java.lang.NullPointerException
com.app.frontend.SellerWindow.getProducts(SellerWindow.java:55)
com.app.frontend.SellerWindow.onCreate(SellerWindow.java:45)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
java.lang.reflect.Method.invoke(Unknown Source)
org.zkoss.zk.ui.impl.EventProcessor.process0(EventProcessor.java:211)
org.zkoss.zk.ui.impl.EventProcessor.process(EventProcessor.java:141)
org.zkoss.zk.ui.impl.EventProcessingThreadImpl.process0(EventProcessingThreadImpl.java:519)
org.zkoss.zk.ui.impl.EventProcessingThreadImpl.run(EventProcessingThreadImpl.java:446)

my DAO class in given below BasicDAO.java CLASS

package org.com.app.dao;
import org.apache.log4j.PropertyConfigurator;
import org.apache.log4j.Category;

import java.util.List;
import java.util.Iterator;

import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.persistence.Query;

import com.app.backend.Product;

/**
* Common persistence methods
* @author icoloma
*/
@Stateless
public class BasicDAO {

@PersistenceContext(unitName="MyProject")
private EntityManager entityManager;
//private EntityTransaction tr =null;

public void setEntityManager(EntityManager entityManager) {
this.entityManager = entityManager;
}

public EntityManager getEntityManager() {
return entityManager;
}

@SuppressWarnings("unchecked")
public List<Product> getProducts() {
// TODO Auto-generated method stub
Query query = entityManager.createQuery("SELECT p.name FROM Product AS p");
System.out.println(query);
List<Product> products = query.getResultList();
return products;
}

}


My SERVICE LAYER HAS CatalogFacade.JAVA CLASS

/**
*
*/
package com.app.service;

import java.util.List;

import javax.ejb.Stateless;

import org.com.app.dao.BasicDAO;

import com.app.backend.Product;

/**
* @author aryan
*
*/
@Stateless
public class CatalogFacade {

protected BasicDAO basicDao;

/**
* @return the basicDao
*/
public BasicDAO getBasicDao() {
return basicDao;
}

/**
* @param basicDao the basicDao to set
*/
public void setBasicDao(BasicDAO basicDao) {
this.basicDao = basicDao;
}

public List<Product> getProducts() {
// TODO Auto-generated method stub
List<Product> products = this.basicDao.getProducts();
return products;
}
}


and MY controller Class is SellerWindow.java CLASS

/**
*
*/
package com.app.frontend;

import java.util.List;
import java.util.Iterator;

import org.zkoss.zk.ui.event.Event;
import org.zkoss.zul.ListModel;
import org.zkoss.zul.ListModelList;
import org.zkoss.zul.Listbox;
import org.zkoss.zul.Window;

import com.app.backend.Product;
import com.app.service.CatalogFacade;

/**
* @author aryan
*
*/
public class SellerWindow extends Window{

/**
*
*/
private static final long serialVersionUID = 1L;

protected CatalogFacade catalogFacade;
/**
* @return the catalogFacade
*/
public com.app.service.CatalogFacade getCatalogFacade() {
return catalogFacade;
}

/**
* @param catalogFacade the catalogFacade to set
*/
public void setCatalogFacade(com.app.service.CatalogFacade catalogFacade) {
this.catalogFacade = catalogFacade;
}

public void onCreate(Event evt) {
ListModel model = new ListModelList(getProducts());
Listbox lbx = (Listbox)getFellow("products");
lbx.setModel(model);
lbx.setSelectedIndex(0);

lbx.focus();
}

public List<Product> getProducts(){

return this.catalogFacade.getProducts();
}
}

I don't able to understand why this error is coming..
plz help me to get out of this..

thanx in advance.

link publish delete flag offensive edit

answered 2010-12-25 09:28:07 +0800

terrytornado gravatar image terrytornado flag of Germany
9393 3 7 16
http://www.oxitec.de/

Please don't cross post.

link publish delete flag offensive edit

answered 2010-12-26 19:51:14 +0800

PeterKuo gravatar image PeterKuo
481 2

@yaryan997
Please don't cross post.
You should create a new thread in category "Help"

link publish delete flag offensive edit

answered 2010-12-26 22:45:48 +0800

yaryan997 gravatar image yaryan997
210 2

sorry friend for my wrong post at this point..

I have created a new thread in FORUM-> HELP

WITH THIS TITLE

how to get values from database to listbox with jpa query

PLZ HELP ME WITH THIS..

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2010-12-14 05:22:23 +0800

Seen: 918 times

Last updated: Dec 26 '10

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