0

Problem in creating ZK Theme Project in ZK 8 Version

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

Senthilchettyin gravatar image Senthilchettyin flag of India
2611 3 8
http://emrpms.blogspot.in...

updated 2015-11-26 20:10:05 +0800

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/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

delete flag offensive retag edit
Be the first one to answer this question!
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
1 follower

RSS

Stats

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

Seen: 42 times

Last updated: Nov 26 '15

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