-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi,
I recently upgraded to ZK 5.05 but I noticed that the breeze theme no longer works for me.
In ZK 5.04 I just had to include the breeze.jar as a library to my project to make it work but in ZK 5.05 the application shows always the blue theme no matter what the cookie says.
The strange thing is that the silvergray theme seems to work. (silvergray.jar, silvergray-tod.jar doesn't work)
Regards,
Martin
Has nobody else experience with this theme?
What did change in ZK 5.05 that works different with the theme than in ZK 5.04?
I just don't get it. The cookie clearly says that breeze should be used but still the old blue theme is displayed!
Hi Simon,
both ZK-EE and the Breeze theme are version 5.0.5 so this shouldn't be the problem.
Here is a stripped version of my zk.xml:
<?xml version="1.0" encoding="UTF-8"?> <zk> <language-mapping> <language-name>xml</language-name> <extension>svg</extension> </language-mapping> <language-mapping> <language-name>xml</language-name> <extension>xml2html</extension> </language-mapping> <session-config> <session-timeout>3600</session-timeout> <automatic-timeout/> <timer-keep-alive>true</timer-keep-alive> </session-config> <system-config> <!-- Unlimited upload size of files --> <max-upload-size>-1</max-upload-size> </system-config> <system-config> <disable-event-thread>false</disable-event-thread> </system-config> <richlet> <richlet-name>Main</richlet-name> <richlet-class>eu.primescale.cmdb.prog.Main</richlet-class> </richlet> <richlet> <richlet-name>Logon</richlet-name> <richlet-class>eu.primescale.cmdb.login.Logon</richlet-class> </richlet> <richlet> <richlet-name>Login</richlet-name> <richlet-class>eu.primescale.cmdb.login.Login</richlet-class> </richlet> <richlet> <richlet-name>Timeout</richlet-name> <richlet-class>eu.primescale.cmdb.login.Timeout</richlet-class> </richlet> <richlet-mapping> <richlet-name>Main</richlet-name> <url-pattern>/main</url-pattern> </richlet-mapping> <richlet-mapping> <richlet-name>Logon</richlet-name> <url-pattern>/logon</url-pattern> </richlet-mapping> <richlet-mapping> <richlet-name>Login</richlet-name> <url-pattern>/login</url-pattern> </richlet-mapping> <richlet-mapping> <richlet-name>Timeout</richlet-name> <url-pattern>/timeout</url-pattern> </richlet-mapping> <device-config> <device-type>ajax</device-type> <timeout-uri>/ps/timeout</timeout-uri> </device-config> <!-- Configure additional theme URIs <desktop-config> <theme-uri>/a.css</theme-uri> <theme-uri>/b**.css</theme-uri> </desktop-config> --> <!-- Comment this part out to enable the breeze Theme --> <!--<desktop-config> <theme-provider-class>zkthemer.ThemeProvider</theme-provider-class> </desktop-config>--> <desktop-config> <theme-uri>/css/primecmdb.css</theme-uri> </desktop-config> <library-property> <name>org.zkoss.zul.theme.fontSizeM</name> <value>11px</value> </library-property> </zk>
I do want to implement theme-switching at some point but this has a low priority.
Regards,
Martin
Hi,
I still have issues with the breeze theme.
These are the values of the zktheme cookie:
Name zktheme
Value breeze
Host localhost
Path /PrimeCMDB/ps/
Secure No
Valuable until Fri, 25 Feb 2011 13:46:08 GMT
I still don't understand what the problem is...
Even the stylesheet from breeze seems to be used because the Firefox addon Webdeveloper shows me this:
http://localhost:8080/PrimeCMDB/zkau/web/617bf80/_zkiju-breeze/zul/css/zk.wcs
Any ideas?
Thx
Martin,
That was really strange. Have you tried to use the CacheableThemeProvider that comes with zksandbox? As the themes are functioning in the current 5.0.5 zksandbox, if you check out the project you are supposed to be able to try the themes in zksandbox. Maybe this can narrow down the cause of your problem. Just my 2 cents.
Simon
mw88,
I had a similar issue with ZK 5.0.5 and Breeze not showing up as the default theme. My project was a new Eclipse project, built manually on Apache 7.0.6. I wasn't sure what I did incorrectly so I simply created a new project using ZK Studio and copied the JARs over. This solved the problem and I can now see the Breeze theme as default.
I removed the cookies (which for some reason wasn't refreshing even after doing a ctrl+f5) and it picked up the breeze :)
Sorry I didn't post earlier. This is what I experienced:
Neither cleaning up the project nor making a new one solved the problem for me but with the new ZK version this problem seems to be solved.
I don't know why but I'm glad it works now ;-)
Thanks to all for the answers
Asked: 2010-12-07 02:55:21 +0800
Seen: 1,916 times
Last updated: Mar 12 '11