You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Ray Nicholus <rn...@widen.com> on 2011/09/23 16:02:27 UTC

modifying the List of error messages in ValidationTracker

I'm trying to figure out a way to clear the list of error messages in
ValidationTracker without also clearing the state of the field tracker.  I
am attempting to create an aggregate of error messages for fields with the
same name in the ValidationTracker.  So far, I'm not seeing a way to
accomplish this since I am only able to call clear() on the
ValidationTracker which clears the state entirely.  As a result, I lose all
of the validation decorators around the fields in error.  Any ideas?

Re: modifying the List of error messages in ValidationTracker

Posted by Steve Eynon <st...@alienfactory.co.uk>.
Yep, clear() on the default implementation of the ValidationTracker
does clear all state held.

As ValidationTracker is an interface you could write your own
implementation and set it on the form using the tracker parameter.




On 23 September 2011 22:02, Ray Nicholus <rn...@widen.com> wrote:
> I'm trying to figure out a way to clear the list of error messages in
> ValidationTracker without also clearing the state of the field tracker.  I
> am attempting to create an aggregate of error messages for fields with the
> same name in the ValidationTracker.  So far, I'm not seeing a way to
> accomplish this since I am only able to call clear() on the
> ValidationTracker which clears the state entirely.  As a result, I lose all
> of the validation decorators around the fields in error.  Any ideas?
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org