Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

@SpringBean.name has been deprecated and replaced with @SpringBean.id which aligns much better with spring.

You no longer need to call setComponentInstantiationListener(new SpringComponentInjector(...)), this will be done for you so this module is now zero-install - just have the jar on the classpath.

Validation Changes

Form component level validation has been decoupled from FormComponent so that validators can be reused outside wicket. The new API can be found in wicket.validation package, with the validator implementations in wicket.validation.validator. From the point of view of validator development not much has changed if you extended the AbstractValidator; if you however implemented the IValidator interface directly you will need to use the new API, namely error reporting via ValidationError instead of FormComponent.error(List,Map). Errors with messages fully constructed inside the validator can still be reported using FormComponent.error(String).

...