Class MessageMethod
- java.lang.Object
-
- org.springframework.extensions.webscripts.AbstractMessageHelper
-
- org.springframework.extensions.webscripts.MessageMethod
-
- All Implemented Interfaces:
freemarker.template.TemplateMethodModel,freemarker.template.TemplateMethodModelEx,freemarker.template.TemplateModel
public final class MessageMethod extends AbstractMessageHelper implements freemarker.template.TemplateMethodModelEx
- Author:
- Kevin Roast
Custom FreeMarker method for returning an I18N message string.
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 Summary
Constructors Constructor Description MessageMethod(WebScript webscript)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectexec(java.util.List args)-
Methods inherited from class org.springframework.extensions.webscripts.AbstractMessageHelper
resolveMessage
-
-
-
-
Constructor Detail
-
MessageMethod
public MessageMethod(WebScript webscript)
Constructor- Parameters:
webscript- WebScript
-
-
Method Detail
-
exec
public java.lang.Object exec(java.util.List args) throws freemarker.template.TemplateModelException- Specified by:
execin interfacefreemarker.template.TemplateMethodModel- Specified by:
execin interfacefreemarker.template.TemplateMethodModelEx- Throws:
freemarker.template.TemplateModelException- See Also:
TemplateMethodModel.exec(java.util.List)
-
-