-
FEATURED COMPONENTS
First time here? Check out the FAQ!
@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?
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
Asked: 2013-02-19 03:47:24 +0800
Seen: 28 times
Last updated: Feb 19 '13
How to properly wire variable?
Spring security doesn't return user inside event listener
where to put @Transactional (Hibernate Spring)
Clustered Session Terracotta not working
Can't inject using @Value in ViewModel if not declaring as @Component.. so what do we use?
Not able to bind Spring beans after zk upgrade
retriving Spring authentication provider Name dynamically in multiple authentication providers
thanks.We can also use org.zkoss.zkplus.spring.SpringUtil.
yncj ( 2013-02-19 11:24:27 +0800 )edit