Versions Compared

Key

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

...

Since all modern java and web servers support compression of resources we dropped that feature from wicket. Usually servers not only support that feature but also are more flexible so there's no need for a redundant functionality that does not belong to a web framework but to the server itself.

StringResourceModel constructor argument order change

StringResourceModel has changed some of its constructors and modified the order of the arguments. The constructors with default values might introduce errors because the java compiler matches them, but their semantics have changed.

Code Block
java
java
titleWicket 1.4 StringResourceModel

public StringResourceModel(final String resourceKey, final Component component,
       final IModel<?> model, final Object[] parameters, final String defaultValue)

Became:

Code Block
java
java
titleWicket 1.5 StringResourceModel

public StringResourceModel(final String resourceKey, final Component component,
       final IModel<?> model, final String defaultValue, final Object... parameters)

If you used the 1.4 constructor, the compiler would now match the following (Wicket 1.5) constructor:

Code Block

public StringResourceModel(final String resourceKey, final Component component,
	final IModel<?> model, final Object... parameters)

Where the Object[] array is matched to the first parameter of the ellipsis and the defaultValue as the second parameter.

Removed IComponentBorder

The interface has been removed since IBehavior can do exactly the same. MarkupComponentBorder has been migrated, which means you can add associated markup to the behavior. Markup which will surround the behavior's component.

...