-
FEATURED COMPONENTS
First time here? Check out the FAQ!
I wish to propose an improvement to ZK Bind framework.
When you use a view model that is managed by Spring (not the ZK factory) in some cases the org.zkoss.bind.BindComposer does not work because Spring generate a proxy for your view model bean (ex : if you have an @Aspect to the view model etc...).
ex :
@Component("myvm") @Scope("prototype") public class MyViewModel { ... }
<?variable-resolver class="org.zkoss.zkplus.spring.DelegatingVariableResolver"?> <zk> <window apply="org.zkoss.bind.BindComposer" viewModel="@id('vm')@init(myvm)" validationMessages="@id('vmsgs')" width="600px" vflex="1"> .. </zk>
That why I patched the ZK Bind 7.0.4 for it work in all cases. How can I send you the patch ?
Regards,
Antoine Ruillé
You can send pull request to github: https://github.com/zkoss/zk. ZK team will further check the improvement.
You can't push directly, you should send pull request. Refer to https://help.github.com/articles/using-pull-requests/
Asked: 2015-04-17 14:31:31 +0800
Seen: 32 times
Last updated: Apr 23 '15