0

ZK Calendar Wire Spring-managed Beans Failed [closed]

asked 2013-02-19 03:47:24 +0800

yncj gravatar image yncj
3 1

updated 2013-02-19 07:55:33 +0800

dennis gravatar image dennis
3669 1 6
http://www.javaworld.com....
   @VariableResolver(org.zkoss.zkplus.spring.DelegatingVariableResolver.class)
   public class CalendarVMzlh extends GenericForwardComposer {
        @WireVariable
    public IDataService dataService;
    @Autowired
    private SessionFactory sessionFactory;
        ……
   }

The dataService and sessionFactory are not wired! Why?

delete flag offensive retag edit

The question has been closed for the following reason "the question is answered, right answer was accepted" by sjoshi
close date 2013-02-19 11:27:28

Comments

thanks.We can also use org.zkoss.zkplus.spring.SpringUtil.

yncj ( 2013-02-19 11:24:27 +0800 )edit

1 Answer

Sort by » oldest newest most voted
0

answered 2013-02-19 07:49:10 +0800

dennis gravatar image dennis
3669 1 6
http://www.javaworld.com....

updated 2013-02-19 07:51:52 +0800

use SelectorComposer , if you want to use GenericForwardComposer, you have to write them manually by calling Selectors.wireVariables() in doAfterCompose() and, @AutoWire is spring's bean annotation, please use @WireVariable in SelectorComposer

link publish delete flag offensive edit

Question tools

Follow

RSS

Stats

Asked: 2013-02-19 03:47:24 +0800

Seen: 28 times

Last updated: Feb 19 '13

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