On 12/1/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Maybe I'm missing something, but is there any way to associate a Widget
> with a Form, or do those need to be instantiated separately?
>
> In all of the unit tests, the Forms only consist of a collection of
> Fields, but in almost every use case that I can think of, an HTML form
> will consist of combinations of both Fields and Widgets.  Sure, Widgets
> don't have validation, but one thing that I think makes these new Form
> objects great is that you can pass them around easily between the
> template and the view, etc.

I think you may be missing something. :) A Form is a collection of
Fields, which are validation / data types. Each Field has a Widget,
which is an HTML representation of the field.

Sorry for the lack of documentation on this so far, which is no doubt
the cause of the confusion. I added a small bit of explanation to the
unit tests yesterday, so that may help.

Adrian

-- 
Adrian Holovaty
holovaty.com | djangoproject.com

--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"Django developers" 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/django-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to