public final class MessageMethod extends AbstractMessageHelper implements freemarker.template.TemplateMethodModelEx
Returns an I18N message resolved for the current locale and specified message ID.
Firstly the service resource for the parent WebScript will be used for the lookup, followed by the global webscripts.properties resource bundle.
Usage: message(String id)
| Constructor and Description |
|---|
MessageMethod(WebScript webscript)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
Object |
exec(List args) |
resolveMessagepublic MessageMethod(WebScript webscript)
webscript - WebScriptpublic Object exec(List args) throws freemarker.template.TemplateModelException
exec in interface freemarker.template.TemplateMethodModelexec in interface freemarker.template.TemplateMethodModelExfreemarker.template.TemplateModelExceptionTemplateMethodModel.exec(java.util.List)Copyright © 2005–2019 Alfresco Software. All rights reserved.