On Tuesday 07 March 2006 22:01, Tim Velten wrote:
> Oh, maybe I misunderstood.
> I thought the message should appear with and/or where the red stars
> appeared. Maybe it is just a marker of an error and I need to put the
> messages themselves on the page - where my design wants them - which
> Tapestry couldn't know.
You can do that yourself quite easily.
Make yourself a class which extends ValidationDelegate, and implement one of
the writeXXX routines (such as write writeSuffix)
public void writeLabelSuffix(IFormComponent component, IMarkupWriter
writer,
IRequestCycle cycle) {
- if (isInError(component)) {
- setFormComponent(component);
- IFieldTracking tracking = getComponentTracking();
- if (tracking != null) {
- IRender renderer = tracking.getErrorRenderer();
- renderer.render(writer,cycle);
- }
- writer.end();
- }
}
--
Alan Chandler
http://www.chandlerfamily.org.uk
Open Source. It's the difference between trust and antitrust.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]