-
FEATURED COMPONENTS
First time here? Check out the FAQ!
There seems some new technics inside the zeta-generated classes.
i.e.
Springscope "idspace" - are there other scopes, prerequisites to use this scope?
@AppliedTo - instead of a <window apply=.. > - prerequisites? (Spring?, Spring-MVC?)
@EventHandler - who wire the @EventHandler's with the GUI?
/Robert
Yes. These are implemented in ZK Spring Integration Library 1.2 (still in beta)
1. We will have new Spring scopes for "idspace", "page", "desktop", and "execution".
2. @AppliedTo is to be used with the @Controller annotation and virtually do the same thing as the <window apply="..">. It is not a replacement but another way for guys who are familiar with Spring. (Spring-MVC is not important here. We somehow overload the @Controller annotation)
3. @EventHandler is wired when zul page is loaded(afterCompose). Note that the event is registered directly on the component (not via "forward" mechanism).
4. @Resource is also wired when zul page is loaded (afterCompose).
5. We have tried to make ZK components as Spring managed beans. You shall be able to reference ZK components as Spring managed bean. However, there is still some glitch though.
To use such functions, you will have to configure the spring application-context.xml (see zeta codes)
mainly the following two lines and of course some XML name space definitions about zksp-annot and zksp.
<!-- ZK Spring config -->
<zksp-annot:component-scan base-package="org.zkoss.spring.jpa,org.zkforge.todo" />
<zksp:zk-config />
Note that these specs are not final yet and might change in the future :).
/henri
Big thanks for the infos. I'll "play" with this, after finish my actual project.
The new features sounds very good - every month a new megafeature? ;-)
/Robert
Asked: 2009-04-08 09:41:24 +0800
Seen: 808 times
Last updated: Apr 17 '09