-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hello everyone,
I did the jump today from ZK 5.0.2 to 5.0.5 and wanted to try out the new Breeze theme.
So, when I run my application, I still get the old blue theme for some reason.
Thus, I tried this:
import org.zkoss.breeze.Themes;
alert(Themes.getTheme(Executions.getCurrent()));
And the result always is: "zktheme=breeze".
So, the ThemeProvider seems to set the correct theme but breeze simply doesn't show up.
Does anyone have an idea how to debug or even solve this?
Hi valmar,
We have updated the breeze.jar,
You have to update your breeze.jar that ZK505 include(zk-bin-5.0.5.zip\zk-bin-5.0.5\dist\lib\zkforge\).
i got this error when i use breeze.jar
java.lang.NoSuchMethodError: java.lang.String.isEmpty()Z
org.zkoss.breeze.BreezeThemeProvider.setToBreeze(BreezeThemeProvider.java:36)
org.zkoss.breeze.ComponentWebAppInit.init(ComponentWebAppInit.java:49)
org.zkoss.zk.ui.util.Configuration.invokeDesktopInits(Configuration.java:790)
org.zkoss.zk.ui.impl.DesktopImpl.<init>(DesktopImpl.java:235)
org.zkoss.zk.ui.impl.AbstractUiFactory.newDesktop(AbstractUiFactory.java:77)
org.zkoss.zk.ui.http.WebManager.newDesktop(WebManager.java:421)
org.zkoss.zk.ui.http.WebManager.getDesktop(WebManager.java:402)
org.zkoss.zk.ui.http.DHtmlLayoutServlet.process(DHtmlLayoutServlet.java:196)
org.zkoss.zk.ui.http.DHtmlLayoutServlet.doGet(DHtmlLayoutServlet.java:146)
javax.servlet.http.HttpServlet.service(HttpServlet.java:627)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
Could you post your zk.xml setting and "WEB-INF/lib" jar list?
@as1225 Thanks for your reply, but I used the breeze.jar which is included in ZK 5.0.5.
So I guess, the jar file is not the problem..
zk.xml
<?xml version="1.0" encoding="UTF-8"?>
<!--
Created by ZK Studio
-->
<zk>
<session-config>
<session-timeout>100000</session-timeout>
<timer-keep-alive>true</timer-keep-alive>
<max-desktops-per-session>15</max-desktops-per-session>
<max-requests-per-session>5</max-requests-per-session>
</session-config>
<device-config>
<device-type>ajax</device-type>
<timeout-uri>index.zul</timeout-uri><!-- An empty URL can cause the browser to reload the same URL -->
</device-config>
<system-config>
<disable-event-thread>true</disable-event-thread>
<ui-factory-class>org.zkoss.zk.ui.http.SerializableUiFactory</ui-factory-class>
</system-config>
<desktop-config>
<theme-provider-class>org.zkoss.breeze</theme-provider-class>
</desktop-config>
</zk>
i copy breeze.jar come with zk 5.0.5 to WEB-INF/lib already
could you show me the "org.zkoss.breeze" source code?
is it in use?
<desktop-config> <theme-provider-class>org.zkoss.breeze</theme-provider-class> </desktop-config>
@as1225
Hm, I cannot show you the org.zkoss.breeze source code because it only contains .class files and not .java.
I added the <theme-provider-class>...</theme-provider-class> to <desktop-config> in zk.xml but that didn't change anything.
is the "org.zkoss.breeze" created by you?
The webapp doesn't need any theme provider if you just want to use breeze.
I never created any org.zkoss.breeze.
As you said, I only want to use breeze as my default theme as described in http://www.zkoss.org/release/zkthemebreeze-5.0.3.dsp
It just doesn't work.
Asked: 2010-11-02 13:54:40 +0800
Seen: 4,302 times
Last updated: Feb 03 '11