It might be that your Map #{ 'SIM' : '0' , 'NÃO' : '1' }
Is going from String->Character, rather than String->Integer. Try: #{ 'SIM' : 0 , 'NÃO' : 1 } Patrick > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Samuel Mota > Sent: Tuesday, February 03, 2004 6:40 AM > To: [EMAIL PROTECTED] > Subject: [OS-webwork] Radiomap not checked > > 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 ------------------------------------------------------- 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