Hi Isomorphic,
I'm using your mail feature inside a data binding. It works like a charm, but sends our unescaped characters when used with text fields from the database.
I defined all my type="text"-fields with escapeHTML="true", but the javadocs state that this only affects databound components.
So I have to escape my output some other way and found the Velocity Escape Tool. I included all the dependencies for velocity-tools-generic-2.0.jar (and the jar itself) in my buildpath (most likely unneeded) and in my war/WEB-INF/lib.
Unfortunately this is apparently not enough to use the tools. Is there something missing? From the velocity docs it get that I might need an
but I don't know where / in which file.
Is there some way to configure the Velocity instance SmartGWT uses? This is the output from the server log regarding Velocity on startup:
I only found one older unanswered related thread in the forums.
Thank you,
Blama
I'm using your mail feature inside a data binding. It works like a charm, but sends our unescaped characters when used with text fields from the database.
I defined all my type="text"-fields with escapeHTML="true", but the javadocs state that this only affects databound components.
So I have to escape my output some other way and found the Velocity Escape Tool. I included all the dependencies for velocity-tools-generic-2.0.jar (and the jar itself) in my buildpath (most likely unneeded) and in my war/WEB-INF/lib.
Unfortunately this is apparently not enough to use the tools. Is there something missing? From the velocity docs it get that I might need an
Code:
<tool>
<key>esc</key>
<scope>application</scope>
<class>org.apache.velocity.tools.generic.EscapeTool</class>
</tool>Is there some way to configure the Velocity instance SmartGWT uses? This is the output from the server log regarding Velocity on startup:
Code:
=== 2014-08-25 22:56:55,882 [c-13] DEBUG Velocity - SimpleLog4JLogSystem using category 'org.apache.Velocity'
=== 2014-08-25 22:56:55,882 [c-13] DEBUG Velocity - Initializing Velocity, Calling init()...
=== 2014-08-25 22:56:55,882 [c-13] DEBUG Velocity - *******************************************************************
=== 2014-08-25 22:56:55,882 [c-13] DEBUG Velocity - Starting Apache Velocity v1.7 (compiled: 2010-11-19 12:14:37)
=== 2014-08-25 22:56:55,882 [c-13] DEBUG Velocity - RuntimeInstance initializing.
=== 2014-08-25 22:56:55,882 [c-13] DEBUG Velocity - Default Properties File: org\apache\velocity\runtime\defaults\velocity.properties
=== 2014-08-25 22:56:55,882 [c-13] DEBUG Velocity - Trying to use logger class org.apache.velocity.runtime.log.SimpleLog4JLogSystem
=== 2014-08-25 22:56:55,882 [c-13] DEBUG Velocity - LogSystem has been deprecated. Please use a LogChute implementation.
=== 2014-08-25 22:56:55,887 [c-13] DEBUG Velocity - Default ResourceManager initializing. (class org.apache.velocity.runtime.resource.ResourceManagerImpl)
=== 2014-08-25 22:56:55,894 [c-13] DEBUG Velocity - ResourceLoader instantiated: org.apache.velocity.runtime.resource.loader.FileResourceLoader
=== 2014-08-25 22:56:55,897 [c-13] DEBUG Velocity - FileResourceLoader : initialization starting.
=== 2014-08-25 22:56:55,897 [c-13] DEBUG Velocity - Do unicode file recognition: false
=== 2014-08-25 22:56:55,897 [c-13] DEBUG Velocity - FileResourceLoader : adding path ''
=== 2014-08-25 22:56:55,897 [c-13] DEBUG Velocity - FileResourceLoader : initialization complete.
=== 2014-08-25 22:56:55,909 [c-13] DEBUG Velocity - ResourceCache: initialized (class org.apache.velocity.runtime.resource.ResourceCacheImpl) with class java.util.Collections$SynchronizedMap cache map.
=== 2014-08-25 22:56:55,909 [c-13] DEBUG Velocity - Default ResourceManager initialization complete.
=== 2014-08-25 22:56:55,912 [c-13] DEBUG Velocity - Loaded System Directive: org.apache.velocity.runtime.directive.Stop
=== 2014-08-25 22:56:55,915 [c-13] DEBUG Velocity - Loaded System Directive: org.apache.velocity.runtime.directive.Define
=== 2014-08-25 22:56:55,916 [c-13] DEBUG Velocity - Loaded System Directive: org.apache.velocity.runtime.directive.Break
=== 2014-08-25 22:56:55,918 [c-13] DEBUG Velocity - Loaded System Directive: org.apache.velocity.runtime.directive.Evaluate
=== 2014-08-25 22:56:55,920 [c-13] DEBUG Velocity - Loaded System Directive: org.apache.velocity.runtime.directive.Literal
=== 2014-08-25 22:56:55,922 [c-13] DEBUG Velocity - Loaded System Directive: org.apache.velocity.runtime.directive.Macro
=== 2014-08-25 22:56:55,926 [c-13] DEBUG Velocity - Loaded System Directive: org.apache.velocity.runtime.directive.Parse
=== 2014-08-25 22:56:55,929 [c-13] DEBUG Velocity - Loaded System Directive: org.apache.velocity.runtime.directive.Include
=== 2014-08-25 22:56:55,931 [c-13] DEBUG Velocity - Loaded System Directive: org.apache.velocity.runtime.directive.Foreach
=== 2014-08-25 22:56:55,998 [c-13] DEBUG Velocity - Created '20' parsers.
=== 2014-08-25 22:56:56,015 [c-13] DEBUG Velocity - Velocimacro : initialization starting.
=== 2014-08-25 22:56:56,015 [c-13] DEBUG Velocity - Velocimacro : "velocimacro.library" is not set. Trying default library: VM_global_library.vm
=== 2014-08-25 22:56:56,015 [c-13] DEBUG Velocity - Velocimacro : Default library not found.
=== 2014-08-25 22:56:56,016 [c-13] DEBUG Velocity - Velocimacro : allowInline = true : VMs can be defined inline in templates
=== 2014-08-25 22:56:56,016 [c-13] DEBUG Velocity - Velocimacro : allowInlineToOverride = false : VMs defined inline may NOT replace previous VM definitions
=== 2014-08-25 22:56:56,016 [c-13] DEBUG Velocity - Velocimacro : allowInlineLocal = false : VMs defined inline will be global in scope if allowed.
=== 2014-08-25 22:56:56,016 [c-13] DEBUG Velocity - Velocimacro : autoload off : VM system will not automatically reload global library macros
=== 2014-08-25 22:56:56,016 [c-13] DEBUG Velocity - Velocimacro : Velocimacro : initialization complete.
=== 2014-08-25 22:56:56,016 [c-13] DEBUG Velocity - RuntimeInstance successfully initialized.Thank you,
Blama