summaryrefslogtreecommitdiffstats
path: root/java/sca/samples
diff options
context:
space:
mode:
authorantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2009-03-03 08:35:41 +0000
committerantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2009-03-03 08:35:41 +0000
commitb978c3c78f46a3bf49221e2bac0fbb5ccabf5e89 (patch)
treec4f85c761465367b237a77f4f834aff4a023e5b4 /java/sca/samples
parentc91f12afdc8b3ba33d0ab650582892b001833687 (diff)
Update wicket sample for latest Tuscany wicket module
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@749565 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/sca/samples')
-rw-r--r--java/sca/samples/webapps/helloworld-wicket/pom.xml6
-rw-r--r--java/sca/samples/webapps/helloworld-wicket/src/main/java/sample/wicket/WicketApplication.java4
2 files changed, 8 insertions, 2 deletions
diff --git a/java/sca/samples/webapps/helloworld-wicket/pom.xml b/java/sca/samples/webapps/helloworld-wicket/pom.xml
index b0e4b8257b..c2b8ae4e1a 100644
--- a/java/sca/samples/webapps/helloworld-wicket/pom.xml
+++ b/java/sca/samples/webapps/helloworld-wicket/pom.xml
@@ -43,6 +43,12 @@
<artifactId>tuscany-wicket</artifactId>
<version>2.0-SNAPSHOT</version>
</dependency>
+ <dependency>
+ <groupId>javax.servlet</groupId>
+ <artifactId>servlet-api</artifactId>
+ <version>2.5</version>
+ <scope>provided</scope>
+ </dependency>
<!-- Wicket dependencies -->
<dependency>
diff --git a/java/sca/samples/webapps/helloworld-wicket/src/main/java/sample/wicket/WicketApplication.java b/java/sca/samples/webapps/helloworld-wicket/src/main/java/sample/wicket/WicketApplication.java
index d470493d23..1d86f1ee39 100644
--- a/java/sca/samples/webapps/helloworld-wicket/src/main/java/sample/wicket/WicketApplication.java
+++ b/java/sca/samples/webapps/helloworld-wicket/src/main/java/sample/wicket/WicketApplication.java
@@ -1,8 +1,8 @@
package sample.wicket;
import org.apache.wicket.Page;
-import org.apache.tuscany.sca.wicket.TuscanyInjector;
import org.apache.wicket.protocol.http.WebApplication;
+import org.apache.tuscany.sca.wicket.TuscanyComponentInjector;;
/**
* Application object for your web application. If you want to run this application without deploying, run the Start class.
@@ -15,7 +15,7 @@ public class WicketApplication extends WebApplication
@Override
protected void init()
{
- addComponentInstantiationListener(new TuscanyInjector(this));
+ addComponentInstantiationListener(new TuscanyComponentInjector(this));
}
/**