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
Yes I seen that, that's why I was asking if he had any other ideas.
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/onValidate-get-list-of-fields-containing-validation-errors-tp5716549p5716580.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
--
You can't override any methods in that class as it has a final modifier.
On Mon, Oct 1, 2012 at 8:18 AM, George Christman wrote:
> Hi Lance, I'm seeing the following compiling error "cannot inherit from
> final
> ValidationTrackerImpl". Any thoughts?
>
>
>
> --
> View this message in context:
> h
Hi Lance, I'm seeing the following compiling error "cannot inherit from final
ValidationTrackerImpl". Any thoughts?
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/onValidate-get-list-of-fields-containing-validation-errors-tp5716549p5716578.html
Sent from the Tapestry - U
You could pass your own implementation of ValidationTracker to the form.
...
public ValidationTracker getMyTracker() {
return new ValidationTrackerImpl() {
public void recordError(Field field, String errorMessage) {
flagError(field); // TODO: implement this
super