Class FreemarkerUtil
java.lang.Object
org.apache.tiles.request.freemarker.autotag.FreemarkerUtil
Utilities for FreeMarker usage in Tiles.
- 
Method SummaryModifier and TypeMethodDescriptionstatic <T> TgetAsObject(freemarker.template.TemplateModel model, Class<T> type, T defaultValue) Unwraps a TemplateModel to extract an object.
- 
Method Details- 
getAsObjectpublic static <T> T getAsObject(freemarker.template.TemplateModel model, Class<T> type, T defaultValue) Unwraps a TemplateModel to extract an object.- Parameters:
- model- The TemplateModel to unwrap.
- defaultValue- The default value, as specified in the template model, or null if not specified.
- Returns:
- The unwrapped object.
 
 
-