Robbie Cheng is the author of the book "ZK: Ajax without the Javascript Framework". He is a software developer at Potix Corporation, and the principle developer of ZK Android and ZK Forum. Recently, he become a ZK evangelist, and has been invited to give speeches at Google Developer Day and Mobile Monday, as well as published many articles on the Internet. Robbie has posted 19 posts at DZone. View Full User Profile

ZK Spring Integration Library 1.0.0

10.16.2008
| 4959 views |
  • submit to reddit

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.

0
Published at DZone with permission of its author, Robbie Cheng.

(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)

Comments

ermanno franco replied on Mon, 2009/01/12 - 12:47am

Very Useful!

Please would you make it available through a Maven repo?

Thanks a lot

Robbie Cheng replied on Thu, 2009/01/15 - 9:03pm in response to: ermanno franco

No problem, we will make it available shortly.

 /robbie 

Patrick Crocker replied on Mon, 2009/01/26 - 6:57am

Has this been made available in the Central Maven repo?  If so, what is the groupId and artifactId?

 

Thank you,

Patrick Crocker

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.