Luckily, most of tapestry is coded to interfaces. In this instance, tapestry
requires an instance of ValidationTracker and not the concrete
ValidationTrackerImpl. So, you can use the delegate pattern instead of
inheritance.

eg:

public ValidationTracker getMyTracker() { 
   final ValidationTracker delegate = new ValidationTrackerImpl();
   return new ValidationTracker() {
      public void recordError(Field field, String errorMessage) { 
         flagError(field); // TODO: implement this 
         delegate.recordError(field, errorMessage); 
      } 

      // implement all other methods to call delegate.X()
   };
} 



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/onValidate-get-list-of-fields-containing-validation-errors-tp5716549p5716581.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

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

Reply via email to