0

Eclipse export as war-file (zk 5.0.4) Missing colours / pics

asked 2010-11-11 04:57:35 +0800

terrytornado gravatar image terrytornado flag of Germany
9393 3 7 16
http://www.oxitec.de/

updated 2010-11-11 05:16:55 +0800

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

delete flag offensive retag edit

7 Replies

Sort by ยป oldest newest

answered 2010-11-11 05:25:29 +0800

Bobzk gravatar image Bobzk
444 1 8

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.

link publish delete flag offensive edit

answered 2010-11-11 06:23:39 +0800

terrytornado gravatar image terrytornado flag of Germany
9393 3 7 16
http://www.oxitec.de/

Thanks Bob for thinking about that,

Hmmmm, i mean i have no cookie declared. I have only the silvergray.jar' in the lib folder.

link publish delete flag offensive edit

answered 2010-11-11 06:37:15 +0800

Bobzk gravatar image Bobzk
444 1 8

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.

link publish delete flag offensive edit

answered 2010-11-11 07:24:08 +0800

terrytornado gravatar image terrytornado flag of Germany
9393 3 7 16
http://www.oxitec.de/

updated 2010-11-11 07:24:23 +0800

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());
			}
		}

link publish delete flag offensive edit

answered 2010-11-11 10:08:02 +0800

Bobzk gravatar image Bobzk
444 1 8

Is that the the only cookie for the one that works, the one that fails - or is it the same for both?

link publish delete flag offensive edit

answered 2010-11-11 10:35:45 +0800

terrytornado gravatar image terrytornado flag of Germany
9393 3 7 16
http://www.oxitec.de/

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

link publish delete flag offensive edit

answered 2010-11-11 19:09:08 +0800

samchuang gravatar image samchuang
4084 4

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

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-11 04:57:35 +0800

Seen: 565 times

Last updated: Nov 11 '10

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