0

Injecting Spring beans in component

asked 2008-03-19 11:37:44 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=4847794

By: dmrzh2

It would be good to make injecting spring beens in subclasess of org.zkoss.zk.ui.Component with spring.

for example

public class MyWindow extends Window{

@Resource
private MyDao myDao;

onCreate(){
myDao.findAll()...
...
}
}

In our application tag @BindToWindow used to mark model and later bind to AnnotateDataBinder.

Similar feature implemented in Wicket Framework(wicket.apache.org) using
InstatntiationListener: in Component constructor list of InstatntiationListener s notified.


delete flag offensive retag edit
Be the first one to reply this discussion!
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: 2008-03-19 11:37:44 +0800

Seen: 173 times

Last updated: Mar 19 '08

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