0

Breeze Theme in ZK 5.05

asked 2010-12-07 02:55:21 +0800

mw88 gravatar image mw88
93 2
http://www.mw88.org

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

delete flag offensive retag edit

9 Replies

Sort by ยป oldest newest

answered 2010-12-21 04:24:42 +0800

mw88 gravatar image mw88
93 2
http://www.mw88.org

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!

link publish delete flag offensive edit

answered 2010-12-21 20:51:11 +0800

SimonPai gravatar image SimonPai
1696 1

Hi Martin,

What is your breeze version? The Breeze theme also has a 5.0.5 version.

Regards,
Simon

link publish delete flag offensive edit

answered 2010-12-22 07:28:57 +0800

mw88 gravatar image mw88
93 2
http://www.mw88.org

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

link publish delete flag offensive edit

answered 2011-01-26 07:59:54 +0800

mw88 gravatar image mw88
93 2
http://www.mw88.org

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

link publish delete flag offensive edit

answered 2011-01-26 08:19:07 +0800

SimonPai gravatar image SimonPai
1696 1

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

link publish delete flag offensive edit

answered 2011-02-01 03:42:58 +0800

rholland gravatar image rholland
3

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.

link publish delete flag offensive edit

answered 2011-02-17 22:53:41 +0800

samchuang gravatar image samchuang
4084 4

Hi

guys, have you tried clean project ?

remove old jars and copy all ZK relative jars (zk, zul, breeze....), then cleanup project and re-build.

It works for me, hope it helps

link publish delete flag offensive edit

answered 2011-03-11 23:29:43 +0800

dagarwal82 gravatar image dagarwal82
246 4

I removed the cookies (which for some reason wasn't refreshing even after doing a ctrl+f5) and it picked up the breeze :)

link publish delete flag offensive edit

answered 2011-03-12 14:58:37 +0800

mw88 gravatar image mw88
93 2
http://www.mw88.org

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

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-12-07 02:55:21 +0800

Seen: 1,916 times

Last updated: Mar 12 '11

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