The widgets macros are now usable in the FTL files also.
Using these macros in FTL should improve code reuse and avoid having different HTML between widgets based screens and FTL based ones. This has been developed in OFBIZ-3541. Thank you Bilgin and Jacques for reviewing and improving the patch. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@920115 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -84,6 +84,7 @@ public class FreeMarkerWorker {
|
||||
newConfig.setLocalizedLookup(false);
|
||||
newConfig.setSharedVariable("StringUtil", new BeanModel(new StringUtil(), wrapper));
|
||||
newConfig.setTemplateLoader(new FlexibleTemplateLoader());
|
||||
newConfig.setAutoImports(UtilProperties.getProperties("freemarkerImports"));
|
||||
try {
|
||||
newConfig.setSetting("datetime_format", "yyyy-MM-dd HH:mm:ss.SSS");
|
||||
newConfig.setSetting("number_format", "0.##########");
|
||||
|
||||
Reference in New Issue
Block a user