-
FEATURED COMPONENTS
First time here? Check out the FAQ!
To use Spring managed service in my ViewModel in MVVM I need to add annotation
@VariableResolver(org.zkoss.zkplus.spring.DelegatingVariableResolver.class)
to each ViewModel class. Can I somehow register it as default resolver for all ViewModels?
It is possible to configure a system-level variable resolver which will be used globally also for @WireVariable
inside view models.
Add this to your zk.xml:
<listener>
<listener-class>org.zkoss.zkplus.spring.DelegatingVariableResolver</listener-class>
</listener>
To wire the Spring-managed beans, you need to register the Spring variable resolver, DelegatingVariableResolver. Then, you could annotate @WireVariable for wiring a Spring-managed bean.
Asked: 2020-08-30 16:23:44 +0800
Seen: 16 times
Last updated: Sep 08 '20
[Announcement] ZK 8.5.1 is now available!
Highlight new release changes/new features in demo app
How can I make a button change its image by clicking on the same button?
Problems calling function 'sec:isAnyGranted' with zkspring 3.2 and Spring Security 4
webapp folder of ZK spring boot?
Can I set in runtime a new value to library property: org.zkoss.zk.ui.processMask.enabled:
Package ZK Eclipse Tomcat Project For Deployment
AImage org.zkoss.zk.ui.UiException: java.io.FileNotFoundException