The code goes through web services and class libraries and all sorts of leaping around, but the Child object definitely contains the required detail.
As soon as I add any formal reference (ie: ${Blah.Blah}) it breaks the template and sends a blank email.
Is this a symptom of a bad template file, or am I dropping the values somehow? If I drop formal references and make them literal string values (instead of passing an object to the template) it works fine.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Whether it's a bug or whether NVelocity was ported before this was implemented in Velocity, I'm not sure, but you should be able to use the workaround in that thread.
Cheers!
-Mike
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm having trouble using formal references in my current C# app.
Template.vm file (partial):
I just sponsored a child named ${FirstChild.FirstName} from...
C# code (partial):
templateValues.Add(new KeyValueItem("FirstChild", firstChild));
The code goes through web services and class libraries and all sorts of leaping around, but the Child object definitely contains the required detail.
As soon as I add any formal reference (ie: ${Blah.Blah}) it breaks the template and sends a blank email.
Is this a symptom of a bad template file, or am I dropping the values somehow? If I drop formal references and make them literal string values (instead of passing an object to the template) it works fine.
Hi-
I believe this is the same issue as with with the directives:
https://sourceforge.net/forum/message.php?msg_id=4293443
Whether it's a bug or whether NVelocity was ported before this was implemented in Velocity, I'm not sure, but you should be able to use the workaround in that thread.
Cheers!
-Mike