Bonjour,

J'essaye de contruire une application maven GWT (pour commencer); Mais je n'arrive pas à afficher le label sur l'IHM.

La page HTML :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <link type="text/css" rel="stylesheet" href="GwtSpring.css">
    <title>GwtSpring</title>
    <script type="text/javascript" language="javascript" src="GwtSpring/GwtSpring.nocache.js"></script>
  </head>
  <body>
 
    <h1>GWT Spring</h1>
    <iframe src="javascript:''" id="__gwt_historyFrame" tabIndex='-1' style="position:absolute;width:0;height:0;border:0"></iframe>
    <noscript>
      <div style="width: 22em; position: absolute; left: 50%; margin-left: -11em; color: red; background-color: white; border: 1px solid red; padding: 4px; font-family: sans-serif">
        Your web browser must have JavaScript enabled
        in order for this application to display correctly.
      </div>
    </noscript>
    <center>
    <div id="Test1"/>
    <div id="Test2"/></center>
 
  </body>
</html>
La class Java : Entry point
Code : Sélectionner tout - Visualiser dans une fenêtre à part
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
package com.javacodegeeks.gwtspring.client;
 
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.RootPanel;
import com.google.gwt.user.client.ui.VerticalPanel;
 
/**
 * Entry point classes define <code>onModuleLoad()</code>.
 */
public class GwtSpring implements EntryPoint {
 
 
	/**
         * 
         * This is the entry point method.
         */
 
	public void onModuleLoad() {
 
		System.out.println("coucou");
 
		Label label = new Label("Test 1");
		VerticalPanel vertical = new VerticalPanel();
		vertical.add(label);
 
		Label label2 = new Label("Test 2");
		VerticalPanel vertical2 = new VerticalPanel();
		vertical2.add(label2);
 
		RootPanel.get("Test1").add(vertical);
		RootPanel.get("Test2").add(vertical2);
	}
 
 
}
Mon gwt.xml
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?xml version="1.0" encoding="UTF-8"?>
<module rename-to='GwtSpring'>
 
	<inherits name='com.google.gwt.user.User' />
 
 
	<inherits name='com.google.gwt.junit.JUnit' />
 
 
	<inherits name='com.google.gwt.user.theme.standard.Standard' />
 
 
	<entry-point class='com.javacodegeeks.gwtspring.client.GwtSpring' />
 
	<set-property name="user.agent" value="ie8,safari,gecko1_8" />
 
	<source path='client' />
	<source path='shared' />
	<source path='server' />
 
 
 
</module>
Sur la console de mon navigateur :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:8080/gwtspring/GwtSpring/GwtSpring.nocache.js
Quelqu'un peut m'aider?

Merci