-
FEATURED COMPONENTS
First time here? Check out the FAQ!
I seem to be having some issue with spring boot and security use with ZK. Everything works just fine until the moment i add a taglib <?taglib uri="zkoss org/zkspring/security" prefix="sec"?>
and try to load the page. Then i get an error org.zkoss.xel.XelException: Resource not found: www.zkoss org/zkspring/security
.
Been browsing all over the place but seems like most answers are for people using ZK dependencies - unfortunately the company i work for have restricted repository so we have a different approach, thus i guess missing out on some taglib related files.
I did try to go to another project i found online to take the files but been having lots of issues there too (it would seem that everyone have to write their own taglib and related utility class, i thought it would be predefined - PS never done anything with taglibs manually and am new at ZK) as well as issues with tld files - giving me a ton of warnings with pretty much whole thing being red. Maybe i am understanding something wrong?
For reference pom.xml used:
...
<properties>
<java.version>1.8</java.version>
<zk.version>8.6.0.1</zk.version>
</properties>
...
<!-- ZK -->
<dependency>
<groupId>org.zkoss.zk</groupId>
<artifactId>zul</artifactId>
<version>${zk.version}</version>
</dependency>
<dependency>
<groupId>org.zkoss.zk</groupId>
<artifactId>zhtml</artifactId>
<version>${zk.version}</version>
</dependency>
<dependency>
<groupId>org.zkoss.zk</groupId>
<artifactId>zkbind</artifactId>
<version>${zk.version}</version>
</dependency>
<dependency>
<groupId>org.zkoss.zk</groupId>
<artifactId>zkplus</artifactId>
<version>${zk.version}</version>
</dependency>
<dependency>
<groupId>org.zkoss.zk</groupId>
<artifactId>zuti</artifactId>
<version>${zk.version}</version>
</dependency>
<dependency>
<groupId>org.zkoss.zk</groupId>
<artifactId>zkex</artifactId>
<version>${zk.version}</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-security</artifactId>
</dependency>
</dependencies>
How can i get this all set up? Are there any defined files i need to get from somewhere?
urls amended as the forums does not let me publish these
To use zkspring security tab lib, you should include zkspring security first:
<dependency>
<groupId>org.zkoss.zk</groupId>
<artifactId>zkspring-security</artifactId>
<version>4.0.1</version>
</dependency>
Please also check example project
Asked: 2021-06-29 05:48:07 +0800
Seen: 12 times
Last updated: Jun 29 '21