I had some problems with <s:select> and the people of this list was very kind to clear it out. Now I am struggling to make <s:radio> work the way it should, but I am not having success.

This is the code:
<s:radio name="autoridade.sexo" list="#{'M':'Masculino', 'F':'Feminino'}" label="Sexo" value="%{autoridade.sexo}" />

autoridade.sexo is of type String.
Struts version is 2.0.6

I tried replacing %{autoridade.sexo} with F or M to see it working, but it didn“t. Then I found this thread:
http://forums.opensymphony.com/thread.jspa?messageID=29105&#29105
and changed to %{'F'} or %{'M'} and it did work ok.

But how can I make it work with the data that autoridade.sexo holds?

Thank you all,
--
Rafael Dittberner


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

Reply via email to