|
From: <jue...@we...> - 2004-12-08 13:00:22
|
Darren, can you please have a look at this?
=20
Juergen
=20
________________________________
Von: spr...@li... im Auftrag =
von Roberto Cosenza
Gesendet: Mi 08.12.2004 12:11
An: spr...@li...
Betreff: [Springframework-developer] Bug in velocity macro
The springFormSingleSelect contain a bug.
#macro( springFormSingleSelect $path $options $attributes )
#springBind($path)
<select name=3D"${status.expression}" ${attributes}>
#foreach($option in $options.keySet())
<option value=3D"${option}"
---->> #if($status.value && $status.value =3D=3D $option)
selected=3D"true"
#end>
${options.get($option)}
</option>
#end
</select>
#end
If $status.value contains the string "false", the condition is never
evaluated.
Note that checkbox variant of the macro does not check the variable
existence itself.
/Roberto & Fredrik
--
Roberto Cosenza
Infoflex Connect AB, Sweden
Tel: +46-(0)8-55576860, Fax: +46-(0)8-55576861
--
Nordic Messaging Technologies is a trademark of Infoflex Connect.
Please visit www.nordicmessaging.se for more information about our
carrier-grade messaging products.
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
Springframework-developer mailing list
Spr...@li...
https://lists.sourceforge.net/lists/listinfo/springframework-developer
|