Hi,
I'm using the radiomap template but creating the value list with the OGNL:
#tag( Radio "template=/template/custom/radiomap.vm" "label='Com visita?'"
"labelposition=top" "name
='comVisita'" "list=#{ 'SIM' : '0' , 'N�O' : '1' }" "listValue=top.key"
"listKey=top.value" )
The property "comVisita" on my model bean is an Integer variable with expected values
0 or 1 (it's a
long history why it can't be boolean:) ... the initial value is 0 (SIM == YES) ... but
it's not
beeing checked.
The template uses $tag.contains($parameters.nameValue, $itemKey) to check or not, but
I have no idea
how it works :(
My last try was successfull ... I just changed the if clause to:
( "$parameters.nameValue" == "$itemKey" )
And everything works just fine.
In fact I believe It'll work even with lists populated by the action ...
thanks :)
+ 55 (11) 4417 7093
+ Business Application Dpt.
+ Netset Servi�os em Tecnologia
+ a Hypercom Company
+ http://www.hypercom.com
-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork