On 7/8/07, Al Abut <[EMAIL PROTECTED]> wrote:
> Does using a newform shortcut make things that much easier from a
> programmatic standpoint? Or to ask the opposite, is using <input/> and
> <textarea/> elements in a template make things that much harder for
> things like data validation?

Well, the thing to remember is that you're not just displaying an
empty input element -- it's fairly common, due to the data validation
step, to have to go back and show the form again with values filled
in. Which raises the question of how you take the

<input type="text" class="foo" />

in the original form and turn it into

<input type="text" class="foo" value="Some bad text here" />

after the validation step -- if you're just writing raw HTML form
elements you have no way of being able to fill in input, or indicate
selected elements, or handle pre-populated data... that's why the {{
form.fieldname }} shortcut exists.

-- 
"Bureaucrat Conrad, you are technically correct -- the best kind of correct."

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to