message-loader-class
From Documentation
Syntax: <message-loader-class>class.qualified.name</message-loader-class>
Specifies an additional message loader class to load extra messages or customize default msgzk or msgzul entries. If the message loader declare a file pattern using wildcard "*", multiple Locale-based files can be defined and will be loaded according to the current user locale.
Example,
- Lang-addon.xml
<message-loader-class>foo.bar.MyCustomMessageLoader</message-loader-class>
- foo.bar.MyCustomMessageLoader.java
public class MyCustomMessageLoader implements MessageLoader {
@Override
public void load(StringBuffer out, Execution exec) throws IOException {
out.append(Devices.loadJavaScript(exec, "~./mycustom-msgzk*.js"));
}
}
- [resources folder or cwr folder]/mycustom-msgzk.js
msgzk.MYCUSTOM='customized';
- [resources folder cwr folder]/mycustom-msgzk_DE.js
msgzk.MYCUSTOM='angepasst';
message-loader-class
[Required]
The message loader class. It must implement org.zkoss.zk.ui.metainfo.MessageLoader The loader .load(StringBuffer out, Execution exec) need to load the additional client-side messages and append them to the output buffer.
Version History
Version | Date | Content |
---|---|---|