summaryrefslogtreecommitdiffstats
path: root/java/sca/samples/webapps/helloworld-wicket/src/main/java/sample/wicket/HomePage.html
blob: 61eb207e2370ad8b018c59113c309afbc542641a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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>