Author: cbrisson
Date: Wed Nov 12 05:03:48 2008
New Revision: 713359
URL: http://svn.apache.org/viewvc?rev=713359&view=rev
Log:
add an entry for runtime.references.strict in the default velocity.properties
Modified:
velocity/engine/trunk/src/java/org/apache/velocity/runtime/defaults/velocity.properties
Modified:
velocity/engine/trunk/src/java/org/apache/velocity/runtime/defaults/velocity.properties
URL:
http://svn.apache.org/viewvc/velocity/engine/trunk/src/java/org/apache/velocity/runtime/defaults/velocity.properties?rev=713359&r1=713358&r2=713359&view=diff
==============================================================================
---
velocity/engine/trunk/src/java/org/apache/velocity/runtime/defaults/velocity.properties
(original)
+++
velocity/engine/trunk/src/java/org/apache/velocity/runtime/defaults/velocity.properties
Wed Nov 12 05:03:48 2008
@@ -126,6 +126,17 @@
# ----------------------------------------------------------------------------
velocimacro.arguments.strict = false
+# ----------------------------------------------------------------------------
+# STRICT REFERENCE MODE
+# ----------------------------------------------------------------------------
+# if true, will throw a MethodInvocationException for references
+# that are not defined in the context, or have not been defined
+# with a #set directive. This setting will also throw an exception
+# if an attempt is made to call a non-existing property on an object
+# or if the object is null. When this property is true then property
+# 'directive.set.null.allowed' is also set to true.
+# ----------------------------------------------------------------------------
+runtime.references.strict = false
# ----------------------------------------------------------------------------
# INTERPOLATION