|
[ https://issues.apache.org/jira/browse/OFBIZ-10817?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16810774#comment-16810774 ] Nicolas Malin commented on OFBIZ-10817: --------------------------------------- I test on trunk with this patch : {code:java} Index: applications/product/template/find/KeywordSearchBox.ftl =================================================================== --- applications/product/template/find/KeywordSearchBox.ftl (révision 1857002) +++ applications/product/template/find/KeywordSearchBox.ftl (copie de travail) @@ -35,7 +35,7 @@ <form name="keywordsearchform" id="keywordSearchForm" method="post" action="<@ofbizUrl>keywordsearch?VIEW_SIZE=25&PAGING=Y</@ofbizUrl>"> <fieldset> <div> - <label for="keywordSearchString">${uiLabelMap.ProductKeywords}:</label> + <label for="keywordSearchString">${uiLabelMapProductKeywords}:</label> <input type="text" name="SEARCH_STRING" id="keywordSearchString" size="20" maxlength="50" value="${requestParameters.SEARCH_STRING!}" /> </div> <div> Index: framework/widget/config/widget.properties =================================================================== --- framework/widget/config/widget.properties (révision 1857002) +++ framework/widget/config/widget.properties (copie de travail) @@ -25,7 +25,7 @@ # overridden in an application's web.xml file or in the screen rendering context. # A setting of false will override all other settings and disable all widget # boundary comments. -widget.verbose=true +widget.verbose=false # Default number of items to be displayed per page in a list form widget.form.defaultViewSize=20 @@ -48,4 +48,4 @@ # When you don't displaying freemarker stacktrace, you can replace it by an other message # by default it use ∎ but you can set what you want, like 'ERROR', '##' or ' ' -#widget.freemarker.template.exception.message= +widget.freemarker.template.exception.message=ERROR ERROR ERROR{code} And the result was !Sélection_236.png! I set verbose to true and !Sélection_237.png! Jacques for your case, I introduced {code:java} <#include test/>{code} and result {noformat} The following has evaluated to null or missing: ==> test [in template "component://product/template/find/KeywordSearchBox.ftl" at line 20, column 11{noformat} I restored verbose to false, the message has been replace by {code:java} ERROR ERROR ERROR{code} ... :) can you send me a patch to reproduce your pb ? > Configure stackTrace displaying on ftl rendering > ------------------------------------------------ > > Key: OFBIZ-10817 > URL: https://issues.apache.org/jira/browse/OFBIZ-10817 > Project: OFBiz > Issue Type: Improvement > Components: framework > Affects Versions: Trunk > Reporter: Nicolas Malin > Assignee: Nicolas Malin > Priority: Minor > Attachments: Failure.png, FailureSafe.png, OFBIZ-10817.patch, OFBIZ-10817.patch, OFBIZ-10817.patch, Sélection_236.png, Sélection_237.png > > > Currently when freemarker failed to execute a template, you have on end screen rendered all java stack trace generate. > I propose to improve this to display the stack trace only when the property widget.verbose is true, no regression during development and when you switch to production site, in general your widget.verbose is false so end user haven't stack trace (that totally unused for them). > -- This message was sent by Atlassian JIRA (v7.6.3#76005) |
| Free forum by Nabble | Edit this page |
