-
FEATURED COMPONENTS
First time here? Check out the FAQ!
I am trying to add Mix and Match themes to Project. When I add theme name in POM, Maven is giving error as theme "Deep Sea" not available.
<dependency>
<groupId>org.zkoss.theme</groupId>
<artifactId>Deep Sea</artifactId>
<version>${zk.version}</version>
</dependency>
How to find maven dependency for Mix & Match themes
I tried this
<dependency>
<groupId>org.zkoss.theme</groupId>
<artifactId>zktheme</artifactId>
<version>8.5.0</version>
<type>pom</type>
</dependency>
But it is also not working. Other than that I am setting theme in zk.xml
<library-property>
<name>org.zkoss.theme.preferred</name>
<value>Deep Sea</value>
</library-property>
Anyone suggestions please. Thanks in Advance.
the correct maven dependency is "deepsea" (lowercase, no spaces):
<dependency>
<groupId>org.zkoss.theme</groupId>
<artifactId>deepsea</artifactId>
<version>${zk.version}</version>
</dependency>
and the library property accordingly:
<library-property>
<name>org.zkoss.theme.preferred</name>
<value>deepsea</value>
</library-property>
You can see the available maven artifacts in the EE-maven repository directly.
No need to download the theme manually ... maven should work
Asked: 2017-12-22 15:55:57 +0800
Seen: 25 times
Last updated: Jan 03 '18
Error: Could not initialize class sun.net.www.protocol.http.HttpURLConnection
[Announcement] ZK 8.5.0 is now released
[Announcement] ZK 8.5 celebration - draw for a prize!
ZK 8.5: Listboxitem setCheckable (setSelectable) not work anymore
How to Dynamically apply our own custom themes in zk 8.5
Migration from ZK 8.0.2.1 TO ZK 8.5.0 ISSUES
ZK 8 Middle Object How to Programmatically make it dirty [closed]
Please make sure you are accessing to the EE repository: https://maven.zkoss.org/repo/zk/ee
jeanher ( 2017-12-25 09:14:28 +0800 )editOk Thanks, I downloaded the JAR file and added in Project. That way it worked.
kd16 ( 2017-12-26 19:09:15 +0800 )editcan you please point out which documentation was misleading so you chose the theme display name as the maven dependency
cor3000 ( 2017-12-29 10:33:51 +0800 )editOk Thank You Guys, I was checking theme one by one how does it looks, So directly changing in project files. There is easy way to make theme name dynamic. I know this is not mentioned in Documentation to Use name like that but that served my purpose.
kd16 ( 2018-01-03 14:30:04 +0800 )editthanks, I am glad you found what you needed.
cor3000 ( 2018-01-03 14:47:58 +0800 )edit