[Zope3-Users] z3c.form: Howto include validation errors into a
custom pagetemplate?
Stephan Richter
srichter at cosmos.phy.tufts.edu
Tue Aug 14 14:43:51 EDT 2007
On Tuesday 14 August 2007 06:45, Peter Piehler wrote:
> i have a spreadsheet like z3c.formdemo spreadsheet.
> I copy and paste
> <ul class="errors"
> tal:condition="view/widgets/errors"
> metal:define-macro="errors">
> <li tal:repeat="error view/widgets/errors">
> <tal:block condition="error/widget">
> <span tal:replace="error/widget/label" />:
> </tal:block>
> <span tal:replace="structure error/render">Error Type</span>
> </li>
> </ul>
> from formui.table-form.pt into my pagetemplate. "view/widgets/errors"
> seems to be empty but validation error occurs.
> What should i do to display validation errors?
Hi Peter,
this is too simplistic. The spreadsheet is not the add or edit form, but each
row is. So you would need to keep track of the edit row and access it to
display all the errors. Have a closer look at the spreadsheet code again.
Regards,
Stephan
--
Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
More information about the Zope3-users
mailing list