Hi!


I dunno since when it stopped working, but it is working with TurboGears
0.9a1dev-r886 and stopped working somewhere after it (it still doesn't work on
r943, I've just updated and tested):


    widgets.RadioButtonList(name = 'tipo_liberacao_laudo',
                            label = lazy_gettext(u'Tipos de Liberações de 
Laudos'),
                            options = [['1', lazy_gettext(u'Faixas de valores'),
                                         dict(checked="True", onfocus = 
'makeVisible(this.form.faixa)')],
                                       ['2', lazy_gettext(u'Três estados 
(Positivo, Negativo, Indeterminado)'),
                                         dict(onfocus = 
'makeInvisible(this.form.faixa)')],
                                       ['3', lazy_gettext(u'Aprovação manual'),
                                         dict(onfocus = 
'makeInvisible(this.form.faixa)')],
                                       ],
                            validator = validators.Int(not_empty = True),
                            ),


This should create a list of 3 radio buttons with the first selected by
default.  Then when I passed my data dictionary for this form a value like

          tipo_liberacao_laudo = 2

the second option should be selected.  Unfortunately, this is not happening
anymore.  The first option stays selected.  If I ommit the "checked = True"
then no option is selected.

Is there something wrong with my update to the new widgets or should I file a
bug on this?


TIA,
-- 
Jorge Godoy      <[EMAIL PROTECTED]>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears Trunk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears-trunk
-~----------~----~----~----~------~----~------~--~---

Reply via email to