Revision history [back]

click to hide/show revision 1
initial version

asked 2015-11-26 20:06:07 +0800

Senthilchettyin gravatar image Senthilchettyin flag of India

http://emrpms.blogspot.in...

Problem in creating ZK Theme Project in ZK 8 Version

I am following the below post from ZK to create Theme using ZK 8

http://blog.zkoss.org/index.php/2013/09/17/zk7-create-a-new-a-theme-project/

But theme jar does not loading in my main web applcation.

Here is the Web application link to download http://www.filefactory.com/file/2y4knwub6ach/webapp.zip

Here is the Theme Project Link to download http://www.filefactory.com/file/2myg0w3sqmav/theme.zip

In order to confirm whether theme is loaded or not, I just added the following Sysout in the theme project listner class

package mynewtheme;

import org.zkoss.zk.ui.WebApp;
import org.zkoss.zk.ui.util.WebAppInit;
import org.zkoss.zul.theme.Themes;

public class mynewthemeThemeWebAppInit implements WebAppInit {

    private final static String MYNEWTHEME_NAME = "mynewtheme";
    private final static String MYNEWTHEME_DISPLAY = "Mynewtheme";
    private final static int MYNEWTHEME_PRIORITY = 1000;

    public void init(WebApp wapp) throws Exception {
        System.out.println("My New Theme is loading");
        Themes.register(MYNEWTHEME_NAME, MYNEWTHEME_DISPLAY, MYNEWTHEME_PRIORITY);
    }

}

But the theme is not loading. Can you please help

Problem in creating ZK Theme Project in ZK 8 Version

I am following the below post from ZK to create Theme using ZK 8

http://blog.zkoss.org/index.php/2013/09/17/zk7-create-a-new-a-theme-project/

But theme jar does not loading in my main web applcation.

Here is the Web application link to download http://www.filefactory.com/file/2y4knwub6ach/webapp.zipdownload

http://www.filefactory.com/file/aavx6i9yey7/mainwebapp.zip

Here is the Theme Project Link to download http://www.filefactory.com/file/2myg0w3sqmav/theme.zip

In order to confirm whether theme is loaded or not, I just added the following Sysout in the theme project listner class

package mynewtheme;

import org.zkoss.zk.ui.WebApp;
import org.zkoss.zk.ui.util.WebAppInit;
import org.zkoss.zul.theme.Themes;

public class mynewthemeThemeWebAppInit implements WebAppInit {

    private final static String MYNEWTHEME_NAME = "mynewtheme";
    private final static String MYNEWTHEME_DISPLAY = "Mynewtheme";
    private final static int MYNEWTHEME_PRIORITY = 1000;

    public void init(WebApp wapp) throws Exception {
        System.out.println("My New Theme is loading");
        Themes.register(MYNEWTHEME_NAME, MYNEWTHEME_DISPLAY, MYNEWTHEME_PRIORITY);
    }

}

But the theme is not loading. Can you please help

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