-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hallo all,
I have an issue with loading the Breeze theme at application startup time.
Instead, Classic Blue is loaded at the very first time the application is started.
Theme switching (Classic Blue -> Breeze) occurs only after explicitely invoking:
Themes.setTheme(Executions.getCurrent(), Themes.BREEZE_THEME);
and refreshing the page. This creates the zktheme cookie with the correct entry "breeze" and
adds it to the HttpServletResponse. After the cookie was created everything works as expected.
According to the documentation it is sufficient to put the breeze.jar in /WEB-INF/lib to make
Breeze a default theme. Unfortunately this is not what happens in my case.
I experimented a little bit and I can confirm that the correct provider was retrieved at(actually before) page construction time.
Within
doBeforeCompose(Page page, Component parent, ComponentInfo compInfo)
Desktop desktop = page.getDesktop(); WebApp webApp = desktop.getWebApp(); Configuration config = webApp.getConfiguration(); ThemeProvider themeProvider = config.getThemeProvider();
On the other side invoking
Themes.getTheme(Executions.getCurrent());
Invoking
Themes.setTheme(Executions.getCurrent(), Themes.BREEZE_THEME);
Has anyone experienced similar issues ? Any help or hints will be greatly appreciated.
My Configuration
Apache-Tomcat-6.0.20
Please upgrade to latest ZK 5.0.8 version, and give it a try.
Asked: 2011-02-24 13:04:33 +0800
Seen: 404 times
Last updated: Aug 31 '11