My bad, 'default' work OK for TextField but not for SingleSelectField
Any suggestions??

On Nov 19, 9:46 pm, Gerry <[EMAIL PROTECTED]> wrote:
> Hello,
>
> With tw.forms TextField and SingleSelectField, how do you pass a
> default value to the field?
> I am creating a TextField widget in my controller, passing it to my
> template and using widget.display() to display it.
> How do I populate the widget with a value I extract from my database.
> Likewise with SingleSelectField, I can see how to populate the options
> but how to pass the default option?
>
> I have seen similar questions on the TG newsgroup but no clear answer.
>
> Thanks in advance,
>
> Jerry.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" 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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to