0

12:/basicconcepts/zkthemer/index.dsp

asked 2009-07-03 06:26:48 +0800

anonymous gravatar image anonymous
1

Wow!
Fantastic!

Finally, a long awaited theme customization is available!

Great, fantastic job!

delete flag offensive retag edit

63 Replies

Sort by » oldest newest

answered 2009-07-06 03:38:31 +0800

anonymous gravatar image anonymous
1

@jlcasas

we would like to help you upload the file to zk.forge.
Please contact me robbiecheng at zkoss dot org.

thx!
/robbie

link publish delete flag offensive edit

answered 2009-07-06 16:03:34 +0800

anonymous gravatar image anonymous
1

I think the problem on windows is that the jar file is not having the META-INF\manifest.mf file.

Once you unzip and regenerate using the jar command, it works.

link publish delete flag offensive edit

answered 2009-07-06 17:44:12 +0800

anonymous gravatar image anonymous
1

I've checked the code I use to jar the files, and I think the problem was that I forgot to close the jarEntry. Instead I relied only on putNextEntry which closes the previous entry. So the last one was "unclosed" and it was 'zkthemer/ThemeProvider.class'.

I've corrected it and uploaded a new zkthemer.jar. Could you check if it works now on Windows? Thank you.

I've also posted the source code.

link publish delete flag offensive edit

answered 2009-07-06 22:20:27 +0800

anonymous gravatar image anonymous
1

José Luis:

Sorry, but it doesn't worked for me.
I tried the unzip/rezip also.

link publish delete flag offensive edit

answered 2009-07-07 18:18:29 +0800

anonymous gravatar image anonymous
1

@Fernando
@Jaume

I had the same problem, the solution that I found was include the "metainfo/zk/lang-addon.xml" in the theme file. My application has a lot of iframes and frames and I think that this is the problem (I don't konw why). I tried the theme file in a full zk application and it just works.

I hope that it helps someone.


Regards,

edgar

link publish delete flag offensive edit

answered 2009-07-08 07:48:08 +0800

anonymous gravatar image anonymous
1

Hi José,
I had the same problem with Dhanapalan...

link publish delete flag offensive edit

answered 2009-07-08 18:18:29 +0800

anonymous gravatar image anonymous
1

Ho Jose,

I'm getting following error.

=============================================


EVERE: Unable to load /WEB-INF/zk.xml
org.zkoss.zk.ui.UiException: Unable to load zkthemer.ThemeProvider, at [SYS jndi:/localhost/CSS-M-eye/WEB-INF/zk.xml line 8 col 17]
at org.zkoss.zk.ui.sys.ConfigParser.parseClass(ConfigParser.java:577)
at org.zkoss.zk.ui.sys.ConfigParser.parseDesktopConfig(ConfigParser.java:486)


===========================
Thanks,
Dhana

link publish delete flag offensive edit

answered 2009-07-09 20:26:11 +0800

anonymous gravatar image anonymous
1

Excellent tool. After a couple of tries, I got it working for me. But I was wondering if it were possible to create various jars with different colors and the user would be able to change them at runtime. How could this be achieved? Thanks a lot.

link publish delete flag offensive edit

answered 2009-07-11 17:32:45 +0800

anonymous gravatar image anonymous
1

Yes, it is possible to create various jars and change them at runtime. You only have to modify the ThemeProvider class listed in the smalltalk. As you can see, the default one looks for a properties file called 'zkthemer.properties' with an entry 'theme=<<yourThemeName>>'. Each generated jar has a similar file. In your new ThemeProvider class you have to replace this mechanism completely and choose the theme from the 'Execution' passed in
getThemeURIs(Execution exec, List uris)

link publish delete flag offensive edit

answered 2009-07-13 09:44:57 +0800

anonymous gravatar image anonymous
1

Hi Jose
I noticed that your tool changes the background color of the error popup displayed when a constraint is not satisfied.
I think this has to remain RED and not be changed!

Thanks
Andrea Mattioli

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: 2009-07-03 06:26:48 +0800

Seen: 71 times

Last updated: Feb 25 '11

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