-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi all,
i set up a simple zk + spring boot application according to the guide.
Everything works fine. Now i just wanted to change the default 'iceblue' theme to for example silvertail. I followed the zk and theme instructions and copied the silvertail jar into the resources/metainfo/zk/lib folder (not WEB-INF/lib because of spring boot ?!) and added the preferred theme to the zk.xml.
But it does not work. Are there some other changes needed to change the theme in an spring boot application environment?
Thanks Sebastian
When adding a theme you need to make sure the library is added to the classpath at runtime.
This is spring-boot specific and spring is not aware of anything you put into metainfo/zk/lib
, neither does ZK do anything about this folder.
The natural way with maven/gradle is add the theme jar as a dependency instead of copying jar files manually.
gradle: add to build.gradle
compile "org.zkoss.theme:silvertail:${zkVersion}"
maven: add to pom.xml
<dependency>
<groupId>org.zkoss.theme</groupId>
<artifactId>silvertail</artifactId>
<version>${zk.version}</version>
</dependency>
and set the preferred theme library property to zk.xml
<library-property>
<name>org.zkoss.theme.preferred</name>
<value>silvertail</value>
</library-property>
Asked: 2018-05-23 16:22:58 +0800
Seen: 23 times
Last updated: May 24 '18
Zk + Spring Security redirect to strange page after login
ZK Spring webflow and flowScope
Spring security doesn't return user inside event listener
ZK Spring 3.1.1 MVVM Use @Scope/@Component or No?
Upgrading from Spring3.1 to 3.1.1 Maven.. pulls in 3.0.x jars... issues
When would I want to use ThreadLocalListener?
ZKoss with springsecurity using database