-
FEATURED COMPONENTS
First time here? Check out the FAQ!
1 | initial 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
2 | No.2 Revision |
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