It turns out that the problem wasn't what I thought it was, so the code wouldn't be relevant now anyway. I was more asking a general question though.
The 'standard' form widgets display text showing when their content doesn't validate properly. If I was to write my own widget from scratch and wanted to have a similar behavior, how would I do so? The link to error handling on the wiki assumes you're using the existing widgets and doesn't (unless i missed it) cover how to build the automatic behavior into widgets. On a related note - is it possible to change how the standard widgets respond to validation errors? For instance, instead of displaying the text next to the form element, what if I wanted to change the element's background color and display an image of a stop sign next to the form element? Could I use a different color and image depending on what type of validation error it was? Thanks again -Ryan On Jun 25, 11:39 am, Christoph Zwerschke <[EMAIL PROTECTED]> wrote: > kerinin schrieb: > > I'm working on awidgetand I can't figure out how to make theerror > > handling magic happen. When i have errors in the form, things just > > crash if i'm using mywidgetin the TableForm. > > ... > > > Anyone have experience with this? I've created a new widget that I'm > > trying to use with TableForm, but every time there's a validation > > error the site chokes because the widget doesn't know how to handle > > the error. Am I missing something? > > Everything you need to know is > here:http://docs.turbogears.org/1.0/ErrorHandling > > People would be probably more responsive if you'd either show your code > (not only the widget, but also how you are using it in the controller) > or explain what exactly you mean with "site chokes" or "things crash"... > > -- Chris --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears" 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/turbogears?hl=en -~----------~----~----~----~------~----~------~--~---

