> From: "Marc Lustig" <[EMAIL PROTECTED]>
> 
> #macro (valTextFeld $bezeichnung $feld $size)
> <tr><td align="right">$bezeichnung</td><td>
> <input type="Text" name="$feld.Key" value="$!feld" size="$size">
> #if (!$feld.isValid())
> <span style="color: red">$feld.Message</span>
> #end
> 
> After the form is processed with invalid fields, the error messages do
> appear, but not the values that have been typed into the input-field before.
> 
> after $feld=mygroup.myfield
> "$!feld" seems not to work.
Try $!field.Value
> 
> Is it necessary to use "$!mygroup.myfield" explicitly ?
> Or do you know a work around to use ?
> 
> (I'm not quite sure what this "$!xxx" syntax is all about. Maybe it is
> explained in Velocity how-to.)
Most likely it is explained there.  The '!' means 'don't print anything if
the expression evaluates to null' - without the '!' the expression itself
will be printed.

Scott
-- 
Scott Eade
Backstage Technologies Pty. Ltd.
http://www.backstagetech.com.au



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to