/[Apache-SVN]
ViewVC logotype

Revision 1856524


Jump to revision: Previous Next
Author: nmalin
Date: Fri Mar 29 08:28:15 2019 UTC (5 years ago)
Changed paths: 2
Log Message:
Improved: Configure stackTrace displaying on ftl rendering
(OFBIZ-10817)

When freemarker failed to execute a template, you have on end screen rendered all java stack trace generated.

I improve this to display the stack trace only when widget is on verbose, no regression during development and when you switch to production site, in general your widget verbose is off so end user haven't stack trace and replace it by ∎ (that totally unused for them but help to detect a problem).

I also introduce two new properties on widget.properties:
    widget.freemarker.template.verbose : if your widget verbose is off and you want display the freemarker stacktrace when your template generate an exception set it to true
    widget.freemarker.template.exception.message : 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 ' '

Thanks to Deepak Dixit, Jacques Le Roux, Michael Brohl and Mathieu Lirzin for their suggest

Changed paths

Path Details
Directoryofbiz/ofbiz-framework/trunk/framework/base/src/main/java/org/apache/ofbiz/base/util/template/FreeMarkerWorker.java modified , text changed
Directoryofbiz/ofbiz-framework/trunk/framework/widget/config/widget.properties modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26