HI, I'm having some trouble getting the validate decorator to fill in
my form errors -- seems that the htmlfill isn't working. I can print
out self.form_errors:
{'internal_comment': u'Please enter a value'}
but the rendered form doesn't have the error in it:
<form action="/ui/content_save_detail/9b474cd9-6189-11dc-
ad9e-00e081411f3f" method="POST" onsubmit="new Ajax.Updater('detail',
'/ui/content_save_detail/9b474cd9-6189-11dc-ad9e-00e081411f3f',
{asynchronous:true, evalScripts:true,
parameters:Form.serialize(this)}); return false;">
<table class="generic">
...
<tr>
<td>Internal comment:</td>
<td colspan=3><textarea cols="80" id="internal_comment"
name="internal_comment" rows="5"></textarea></td>
</tr>
<tfoot>
<tr>
<td colspan=4 align=center>
<input id="save_detail_button" name="commit" onclick="$
('reset_detail_button').disabled = true;" type="submit" value="Save" /
>
<input id="reset_detail_button" name="commit" onclick="$
('save_detail_button').disabled = true;" type="submit" value="Reset" /
>
</td>
</tr>
<tfoot>
</table>
</form>
Is there something wrong with this form that's causing htmlfill not to
be able to fill in the errors?
thx
Matt
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pylons-discuss" 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/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---