|
From: Roberto C. <rob...@in...> - 2004-12-08 11:09:35
|
The springFormSingleSelect contain a bug.
#macro( springFormSingleSelect $path $options $attributes )
#springBind($path)
<select name="${status.expression}" ${attributes}>
#foreach($option in $options.keySet())
<option value="${option}"
---->> #if($status.value && $status.value == $option)
selected="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.
|