Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: corrected getRequestCycleListeners().add call + relocated text about maven to the right place

...

(RC1) Maven users are recommended to depend on org.apache.wicket:wicket-core:jar from now on

(RC2) All standard (form) validators now extend Behavior.

This allows them to contribute to the component's markup, e.g. provide client-side validation.

org.apache.wicket:wicket:jar combines the classes from org.apache.wicket:wicket-core:jar, org.apache.wicket:wicket-util:jar and org.apache.wicket:wicket-request:jar. wicket.jar is recommended for users which don't use dependency management tools (like Maven, Ivy, Gradle, ...).
Maven users still can depend on org.apache.wicket:wicket:jar but this way they will not be able to automatically download sources and javadoc for this module.

(RC2) All standard (form) validators now extend Behavior.

This allows them to contribute to the component's markup, e.g. provide client-side validation.

Upgraded to JUNIT4

We changed the root pom.xml to use junit4 (4.7)

...

Code Block
titleIRequestCycleListener
borderStylesolid
public class SomeWebApplication extends WebApplication
{

	@Override
	protected void init()
	{
		addRequestCycleListener                getRequestCycleListeners().add(new IRequestCycleListener() {
		{

			public void onException(Exception ex)
			{
				// do something here whene there's an exception
			}

			public void onEndRequest()
			{
				// do something at the end of the request
			}

			public void onBeginRequest()
			{
				// do something at the beginning of the request
			}
		});
	}

	@Override
	public Class<? extends Page> getHomePage()
	{
		return SomePage.class;
	}
}

...