0

With Spring Boot and Security [closed]

asked 2021-06-29 05:48:07 +0800

MartVq gravatar image MartVq
33 2

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

delete flag offensive retag edit

The question has been closed for the following reason "the question is answered, right answer was accepted" by MartVq
close date 2021-07-08 00:32:00

1 Answer

Sort by » oldest newest most voted
1

answered 2021-06-29 12:02:52 +0800

hawk gravatar image hawk
2849 1 5
http://hawkphoenix.blogsp... ZK Team

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

link publish delete flag offensive edit

Comments

I see, thank you for confirming. Had to go with implementing it manually, but it is good to know for future reference!

MartVq ( 2021-07-01 04:42:52 +0800 )edit

I assume you accept this answer :)

hawk ( 2021-07-06 10:32:42 +0800 )edit

Question tools

Follow

RSS

Stats

Asked: 2021-06-29 05:48:07 +0800

Seen: 7 times

Last updated: Jun 29

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