Gary Doades <[EMAIL PROTECTED]> writes:

> One more question if I may. How to change the attributes of statically 
> declared form fields at runtime. I need to set some fields to readonly 
> or change the maxlength of a TextField for example. What's the best way 
> to do this per request?

Hmmm...  You can't change some things after you instantiated your widget.  The
best way that I know that would work is using AJAX to get the values from the
application and then changing the aspect of the form with your callback.  

But depending on what you want to change it might be possible by passing a
dict to your widget on your view.

-- 
Jorge Godoy      <[EMAIL PROTECTED]>

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