summaryrefslogtreecommitdiffstats
path: root/tags/java/sca/2.0-M4-RC3/samples/webapps/helloworld-wicket/src/main/java/sample/wicket/HomePage.html
diff options
context:
space:
mode:
Diffstat (limited to 'tags/java/sca/2.0-M4-RC3/samples/webapps/helloworld-wicket/src/main/java/sample/wicket/HomePage.html')
-rw-r--r--tags/java/sca/2.0-M4-RC3/samples/webapps/helloworld-wicket/src/main/java/sample/wicket/HomePage.html48
1 files changed, 48 insertions, 0 deletions
diff --git a/tags/java/sca/2.0-M4-RC3/samples/webapps/helloworld-wicket/src/main/java/sample/wicket/HomePage.html b/tags/java/sca/2.0-M4-RC3/samples/webapps/helloworld-wicket/src/main/java/sample/wicket/HomePage.html
new file mode 100644
index 0000000000..61eb207e23
--- /dev/null
+++ b/tags/java/sca/2.0-M4-RC3/samples/webapps/helloworld-wicket/src/main/java/sample/wicket/HomePage.html
@@ -0,0 +1,48 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+-->
+<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