Dave Rathnow wrote: > I have written a component that contains text fields that need to be validated > when a page is submitted but I can't figure out how component validation > hooks into Tapestry's validation framework. I can access my validation > delegate > in my page component but how can I get the validation delegate from my > component?
You use per Form one instance of validation delegate. It tracks the validation errors which the components report. This happends from itself, you just need to define the validators on the fields. > > Also, is there an easy way to get the individual error messages from the > validation delegate? I want to put individual validation errors messages > next to each field rather than have a single message at the top of the page > and then ** beside each of the errored field. In such a case you need to create your own class, extending the standard validation delegate. There are methods which allow the delegate to hook up into the rendering of fields and their labels, so you can do just what you described. > > Thanks, > Dave. > Please, Ron --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]