Versions Compared

Key

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

...

Wicket does not manage the lifecycle of its components. This means that a page or a component can be created anywhere in the code by simply using the new operator. This makes it difficult to inject dependencies because it is difficult to intercept the creation of the component. A possible solution can be to use a singleton factory to create the components and subsequently inject them with dependencies. However, this approach is not very flexible because it is often more conveient convenient to have specific constructors in components rather than the default empty constructor. ie

...