[ 
https://issues.apache.org/jira/browse/OFBIZ-9230?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15882447#comment-15882447
 ] 

Jacques Le Roux edited comment on OFBIZ-9230 at 2/24/17 10:54 AM:
------------------------------------------------------------------

Thanks Zhang for report,

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



was (Author: jacques.le.roux):
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)

Reply via email to