-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi all,
today i want to export the zksample2 (zk 5.0.4 + silvergray-theme) as war-file for uploading it to sourceForge.
Before uploading i test the war-file as a new deployment on my local Tomcat.
Some colours are not the same as by an eclipse or maven build ??
Formerly, with ( < zk 5.0.4 ) an export works correct. Can somebody check this in his own projects.
origin-view: pic
exported view: pic
any idea are welcome.
best
Stephan
Hi Stephan,
Don't shoot me if I'm completely on the wrong track here but -
I've not really looked at using a theme yet, but have just been "zapped" by installing zk 5.0.5 and upgrading a 5.0.4 project. It suddenly defaulted to the "breeze" theme even though I don't want that (fonts too big etc).
Anyway, that forced me to look at themes and in the end I just deleted the breeze.jar from the libs. I am now back to the classic look.
However I did also notice that I now have a cookie the reads "zktheme = breeze"
It looks to me as if your exported image is the "classic" theme. So my question/hint to you, is - do you have a cookie in your eclipse/maven tomcat that is causing the silver/gray theme to be used but when you export it, there is no cookie?
Just thoughts - probably not at all helpful.
Thanks Bob for thinking about that,
Hmmmm, i mean i have no cookie declared. I have only the silvergray.jar' in the lib folder.
I didn't declare a cookie either - the breeze jar automatically created one (I just happen to print all cookies on entry to my main index.zul at the moment). Just wondering if the sivergray.jar does something similar and at some point (in your dev tomcat) a cookie was set but it is not there in you test of the exported war (I assume you are using a different URL - localhost) for the exported war compared to the eclipse test.
But as I said, I'm by no means a theme expert - i'd actually say novice, so I'm probably talking complete rubbish.
Hmmm,
i see only a SesionID cookie on startup.
cookie: JSESSIONID = 60C3610B099C86C37C89D59160AFBA8C
public static void getAllCookies() { Cookie[] cookies = ((HttpServletRequest) Executions.getCurrent().getNativeRequest()).getCookies(); if (cookies != null) { for (Cookie cookie : cookies) { System.out.println("cookie: " + cookie.getName() + " = " + cookie.getValue()); } }
Good question.
I have checked this. It's the same log output in both versions (Exported war and build war) . Only one cookie for the SessionID
best
Stephan
Hi @terrytornado
Could you post the small sample code for me to test it (is it a toolbar ?)
I am guessing maybe some CSS is changed in silvergray, I am not sure. Or maybe DOM structure is changed in ZK 5.0.4
@Bobzk
indeed, with ZK 5.0.5, the default theme is breeze, if you don't want it, just remove the breeze.jar.
the cookie is added in breeze.jar, after you delete it, and clean cache, it won't have this cookie.
sivergray.jar won't do the same thing, it won't add a cookie, it just override CSS
Asked: 2010-11-11 04:57:35 +0800
Seen: 565 times
Last updated: Nov 11 '10