Seems I have to supply the form='action' parameter -- I thought the
default was to call the current action again, but this doesn't seem to
be the case.
thx
m
On Jan 16, 11:56 pm, Matt <[EMAIL PROTECTED]> wrote:
> Note that if I force the issue at the end of the controller:
>
> return formencode.htmlfill.render(render('/detail.mako'),
> errors=c.form_errors)
>
> I get the errors I expect -- so it seems htmlfill is working properly
> -- perhaps the decorator is broken? I'm using 0.9.6.1
>
> thx
>
> m
>
> On Jan 16, 11:36 pm, Matt <[EMAIL PROTECTED]> wrote:
>
> > 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
-~----------~----~----~----~------~----~------~--~---