Hi there, I wish to set the error class attribute on a input tag when it fails a validation.
This is very similar to the Workbench.Fields example except we already have a class attribute assigned to the field in the html template. In the 'Workbench.Fields example the 'class' attribute is written out in the 'WorkbenchValidationDelegate.writeAttributes()' method. However in my case the class is already present in the html and so the delegate simply writes out another one. I end up with two class attributes in the input tag. The work-around I have put in is to override one of the ValidationDelegate.record() methods to try and update the class binding before it gets written out. The other problem is that the current component is not visible in a class extending the validation delegate so I've had to override the setFormComponent() method. The question i have is there a better way to 'update' the class attribute/binding rather than writing a new one? A request I have is to create a ValidationDelegate.getFormComponent() that returns the current component. Paul Jackson Meridian Informatics Phone: (02) 8233 7564 Mobile: 0418 855 496 ------------------------------------------------------- This sf.net email is sponsored by: OSDN - Tired of that same old cell phone? Get a new here for FREE! https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390 _______________________________________________ Tapestry-developer mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/tapestry-developer
