Over a million developers have joined DZone.

ZK Spring Integration Library 1.0.0

·

ZK Spring Integration Library 1.0.0 is released.

It support simple namespace configuration, ZK event processing security, and Ajax based login and access denied handling.

Download Now!

A Minimal <zk-event> Configuration

ZK adopts the Spring namespace configuration mechanism so all you need to do to 
enable the ZK event processing security is as simple as following:
/WEB-INF/applicationContext-security.xml
<beans:beans xmlns="http://www.springframework.org/schema/security"    
xmlns:zksp="http://www.zkoss.org/2008/zkspring"
xmlns:beans="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
http://www.springframework.org/schema/security
http://www.springframework.org/schema/security/spring-security-2.0.1.xsd
http://www.zkoss.org/2008/zkspring
http://www.zkoss.org/2008/zkspring/zkspring.xsd">
<http ...> ...
</http> ...

<!--Secure the ZK event processing per the event name and ZK component path pattern-->

<zksp:zk-event login-template-close-delay="5">
<zksp:intercept-event event="onClick" path="//**/btn_*" access="ROLE_TELLER"/>
<zksp:intercept-event path="/**" access="IS_AUTHENTICATED_ANONYMOUSLY"/>
</zksp:zk-event>
</beans:beans>

And here is the tutorial, Ajax Based Login with ZK and Spring Security System.

This is the second article in a series regarding how to make Spring Security 2.0 work with ZK Ajax framework. In the previous article, we only discussed about protecting traditional page-based Web applications. In this article, it focuses on how to deal with Ajax kind of application.

Topics:

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}