> ValidationTrackerImpl is final, so I cannot extend this class. But I found
ValidationTrackerWrapper class, maybe I should extend this?
Sounds good to me
> Do I set it as a persisted property?
It depends on which tapestry version you are using. Later versions of
tapestry will NOT need flash persistence. Later versions of tapestry do a
forward for validation errors instead of a redirect after post. This avoids
session creation for validation errors.
> And where do I set it's value?
It's probably easiest to lazy init a field in a getter instead of @Property
private ValidationFieldTracker validationTracker;
public ValidationFieldTracker getValidationTracker() {
if (validationTracker = null) {
validationTracker = new ValidationFieldTracker(new
ValidationTrackerImpl());
}
return validationTracker;
}
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Form-server-side-validation-in-zone-tp5718026p5718136.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]