Repository: wicket
Updated Branches:
  refs/heads/master 25c56a24d -> 7973959f1


small syntax corrections


Project: http://git-wip-us.apache.org/repos/asf/wicket/repo
Commit: http://git-wip-us.apache.org/repos/asf/wicket/commit/7973959f
Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/7973959f
Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/7973959f

Branch: refs/heads/master
Commit: 7973959f169a1c44c1de18a6acde21c8b926d64c
Parents: 25c56a2
Author: Sven Meier <[email protected]>
Authored: Mon Jun 13 08:30:11 2016 +0200
Committer: Sven Meier <[email protected]>
Committed: Mon Jun 13 08:34:19 2016 +0200

----------------------------------------------------------------------
 .../src/docs/guide/testingspring/testingspring_1.gdoc        | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/wicket/blob/7973959f/wicket-user-guide/src/docs/guide/testingspring/testingspring_1.gdoc
----------------------------------------------------------------------
diff --git 
a/wicket-user-guide/src/docs/guide/testingspring/testingspring_1.gdoc 
b/wicket-user-guide/src/docs/guide/testingspring/testingspring_1.gdoc
index 2434235..194efac 100644
--- a/wicket-user-guide/src/docs/guide/testingspring/testingspring_1.gdoc
+++ b/wicket-user-guide/src/docs/guide/testingspring/testingspring_1.gdoc
@@ -29,8 +29,8 @@ In case you want to get Wicket application up and running 
while leaving the appl
         
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
     </listener>
     <context-param>
-        <param-name>contextConfigLocation<param-name>
-        <param-value>/WEB-INF/applicationContext.xml<param-value>
+        <param-name>contextConfigLocation</param-name>
+        <param-value>/WEB-INF/applicationContext.xml</param-value>
     </context-param>
 </web-app>
 {code}
@@ -76,7 +76,9 @@ After the WebApplication bean has been successfully retrieved 
from the Applicati
 public class MyWebApplication extends WebApplication {
     @Override
     protected void init() {
-        addComponentInstantiationListener(new SpringComponentInjector(this));
+        super.init();
+
+        getComponentInstantiationListeners().add(new 
SpringComponentInjector(this));
     }
 
 }

Reply via email to