Anton2 wrote: > Hi. > > I want to customise the TextField class to include error handling, so > that a display() of a TextField will display any error message (and > help text too, after...). > > Basically, I want to be able to trigger the logic used to display > label, field, error and helptext in TableForm (with a differnet > template), on a field by field basis in the kid template. > > Is it possible by just overloading the TextField template ? In this > case, how can I get the field object to call error_for(field) in the > template ? > > If this is not the right solution, what pointer can you give me to > solve this problem ? > > Many thanks
IIRC there should be an "error" variable available to the FormField template that gives you the field error. Ciao Michele --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

