I have a tg2 appliation with a  ToscWidgets form to edit a data record. The form
consists of TextField, TextArea, and SingleSelectField widgets plust a
HiddenField widget. To be able to edit a record I need to fill the form with the
existing data. However, documentation at
http://www.turbogears.org/2.0/docs/main/ToscaWidgets/forms.html#advanced-exercise
only deals with SingleSelectField options and doesn't even talk about setting
the correct select value by default. I spent hours trying to set default
properties of all of the widgets in my template in every way I could think of,
but alas this 'exercise for the reader' is beyond my comprehension at the
moment. Reading tw source didn't help me understand the process either. If
someone has working code for setting default values for TextField, TextArea,
SingleSelectField, and HiddenField widgets please share it or point me to any
other shred of documentation that would help me understand how to do it.

Thank you,

Alex.

--~--~---------~--~----~------------~-------~--~----~
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