-
Type:
New Feature
-
Resolution: Done
-
Priority:
Normal
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
This forum post and answer describes the issue http://forum.zkoss.org/question/86797/cant-inject-using-value-in-viewmodel-if-not-declaring-as-component-so-what-do-we-use/#86799, but shorter summary the zk spring docs do not recommend declaring your ViewModel as a component, but if you follow this pattern you can't inject properties using @Value("${someProp}") into your ViewModels. This is somewhat limiting considering this a very nice feature which is available in other webapps leveraging Spring. (The work around is provided in the link above.)