Re: [Zope3-Users] z3c.form: Howto include validation errors into a custom pagetemplate?
Am Dienstag, 14. August 2007 12:45 schrieb Peter Piehler: > Hello, > > i have a spreadsheet like z3c.formdemo spreadsheet. > I copy and paste > tal:condition="view/widgets/errors" > metal:define-macro="errors"> > > > : > > Error Type > > > 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? Are you sure that view/widgets/errors are empty? I'd recommend to check that in the view class - maybe it's only a pagetemplate problem. Moreover there was some problem with z3c.form + invariants, so if you use invariants, I'd recommend you to upgrade to the latest SVN-Version of z3c.form / z3c.formui. At least for me, validation works. Regards, Hermann -- [EMAIL PROTECTED] GPG key ID: 299893C7 (on keyservers) FP: 0124 2584 8809 EF2A DBF9 4902 64B4 D16B 2998 93C7 ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] z3c.form: Howto include validation errors into a custom pagetemplate?
On Tuesday 14 August 2007 06:45, Peter Piehler wrote: > i have a spreadsheet like z3c.formdemo spreadsheet. > I copy and paste > tal:condition="view/widgets/errors" > metal:define-macro="errors"> > > > : > > Error Type > > > 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 ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users