I generate a String array of e-mail recipients, then supply it as a $value to a Velocity operation binding. The format is
"Tom Jones" <tom@jones.com>, "Shirley Bassey" <shirley@bassey.com>
The issue is, if I supply the array to the CC element...
...this provokes the following error:
Encountered "#end" at notProvided[line 1, column 1]
Was expecting one of:
<EOF>
"(" ...
<RPAREN> ...
<ESCAPE_DIRECTIVE> ...
<SET_DIRECTIVE> ...
"##" ...
"\\\\" ...
"\\" ...
<TEXT> ...
"*#" ...
"*#" ...
<STRING_LITERAL> ...
<IF_DIRECTIVE> ...
<STOP_DIRECTIVE> ...
<INTEGER_LITERAL> ...
<FLOATING_POINT_LITERAL> ...
<WORD> ...
<BRACKETED_WORD> ...
<IDENTIFIER> ...
<DOT> ...
"{" ...
"}"
Enclosing the content in a CDATA block does not change results.
However, if I supply the array to the message body, as...
...then all works fine: No errors, and the e-mail values are parsed into the e-mail's CC field.
I'm following the documentation here: http://www.smartclient.com/smartgwtee/javadoc/com/smartgwt/client/docs/serverds/Mail.html#cc.
Is this an issue? Or a lack of comprehension on my part?
In either case, I have functioning code, but I am wondering and trying to understand this better.
Thanks.
SmartClient Version: v8.2p_2013-06-05/PowerEdition Deployment (built 2013-06-05)
IE8
"Tom Jones" <tom@jones.com>, "Shirley Bassey" <shirley@bassey.com>
The issue is, if I supply the array to the CC element...
Code:
<cc>#foreach(${reconciler} in ${values.RECONCILER})${reconciler}#if( $velocityCount != ${values.RECONCILER.size()} ), #end #end</cc>Encountered "#end" at notProvided[line 1, column 1]
Was expecting one of:
<EOF>
"(" ...
<RPAREN> ...
<ESCAPE_DIRECTIVE> ...
<SET_DIRECTIVE> ...
"##" ...
"\\\\" ...
"\\" ...
<TEXT> ...
"*#" ...
"*#" ...
<STRING_LITERAL> ...
<IF_DIRECTIVE> ...
<STOP_DIRECTIVE> ...
<INTEGER_LITERAL> ...
<FLOATING_POINT_LITERAL> ...
<WORD> ...
<BRACKETED_WORD> ...
<IDENTIFIER> ...
<DOT> ...
"{" ...
"}"
Enclosing the content in a CDATA block does not change results.
However, if I supply the array to the message body, as...
Code:
Cc: #foreach(${reconciler} in ${values.RECONCILER})${reconciler}#if( $velocityCount != ${values.RECONCILER.size()} ), #end #endI'm following the documentation here: http://www.smartclient.com/smartgwtee/javadoc/com/smartgwt/client/docs/serverds/Mail.html#cc.
Is this an issue? Or a lack of comprehension on my part?
In either case, I have functioning code, but I am wondering and trying to understand this better.
Thanks.
SmartClient Version: v8.2p_2013-06-05/PowerEdition Deployment (built 2013-06-05)
IE8