0

Breeze Theme activation

asked 2010-11-02 13:54:40 +0800

valmar gravatar image valmar
925 2 13
http://www.timo-ernst.net

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?

delete flag offensive retag edit

38 Replies

Sort by ยป oldest newest

answered 2010-11-02 19:44:58 +0800

jimmyshiau gravatar image jimmyshiau
4921 5
http://www.zkoss.org/ ZK Team

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\).

link publish delete flag offensive edit

answered 2010-11-02 22:08:13 +0800

kykub gravatar image kykub
75 1

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)

link publish delete flag offensive edit

answered 2010-11-02 22:32:07 +0800

kykub gravatar image kykub
75 1

zk 5.0.5 CE

link publish delete flag offensive edit

answered 2010-11-03 02:51:59 +0800

jimmyshiau gravatar image jimmyshiau
4921 5
http://www.zkoss.org/ ZK Team

Could you post your zk.xml setting and "WEB-INF/lib" jar list?

link publish delete flag offensive edit

answered 2010-11-03 03:47:47 +0800

valmar gravatar image valmar
925 2 13
http://www.timo-ernst.net

@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..

link publish delete flag offensive edit

answered 2010-11-03 04:16:33 +0800

kykub gravatar image kykub
75 1

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

link publish delete flag offensive edit

answered 2010-11-03 04:22:18 +0800

jimmyshiau gravatar image jimmyshiau
4921 5
http://www.zkoss.org/ ZK Team

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>

link publish delete flag offensive edit

answered 2010-11-03 04:58:17 +0800

valmar gravatar image valmar
925 2 13
http://www.timo-ernst.net

@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.

link publish delete flag offensive edit

answered 2010-11-03 05:07:00 +0800

jimmyshiau gravatar image jimmyshiau
4921 5
http://www.zkoss.org/ ZK Team

is the "org.zkoss.breeze" created by you?
The webapp doesn't need any theme provider if you just want to use breeze.

link publish delete flag offensive edit

answered 2010-11-03 05:30:17 +0800

valmar gravatar image valmar
925 2 13
http://www.timo-ernst.net

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.

link publish delete flag offensive edit
Your reply
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

RSS

Stats

Asked: 2010-11-02 13:54:40 +0800

Seen: 4,301 times

Last updated: Feb 03 '11

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