PiRSquared17 / wicket-guide

Automatically exported from code.google.com/p/wicket-guide
0 stars 0 forks source link

Faulty IValidator example on pg 87 of section 10.2.5 Creating custom validators #13

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
@Override
protected void onValidate(IValidatable<String> validatable) {
  String chosenUserName = validatable.getValue();
  if(existingUsernames.contains(chosenUserName))
    error(validatable); // FIXME: This is a compile time error
    // replace with: validatable.error(new ValidationError(this));
}

Original issue reported on code.google.com by p...@bors.ws on 13 May 2013 at 11:40

GoogleCodeExporter commented 9 years ago
Actually, the whole AbstractValidator class has been deprecated. I will modify 
the code and the relative paragraph as you suggest. 

Original comment by an.delb...@gmail.com on 14 May 2013 at 10:02

GoogleCodeExporter commented 9 years ago

Original comment by an.delb...@gmail.com on 22 May 2013 at 10:46

GoogleCodeExporter commented 9 years ago

Original comment by an.delb...@gmail.com on 30 May 2013 at 11:44