|
This file is excluded in the build script. However, I need it.
If you compile this file, you get this error:
[javac]
...\framework\webapp\src\org\ofbiz\webapp\ftl\FreeMarkerViewRenderer.java:82
:
prepOfbizRoot(java.util.Map<java.lang.String,java.lang.Object>,javax.servlet
.http.HttpServletRequest,javax.servlet.http.HttpServletResponse) in
org.ofbiz.webapp.ftl.FreeMarkerViewHandler cannot be applied to
(freemarker.template.SimpleHash,javax.servlet.http.HttpServletRequest,javax.
servlet.http.HttpServletResponse)
[javac] FreeMarkerViewHandler.prepOfbizRoot(root, request,
response);
This file have been modified to use
SimpleHash root = new SimpleHash(wrapper)
in the old code
Map root = new HashMap()
FreeMarkerViewHandler.prepOfbizRoot() requires a Map as its first argument.
SimpleHash does not implement Map interface (sadly).
How to fix this? (To get me going, I just reverted to the old code)
Thanks
Skip
|