summaryrefslogtreecommitdiffstats
path: root/sandbox/ant/sca/trunk/samples/webapps/helloworld-wicket/src/main/java/sample/wicket
diff options
context:
space:
mode:
Diffstat (limited to 'sandbox/ant/sca/trunk/samples/webapps/helloworld-wicket/src/main/java/sample/wicket')
-rw-r--r--sandbox/ant/sca/trunk/samples/webapps/helloworld-wicket/src/main/java/sample/wicket/HomePage.html30
-rw-r--r--sandbox/ant/sca/trunk/samples/webapps/helloworld-wicket/src/main/java/sample/wicket/HomePage.java48
-rw-r--r--sandbox/ant/sca/trunk/samples/webapps/helloworld-wicket/src/main/java/sample/wicket/IMyService.java17
-rw-r--r--sandbox/ant/sca/trunk/samples/webapps/helloworld-wicket/src/main/java/sample/wicket/MyService.java20
-rw-r--r--sandbox/ant/sca/trunk/samples/webapps/helloworld-wicket/src/main/java/sample/wicket/WicketApplication.java29
5 files changed, 0 insertions, 144 deletions
diff --git a/sandbox/ant/sca/trunk/samples/webapps/helloworld-wicket/src/main/java/sample/wicket/HomePage.html b/sandbox/ant/sca/trunk/samples/webapps/helloworld-wicket/src/main/java/sample/wicket/HomePage.html
deleted file mode 100644
index fd60771d20..0000000000
--- a/sandbox/ant/sca/trunk/samples/webapps/helloworld-wicket/src/main/java/sample/wicket/HomePage.html
+++ /dev/null
@@ -1,30 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<html xmlns="http://www.w3.org/1999/xhtml" >
-<head>
- <title>Wicket Examples - guice</title>
- <link rel="stylesheet" type="text/css" href="style.css"/>
-</head>
-<body>
- <p>
- This page uses <a href="http://code.google.com/p/google-guice/">Google Guice</a>.
- There is a service interface called <code>IMyService</code>, with an implementation POJO called <code>MyService</code>.
- Guice is used to wire the implementation into the <code>Page</code> using an <code>@Inject</code> annotation. You can use this
- annotation on the fields of any <code>Component</code> subclass.
- </p>
- <p>
- The value of the <code>Label</code> component below will be updated with the return value from one of the service's methods when you click the link.
- </p>
- <hr />
- <blockquote>
- Value: <b wicket:id="message" id="message">Message goes here</b>
- <br />
- To update the label above, <a href="#" wicket:id="link">click here</a>.
- </blockquote>
- <hr />
- <p>
- The wicket-guice project will take care of proxying the injected beans so that your pages can be serialized safely.
- To configure your application for Guice injection, see the javadoc for <code>GuiceComponentInjector</code>.
- </p>
-
-</body>
-</html> \ No newline at end of file
diff --git a/sandbox/ant/sca/trunk/samples/webapps/helloworld-wicket/src/main/java/sample/wicket/HomePage.java b/sandbox/ant/sca/trunk/samples/webapps/helloworld-wicket/src/main/java/sample/wicket/HomePage.java
deleted file mode 100644
index 644d6add49..0000000000
--- a/sandbox/ant/sca/trunk/samples/webapps/helloworld-wicket/src/main/java/sample/wicket/HomePage.java
+++ /dev/null
@@ -1,48 +0,0 @@
-package sample.wicket;
-
-import org.apache.wicket.markup.html.WebPage;
-import org.apache.wicket.markup.html.basic.Label;
-import org.apache.wicket.markup.html.link.Link;
-import org.apache.wicket.model.AbstractReadOnlyModel;
-import org.oasisopen.sca.annotation.Reference;
-
-/**
- * Everybody's favorite example (Hello World), modified to use Guice.
- *
- * @author Alastair Maw
- */
-public class HomePage extends WebPage
-{
- @Reference
- IMyService service;
-
- private String labelValue = "<not yet initialized>";
-
- /**
- * Constructor
- */
- public HomePage()
- {
- add(new Link("link")
- {
- /**
- * @see org.apache.wicket.markup.html.link.Link#onClick()
- */
- @Override
- public void onClick()
- {
- labelValue = service.getHelloWorldText();
- }
- });
- add(new Label("message", new AbstractReadOnlyModel<String>()
- {
-
- @Override
- public String getObject()
- {
- return labelValue;
- }
-
- }));
- }
-} \ No newline at end of file
diff --git a/sandbox/ant/sca/trunk/samples/webapps/helloworld-wicket/src/main/java/sample/wicket/IMyService.java b/sandbox/ant/sca/trunk/samples/webapps/helloworld-wicket/src/main/java/sample/wicket/IMyService.java
deleted file mode 100644
index 4b49225748..0000000000
--- a/sandbox/ant/sca/trunk/samples/webapps/helloworld-wicket/src/main/java/sample/wicket/IMyService.java
+++ /dev/null
@@ -1,17 +0,0 @@
-package sample.wicket;
-
-
-/**
- * Service interface for a simple "Hello World" app.
- *
- * @author Alastair Maw
- */
-public interface IMyService
-{
- /**
- * Retrieves the text to say "Hello World".
- *
- * @return "Hello World"
- */
- public String getHelloWorldText();
-} \ No newline at end of file
diff --git a/sandbox/ant/sca/trunk/samples/webapps/helloworld-wicket/src/main/java/sample/wicket/MyService.java b/sandbox/ant/sca/trunk/samples/webapps/helloworld-wicket/src/main/java/sample/wicket/MyService.java
deleted file mode 100644
index 05998ff74f..0000000000
--- a/sandbox/ant/sca/trunk/samples/webapps/helloworld-wicket/src/main/java/sample/wicket/MyService.java
+++ /dev/null
@@ -1,20 +0,0 @@
-package sample.wicket;
-
-
-/**
- * Implementation of IService.
- *
- * @author Alastair Maw
- */
-public class MyService implements IMyService
-{
-
- /**
- * @see org.apache.wicket.examples.guice.service.IMyService#getHelloWorldText()
- */
- public String getHelloWorldText()
- {
- return "Hello World";
- }
-
-} \ No newline at end of file
diff --git a/sandbox/ant/sca/trunk/samples/webapps/helloworld-wicket/src/main/java/sample/wicket/WicketApplication.java b/sandbox/ant/sca/trunk/samples/webapps/helloworld-wicket/src/main/java/sample/wicket/WicketApplication.java
deleted file mode 100644
index 1d86f1ee39..0000000000
--- a/sandbox/ant/sca/trunk/samples/webapps/helloworld-wicket/src/main/java/sample/wicket/WicketApplication.java
+++ /dev/null
@@ -1,29 +0,0 @@
-package sample.wicket;
-
-import org.apache.wicket.Page;
-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.
- *
- * @see com.mycompany.Start#main(String[])
- */
-public class WicketApplication extends WebApplication
-{
-
- @Override
- protected void init()
- {
- addComponentInstantiationListener(new TuscanyComponentInjector(this));
- }
-
- /**
- * @see org.apache.wicket.Application#getHomePage()
- */
- @Override
- public Class< ? extends Page> getHomePage()
- {
- return HomePage.class;
- }
-} \ No newline at end of file