-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi
In my current project, i am using ZK 6 theme based folder. Here is the part of the code
Theme register at the start up
Themes.register("graytheme", ThemeOrigin.FOLDER); Themes.register("greentheme", ThemeOrigin.FOLDER); Themes.register("bluetheme", ThemeOrigin.FOLDER);
Showing all the themes in the drop down to select by the user
String[] themes = Themes.getThemes(); themes = Arrays.copyOf(themes, themes.length + 1);
// Attempting to switch to a theme that is not registered // will switch to the default theme (i.e. breeze) themes[themes.length - 1] = "unknown"; _themes = new ListModelList<string>(themes); currentTheme = Themes.getCurrentTheme();
Now the problem, when i run locally, all my custom theme are showing the drop down and i am able to switch the themes. But when i deploy the war file in the production server, none of the user defined themes are shown and showing only zk predefined themes.
I just went to tomcat webapp folder and ensure that all the custom theme folder are present.
What could be the issue ?
Note : Earlier it was working fine in the production server. But for some debugging purpose, i set up all the source code in the server and run the source from there.
Now i cleaned up everything (Deleted the m2 folder, source, eclipse, etc). But still not showing the custom themes
Asked: 2013-10-15 15:09:03 +0800
Seen: 12 times
Last updated: Oct 15 '13
clean the Tomcat work folder maybe?
ashishd ( 2013-10-16 04:52:16 +0800 )editdid you check the documentation http://books.zkoss.org/wiki/ZKDeveloper%27sReference/ThemingandStyling/CreatingCustomThemes/Folder-based_Themes
cor3000 ( 2013-10-16 05:03:51 +0800 )editcan you check that your calls to Themes.register(...) actually work i.e. check and log, that after registering the themes, the themes are available when calling Themes.getThemes()
cor3000 ( 2013-10-16 05:05:21 +0800 )edit