0

New extensions, @AppliedTo, springscope("idspace"), @EventHandler..

asked 2009-04-08 09:41:24 +0800

robertpic71 gravatar image robertpic71
1275 1

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

delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2009-04-17 03:15:10 +0800

henrichen gravatar image henrichen
3869 2
ZK Team

updated 2009-04-17 03:20:27 +0800

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

link publish delete flag offensive edit

answered 2009-04-17 13:06:50 +0800

robertpic71 gravatar image robertpic71
1275 1

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

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2009-04-08 09:41:24 +0800

Seen: 808 times

Last updated: Apr 17 '09

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