You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "Jacques Le Roux (JIRA)" <ji...@apache.org> on 2017/02/24 10:52:44 UTC
[jira] [Commented] (OFBIZ-9230) Missing reference to the delegator
in framework/widget/templates/HtmlFormMacroLibrary.ftl
[ https://issues.apache.org/jira/browse/OFBIZ-9230?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15882447#comment-15882447 ]
Jacques Le Roux commented on OFBIZ-9230:
----------------------------------------
The reason is in the context of a FTL macro we lose the delegator (in context) when calling
executeMacro(writer, sr.toString());
from
MacroFormRenderer.renderTextField()
So we need to find a way to pass the delegator to be used when evaluating the Freemarker template. For now I have simply added a clearer explanation of the reason at r1784259
> Missing reference to the delegator in framework/widget/templates/HtmlFormMacroLibrary.ftl
> -----------------------------------------------------------------------------------------
>
> Key: OFBIZ-9230
> URL: https://issues.apache.org/jira/browse/OFBIZ-9230
> Project: OFBiz
> Issue Type: Bug
> Components: ALL COMPONENTS
> Affects Versions: Trunk
> Reporter: Wei Zhang
> Assignee: Jacques Le Roux
> Priority: Minor
>
> To reproduce
> 1. Load test data <SystemProperty systemResourceId="widget" systemPropertyId="widget.autocompleter.defaultMinLength" systemPropertyValue="3"/>
> 2. Open https://localhost:8443/partymgr/control/main
> 3. You will still get warning below in log file
> {quote}
> 2017-02-24 12:56:16,348 |http-nio-8443-exec-7 |EntityUtilProperties |I| Could not get a system property for widget.autocompleter.defaultMinLength : null
> {quote}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)