Author: gseitz Date: Mon May 19 14:01:31 2008 New Revision: 657973 URL: http://svn.apache.org/viewvc?rev=657973&view=rev Log: move initialization code from constructor to init()
Modified: wicket/trunk/wicket-examples/src/main/java/org/apache/wicket/examples/linkomatic/LinkomaticApplication.java Modified: wicket/trunk/wicket-examples/src/main/java/org/apache/wicket/examples/linkomatic/LinkomaticApplication.java URL: http://svn.apache.org/viewvc/wicket/trunk/wicket-examples/src/main/java/org/apache/wicket/examples/linkomatic/LinkomaticApplication.java?rev=657973&r1=657972&r2=657973&view=diff ============================================================================== --- wicket/trunk/wicket-examples/src/main/java/org/apache/wicket/examples/linkomatic/LinkomaticApplication.java (original) +++ wicket/trunk/wicket-examples/src/main/java/org/apache/wicket/examples/linkomatic/LinkomaticApplication.java Mon May 19 14:01:31 2008 @@ -28,19 +28,12 @@ */ public class LinkomaticApplication extends WicketExampleApplication { - /** - * Constructor - */ - public LinkomaticApplication() - { - getSharedResources().add("cancelButton", new DefaultButtonImageResource("Cancel")); - } /** * @see org.apache.wicket.Application#getHomePage() */ @Override - public Class< ? extends Page< ? >> getHomePage() + public Class<? extends Page<?>> getHomePage() { return Home.class; } @@ -51,6 +44,7 @@ @Override protected void init() { + getSharedResources().add("cancelButton", new DefaultButtonImageResource("Cancel")); // log host name and server time in the browser's status bar getRequestCycleSettings().addResponseFilter(new ServerHostNameAndTimeFilter()); }