diff --git a/wicket-intro/CafeAddress/pom.xml b/wicket-intro/CafeAddress/pom.xml
deleted file mode 100644
index 8fb0fbd05a..0000000000
--- a/wicket-intro/CafeAddress/pom.xml
+++ /dev/null
@@ -1,156 +0,0 @@
-
-
-
- 4.0.0
- com.baeldung.wicket.examples
- cafe-address
- war
- 1.0-SNAPSHOT
- CafeAddress
-
- 7.4.0
- 9.2.13.v20150730
- 2.5
- 4.12
- UTF-8
- none
-
-
-
-
- org.apache.wicket
- wicket-core
- ${wicket.version}
-
-
-
-
-
- org.springframework
- spring-web
- 4.1.1.RELEASE
-
-
- javax.servlet
- javax.servlet-api
- 3.1.0
-
-
- org.apache.wicket
- wicket-spring
- 8.0.0-M1
-
-
-
-
- junit
- junit
- ${junit.version}
- test
-
-
-
-
- org.eclipse.jetty.aggregate
- jetty-all
- ${jetty9.version}
- test
-
-
-
- CafeAddress
-
-
- false
- src/main/resources
-
-
- false
- src/main/java
-
- **
-
-
- **/*.java
-
-
-
-
-
- false
- src/test/resources
-
-
- false
- src/test/java
-
- **
-
-
- **/*.java
-
-
-
-
-
- true
- org.apache.maven.plugins
- maven-compiler-plugin
- 3.5.1
-
- 1.8
- 1.8
- UTF-8
- true
- true
-
-
-
- org.apache.maven.plugins
- maven-war-plugin
- 2.6
-
- false
-
-
-
- org.eclipse.jetty
- jetty-maven-plugin
- ${jetty9.version}
-
-
-
- maven.project.build.directory.test-classes
- ${project.build.directory}/test-classes
-
-
- ${project.basedir}/src/test/jetty/jetty.xml,${project.basedir}/src/test/jetty/jetty-ssl.xml,${project.basedir}/src/test/jetty/jetty-http.xml,${project.basedir}/src/test/jetty/jetty-https.xml
-
-
-
- org.apache.maven.plugins
- maven-eclipse-plugin
- 2.9
-
- true
- ${wtp.version}
-
-
-
-
-
-
-
- Apache Nexus
- https://repository.apache.org/content/repositories/snapshots/
-
- false
-
-
- true
-
-
-
-
diff --git a/wicket-intro/CafeAddress/src/main/java/com/baeldung/wicket/examples/cafeaddress/ApplicationConfiguration.java b/wicket-intro/CafeAddress/src/main/java/com/baeldung/wicket/examples/cafeaddress/ApplicationConfiguration.java
deleted file mode 100644
index c0e34c6dc1..0000000000
--- a/wicket-intro/CafeAddress/src/main/java/com/baeldung/wicket/examples/cafeaddress/ApplicationConfiguration.java
+++ /dev/null
@@ -1,10 +0,0 @@
-package com.baeldung.wicket.examples.cafeaddress;
-
-import org.springframework.context.annotation.ComponentScan;
-import org.springframework.context.annotation.Configuration;
-
-@Configuration
-@ComponentScan
-public class ApplicationConfiguration {
-
-}
diff --git a/wicket-intro/CafeAddress/src/main/java/com/baeldung/wicket/examples/cafeaddress/CafeAddress.html b/wicket-intro/CafeAddress/src/main/java/com/baeldung/wicket/examples/cafeaddress/CafeAddress.html
deleted file mode 100644
index 954ff551f1..0000000000
--- a/wicket-intro/CafeAddress/src/main/java/com/baeldung/wicket/examples/cafeaddress/CafeAddress.html
+++ /dev/null
@@ -1,20 +0,0 @@
-
-
-
-
-Apache Wicket Quickstart
-
-
-
-
-
-
-
- Address: address
-
-
-
-
diff --git a/wicket-intro/CafeAddress/src/main/java/com/baeldung/wicket/examples/cafeaddress/CafeAddress.java b/wicket-intro/CafeAddress/src/main/java/com/baeldung/wicket/examples/cafeaddress/CafeAddress.java
deleted file mode 100644
index ce26c5a1ad..0000000000
--- a/wicket-intro/CafeAddress/src/main/java/com/baeldung/wicket/examples/cafeaddress/CafeAddress.java
+++ /dev/null
@@ -1,72 +0,0 @@
-package com.baeldung.wicket.examples.cafeaddress;
-
-import java.io.Serializable;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.Map;
-
-import org.apache.wicket.ajax.AjaxRequestTarget;
-import org.apache.wicket.ajax.form.AjaxFormComponentUpdatingBehavior;
-import org.apache.wicket.markup.html.WebPage;
-import org.apache.wicket.markup.html.basic.Label;
-import org.apache.wicket.markup.html.form.DropDownChoice;
-import org.apache.wicket.model.PropertyModel;
-import org.apache.wicket.request.mapper.parameter.PageParameters;
-
-public class CafeAddress extends WebPage {
-
- private static final long serialVersionUID = 1L;
-
- String selectedCafe;
- Address address;
- Map cafeNamesAndAddresses = new HashMap<>();
-
- public CafeAddress(final PageParameters parameters) {
- super(parameters);
- initCafes();
-
- ArrayList cafeNames = new ArrayList<>(this.cafeNamesAndAddresses.keySet());
- this.selectedCafe = cafeNames.get(0);
- this.address = new Address(this.cafeNamesAndAddresses.get(this.selectedCafe).getAddress());
-
- final Label addressLabel = new Label("address", new PropertyModel(this.address, "address"));
- addressLabel.setOutputMarkupId(true);
-
- final DropDownChoice cafeDropdown = new DropDownChoice<>("cafes", new PropertyModel(this, "selectedCafe"), cafeNames);
- cafeDropdown.add(new AjaxFormComponentUpdatingBehavior("onchange") {
- private static final long serialVersionUID = 1L;
-
- @Override
- protected void onUpdate(AjaxRequestTarget target) {
- String name = (String) cafeDropdown.getDefaultModel().getObject();
- address.setAddress(cafeNamesAndAddresses.get(name).getAddress());
- target.add(addressLabel);
- }
- });
-
- add(addressLabel);
- add(cafeDropdown);
-
- }
-
- private void initCafes() {
- this.cafeNamesAndAddresses.put("Linda's Cafe", new Address("35 Bower St."));
- this.cafeNamesAndAddresses.put("Old Tree", new Address("2 Edgware Rd."));
- }
-
- class Address implements Serializable {
- private String sAddress = "";
-
- public Address(String address) {
- this.sAddress = address;
- }
-
- public String getAddress() {
- return this.sAddress;
- }
-
- public void setAddress(String address) {
- this.sAddress = address;
- }
- }
-}
diff --git a/wicket-intro/CafeAddress/src/main/java/com/baeldung/wicket/examples/cafeaddress/CafeAddressApplication.java b/wicket-intro/CafeAddress/src/main/java/com/baeldung/wicket/examples/cafeaddress/CafeAddressApplication.java
deleted file mode 100644
index 189ef14558..0000000000
--- a/wicket-intro/CafeAddress/src/main/java/com/baeldung/wicket/examples/cafeaddress/CafeAddressApplication.java
+++ /dev/null
@@ -1,33 +0,0 @@
-package com.baeldung.wicket.examples.cafeaddress;
-
-import org.apache.wicket.markup.html.WebPage;
-import org.apache.wicket.protocol.http.WebApplication;
-
-/**
- * Application object for your web application.
- * If you want to run this application without deploying, run the Start class.
- *
- * @see com.baeldung.wicket.examples.Start#main(String[])
- */
-public class CafeAddressApplication extends WebApplication
-{
- /**
- * @see org.apache.wicket.Application#getHomePage()
- */
- @Override
- public Class extends WebPage> getHomePage()
- {
- return CafeAddress.class;
- }
-
- /**
- * @see org.apache.wicket.Application#init()
- */
- @Override
- public void init()
- {
- super.init();
-
- // add your configuration here
- }
-}
diff --git a/wicket-intro/CafeAddress/src/main/java/com/baeldung/wicket/examples/cafeaddress/WebAppInitializer.java b/wicket-intro/CafeAddress/src/main/java/com/baeldung/wicket/examples/cafeaddress/WebAppInitializer.java
deleted file mode 100644
index f1465e05b9..0000000000
--- a/wicket-intro/CafeAddress/src/main/java/com/baeldung/wicket/examples/cafeaddress/WebAppInitializer.java
+++ /dev/null
@@ -1,26 +0,0 @@
-package com.baeldung.wicket.examples.cafeaddress;
-
-import javax.servlet.FilterRegistration;
-import javax.servlet.ServletContext;
-import javax.servlet.ServletException;
-
-import org.apache.wicket.protocol.http.WicketFilter;
-import org.springframework.web.WebApplicationInitializer;
-import org.springframework.web.context.ContextLoaderListener;
-import org.springframework.web.context.support.AnnotationConfigWebApplicationContext;
-
-public class WebAppInitializer implements WebApplicationInitializer {
-
- @Override
- public void onStartup(ServletContext container) throws ServletException {
- AnnotationConfigWebApplicationContext context = new AnnotationConfigWebApplicationContext();
- container.addListener(new ContextLoaderListener(context));
- context.register(ApplicationConfiguration.class);
-
- FilterRegistration filter = container.addFilter("CafeAddressApplication", WicketFilter.class);
- filter.setInitParameter("applicationClassName", CafeAddressApplication.class.getName());
- filter.setInitParameter(WicketFilter.FILTER_MAPPING_PARAM, "/*");
- filter.addMappingForUrlPatterns(null, false, "/*");
- }
-
-}
\ No newline at end of file
diff --git a/wicket-intro/CafeAddress/src/main/webapp/logo.png b/wicket-intro/CafeAddress/src/main/webapp/logo.png
deleted file mode 100644
index 39ec54854b..0000000000
Binary files a/wicket-intro/CafeAddress/src/main/webapp/logo.png and /dev/null differ
diff --git a/wicket-intro/CafeAddress/src/main/webapp/style.css b/wicket-intro/CafeAddress/src/main/webapp/style.css
deleted file mode 100644
index fc137cadb0..0000000000
--- a/wicket-intro/CafeAddress/src/main/webapp/style.css
+++ /dev/null
@@ -1,68 +0,0 @@
-body, p, li, a { font-family: georgia, times, serif;font-size:13pt;}
-h1, h2, h3 { font-family: 'Yanone Kaffeesatz', arial, serif; }
-body { margin:0;padding:0;}
-#hd {
- width : 100%;
- height : 87px;
- background-color : #092E67;
- margin-top : 0;
- padding-top : 10px;
- border-bottom : 1px solid #888;
- z-index : 0;
-}
-#ft {
- position : absolute;
- bottom : 0;
- width : 100%;
- height : 99px;
- background-color : #6493D2;
- border-top : 1px solid #888;
- z-index : 0;
-}
-#logo,#bd {
- width : 650px;
- margin: 0 auto;
- padding: 25px 50px 0 50px;
-}
-#logo h1 {
- color : white;
- font-size:36pt;
- display: inline;
-}
-#logo img {
- display:inline;
- vertical-align: bottom;
- margin-left : 50px;
- margin-right : 5px;
-}
-body { margin-top : 0; padding-top : 0;}
-#logo, #logo h1 { margin-top : 0; padding-top : 0;}
-#bd {
- position : absolute;
- top : 75px;
- bottom : 75px;
- left : 50%;
- margin-left : -325px;
- z-index : 1;
- overflow: auto;
- background-color : #fff;
- -webkit-border-radius: 10px;
- -moz-border-radius: 10px;
- border-radius: 10px;
- -moz-box-shadow: 0px 0px 10px #888;
- -webkit-box-shadow: 0px 0px 10px #888;
- box-shadow: 0px 0px 10px #888;
-}
-a, a:visited, a:hover, a:active {
- color : #6493D2;
-}
-h2 {
- padding : 0; margin:0;
- font-size:36pt;
- color:#FF5500;
-}
-h3 {
- padding : 0; margin:0;
- font-size:24pt;
- color:#092E67;
-}
\ No newline at end of file
diff --git a/wicket-intro/CafeAddress/src/test/java/com/baeldung/wicket/examples/cafeaddress/Start.java b/wicket-intro/CafeAddress/src/test/java/com/baeldung/wicket/examples/cafeaddress/Start.java
deleted file mode 100644
index bb67ac56a5..0000000000
--- a/wicket-intro/CafeAddress/src/test/java/com/baeldung/wicket/examples/cafeaddress/Start.java
+++ /dev/null
@@ -1,100 +0,0 @@
-package com.baeldung.wicket.examples.cafeaddress;
-
-import java.lang.management.ManagementFactory;
-
-import javax.management.MBeanServer;
-
-import org.eclipse.jetty.jmx.MBeanContainer;
-import org.eclipse.jetty.server.HttpConfiguration;
-import org.eclipse.jetty.server.HttpConnectionFactory;
-import org.eclipse.jetty.server.SecureRequestCustomizer;
-import org.eclipse.jetty.server.Server;
-import org.eclipse.jetty.server.ServerConnector;
-import org.eclipse.jetty.server.SslConnectionFactory;
-import org.eclipse.jetty.util.resource.Resource;
-import org.eclipse.jetty.util.ssl.SslContextFactory;
-import org.eclipse.jetty.webapp.WebAppContext;
-
-/**
- * Separate startup class for people that want to run the examples directly. Use parameter
- * -Dcom.sun.management.jmxremote to startup JMX (and e.g. connect with jconsole).
- */
-public class Start {
- /**
- * Main function, starts the jetty server.
- *
- * @param args
- */
- public static void main(String[] args) {
- System.setProperty("wicket.configuration", "development");
-
- Server server = new Server();
-
- HttpConfiguration http_config = new HttpConfiguration();
- http_config.setSecureScheme("https");
- http_config.setSecurePort(8443);
- http_config.setOutputBufferSize(32768);
-
- ServerConnector http = new ServerConnector(server, new HttpConnectionFactory(http_config));
- http.setPort(8080);
- http.setIdleTimeout(1000 * 60 * 60);
-
- server.addConnector(http);
-
- Resource keystore = Resource.newClassPathResource("/keystore");
- if (keystore != null && keystore.exists()) {
- // if a keystore for a SSL certificate is available, start a SSL
- // connector on port 8443.
- // By default, the quickstart comes with a Apache Wicket Quickstart
- // Certificate that expires about half way september 2021. Do not
- // use this certificate anywhere important as the passwords are
- // available in the source.
-
- SslContextFactory sslContextFactory = new SslContextFactory();
- sslContextFactory.setKeyStoreResource(keystore);
- sslContextFactory.setKeyStorePassword("wicket");
- sslContextFactory.setKeyManagerPassword("wicket");
-
- HttpConfiguration https_config = new HttpConfiguration(http_config);
- https_config.addCustomizer(new SecureRequestCustomizer());
-
- ServerConnector https = new ServerConnector(server, new SslConnectionFactory(sslContextFactory, "http/1.1"), new HttpConnectionFactory(https_config));
- https.setPort(8443);
- https.setIdleTimeout(500000);
-
- server.addConnector(https);
- System.out.println("SSL access to the examples has been enabled on port 8443");
- System.out.println("You can access the application using SSL on https://localhost:8443");
- System.out.println();
- }
-
- WebAppContext bb = new WebAppContext();
- bb.setServer(server);
- bb.setContextPath("/");
- bb.setWar("src/main/webapp");
-
- // uncomment the next two lines if you want to start Jetty with WebSocket (JSR-356) support
- // you need org.apache.wicket:wicket-native-websocket-javax in the classpath!
- // ServerContainer serverContainer = WebSocketServerContainerInitializer.configureContext(bb);
- // serverContainer.addEndpoint(new WicketServerEndpointConfig());
-
- // uncomment next line if you want to test with JSESSIONID encoded in the urls
- // ((AbstractSessionManager)
- // bb.getSessionHandler().getSessionManager()).setUsingCookies(false);
-
- server.setHandler(bb);
-
- MBeanServer mBeanServer = ManagementFactory.getPlatformMBeanServer();
- MBeanContainer mBeanContainer = new MBeanContainer(mBeanServer);
- server.addEventListener(mBeanContainer);
- server.addBean(mBeanContainer);
-
- try {
- server.start();
- server.join();
- } catch (Exception e) {
- e.printStackTrace();
- System.exit(100);
- }
- }
-}
diff --git a/wicket-intro/CafeAddress/src/test/java/com/baeldung/wicket/examples/cafeaddress/TestHomePage.java b/wicket-intro/CafeAddress/src/test/java/com/baeldung/wicket/examples/cafeaddress/TestHomePage.java
deleted file mode 100644
index 9b186ce52b..0000000000
--- a/wicket-intro/CafeAddress/src/test/java/com/baeldung/wicket/examples/cafeaddress/TestHomePage.java
+++ /dev/null
@@ -1,29 +0,0 @@
-package com.baeldung.wicket.examples.cafeaddress;
-
-import org.apache.wicket.util.tester.WicketTester;
-import org.junit.Before;
-import org.junit.Test;
-
-/**
- * Simple test using the WicketTester
- */
-public class TestHomePage
-{
- private WicketTester tester;
-
- @Before
- public void setUp()
- {
- tester = new WicketTester(new CafeAddressApplication());
- }
-
- @Test
- public void homepageRendersSuccessfully()
- {
- //start and render the test page
- tester.startPage(CafeAddress.class);
-
- //assert rendered page class
- tester.assertRenderedPage(CafeAddress.class);
- }
-}
diff --git a/wicket-intro/CafeAddress/src/test/jetty/jetty-http.xml b/wicket-intro/CafeAddress/src/test/jetty/jetty-http.xml
deleted file mode 100644
index 9f3256b15c..0000000000
--- a/wicket-intro/CafeAddress/src/test/jetty/jetty-http.xml
+++ /dev/null
@@ -1,38 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/wicket-intro/CafeAddress/src/test/jetty/jetty-https.xml b/wicket-intro/CafeAddress/src/test/jetty/jetty-https.xml
deleted file mode 100644
index 58f7d53d2d..0000000000
--- a/wicket-intro/CafeAddress/src/test/jetty/jetty-https.xml
+++ /dev/null
@@ -1,45 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
-
- http/1.1
-
-
-
- -
-
-
-
-
-
-
-
-
- 30000
-
-
-
-
\ No newline at end of file
diff --git a/wicket-intro/CafeAddress/src/test/jetty/jetty-ssl.xml b/wicket-intro/CafeAddress/src/test/jetty/jetty-ssl.xml
deleted file mode 100644
index 49e558bb47..0000000000
--- a/wicket-intro/CafeAddress/src/test/jetty/jetty-ssl.xml
+++ /dev/null
@@ -1,36 +0,0 @@
-
-
-
-
-
-
-
-
- /
-
-
-
-
-
- - SSL_RSA_WITH_DES_CBC_SHA
- - SSL_DHE_RSA_WITH_DES_CBC_SHA
- - SSL_DHE_DSS_WITH_DES_CBC_SHA
- - SSL_RSA_EXPORT_WITH_RC4_40_MD5
- - SSL_RSA_EXPORT_WITH_DES40_CBC_SHA
- - SSL_DHE_RSA_EXPORT_WITH_DES40_CBC_SHA
- - SSL_DHE_DSS_EXPORT_WITH_DES40_CBC_SHA
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/wicket-intro/CafeAddress/src/test/jetty/jetty.xml b/wicket-intro/CafeAddress/src/test/jetty/jetty.xml
deleted file mode 100644
index 1a6293b405..0000000000
--- a/wicket-intro/CafeAddress/src/test/jetty/jetty.xml
+++ /dev/null
@@ -1,23 +0,0 @@
-
-
-
-
-
-
-
- https
-
-
-
- 32768
- 8192
- 8192
- true
- false
- 512
-
-
-
-
-
-
\ No newline at end of file
diff --git a/wicket-intro/CafeAddress/src/test/resources/keystore b/wicket-intro/CafeAddress/src/test/resources/keystore
deleted file mode 100644
index 30bbc90ccf..0000000000
Binary files a/wicket-intro/CafeAddress/src/test/resources/keystore and /dev/null differ
diff --git a/wicket-intro/HelloWorld/pom.xml b/wicket-intro/HelloWorld/pom.xml
deleted file mode 100644
index 2aff59dd93..0000000000
--- a/wicket-intro/HelloWorld/pom.xml
+++ /dev/null
@@ -1,60 +0,0 @@
-
- 4.0.0
- com.baeldung.wicket.examples
- hello-world
- war
- 1.0-SNAPSHOT
- HelloWorld
-
-
- junit
- junit
- 3.8.1
- test
-
-
- org.apache.wicket
- wicket-core
- 8.0.0-M1
-
-
- org.springframework
- spring-web
- 4.1.1.RELEASE
-
-
- javax.servlet
- javax.servlet-api
- 3.1.0
-
-
- org.apache.wicket
- wicket-spring
- 8.0.0-M1
-
-
-
- HelloWorld
-
-
-
- org.apache.maven.plugins
- maven-compiler-plugin
- 3.5.1
-
- 1.8
- 1.8
-
-
-
- org.apache.maven.plugins
- maven-war-plugin
- 2.6
-
- false
-
-
-
-
-
diff --git a/wicket-intro/HelloWorld/src/main/java/com/baeldung/wicket/examples/helloworld/ApplicationConfiguration.java b/wicket-intro/HelloWorld/src/main/java/com/baeldung/wicket/examples/helloworld/ApplicationConfiguration.java
deleted file mode 100644
index f9de7adb2a..0000000000
--- a/wicket-intro/HelloWorld/src/main/java/com/baeldung/wicket/examples/helloworld/ApplicationConfiguration.java
+++ /dev/null
@@ -1,10 +0,0 @@
-package com.baeldung.wicket.examples.helloworld;
-
-import org.springframework.context.annotation.ComponentScan;
-import org.springframework.context.annotation.Configuration;
-
-@Configuration
-@ComponentScan
-public class ApplicationConfiguration {
-
-}
diff --git a/wicket-intro/HelloWorld/src/main/java/com/baeldung/wicket/examples/helloworld/HelloWorld.html b/wicket-intro/HelloWorld/src/main/java/com/baeldung/wicket/examples/helloworld/HelloWorld.html
deleted file mode 100644
index c56d07fc10..0000000000
--- a/wicket-intro/HelloWorld/src/main/java/com/baeldung/wicket/examples/helloworld/HelloWorld.html
+++ /dev/null
@@ -1,5 +0,0 @@
-
-
-
-
-
diff --git a/wicket-intro/HelloWorld/src/main/java/com/baeldung/wicket/examples/helloworld/HelloWorld.java b/wicket-intro/HelloWorld/src/main/java/com/baeldung/wicket/examples/helloworld/HelloWorld.java
deleted file mode 100644
index 6dc7295798..0000000000
--- a/wicket-intro/HelloWorld/src/main/java/com/baeldung/wicket/examples/helloworld/HelloWorld.java
+++ /dev/null
@@ -1,10 +0,0 @@
-package com.baeldung.wicket.examples.helloworld;
-
-import org.apache.wicket.markup.html.WebPage;
-import org.apache.wicket.markup.html.basic.Label;
-
-public class HelloWorld extends WebPage {
- public HelloWorld() {
- add(new Label("hello", "Hello World!"));
- }
-}
diff --git a/wicket-intro/HelloWorld/src/main/java/com/baeldung/wicket/examples/helloworld/HelloWorldApplication.java b/wicket-intro/HelloWorld/src/main/java/com/baeldung/wicket/examples/helloworld/HelloWorldApplication.java
deleted file mode 100644
index 64bfcadd29..0000000000
--- a/wicket-intro/HelloWorld/src/main/java/com/baeldung/wicket/examples/helloworld/HelloWorldApplication.java
+++ /dev/null
@@ -1,22 +0,0 @@
-
-package com.baeldung.wicket.examples.helloworld;
-
-import org.apache.wicket.Page;
-import org.apache.wicket.protocol.http.WebApplication;
-import org.apache.wicket.spring.injection.annot.SpringComponentInjector;
-import org.springframework.context.annotation.ComponentScan;
-import org.springframework.context.annotation.Configuration;
-
-public class HelloWorldApplication extends WebApplication {
- @Override
- public Class extends Page> getHomePage() {
- return HelloWorld.class;
- }
-
- @Override
- public void init() {
- super.init();
- getComponentInstantiationListeners().add(new SpringComponentInjector(this));
- }
-
-}
diff --git a/wicket-intro/HelloWorld/src/main/java/com/baeldung/wicket/examples/helloworld/WebAppInitializer.java b/wicket-intro/HelloWorld/src/main/java/com/baeldung/wicket/examples/helloworld/WebAppInitializer.java
deleted file mode 100644
index 362502e264..0000000000
--- a/wicket-intro/HelloWorld/src/main/java/com/baeldung/wicket/examples/helloworld/WebAppInitializer.java
+++ /dev/null
@@ -1,26 +0,0 @@
-package com.baeldung.wicket.examples.helloworld;
-
-import javax.servlet.FilterRegistration;
-import javax.servlet.ServletContext;
-import javax.servlet.ServletException;
-
-import org.apache.wicket.protocol.http.WicketFilter;
-import org.springframework.web.WebApplicationInitializer;
-import org.springframework.web.context.ContextLoaderListener;
-import org.springframework.web.context.support.AnnotationConfigWebApplicationContext;
-
-public class WebAppInitializer implements WebApplicationInitializer {
-
- @Override
- public void onStartup(ServletContext container) throws ServletException {
- AnnotationConfigWebApplicationContext context = new AnnotationConfigWebApplicationContext();
- container.addListener(new ContextLoaderListener(context));
- context.register(ApplicationConfiguration.class);
-
- FilterRegistration filter = container.addFilter("HelloWorldApplication", WicketFilter.class);
- filter.setInitParameter("applicationClassName", HelloWorldApplication.class.getName());
- filter.setInitParameter(WicketFilter.FILTER_MAPPING_PARAM, "/*");
- filter.addMappingForUrlPatterns(null, false, "/*");
- }
-
-}
\ No newline at end of file