我正在学习在我的web项目中使用gwt,但遇到了一个麻烦。我创建了一个按钮:gwt组件映射问题
public class Example implements EntryPoint
{
public void onModuleLoad()
{
Button btnStart = new Button("Start");
RootPanel.get().add(btnStart);
}
}
在我的web项目的war模块中,并部署到jboss上。要http://localhost:8080/war/
后,我看到了什么都没有,除了问候我的example.html的:
<html>
<head>
<title>Example Application</title>
<link rel="stylesheet" href="Example.css">
</head>
<body>
<script type="text/javascript" language="javascript" src="com.tests.gwt.Example.nocache.js"></script>
<h1>Example Application</h1>
</body>
</html>
有什么麻烦吗?