gpt4 book ai didi

java - 使用 Google Web Toolkit 的空白页

转载 作者:行者123 更新时间:2023-12-01 05:51:38 25 4
gpt4 key购买 nike

我是 Google Web Toolkit 的新手。我尝试使用 NetBeans 创建新项目,并从 Frameworks-list 中获取 Google Web Toolkit。如果我将“org.yournamehere.Main”保留为 GWT 模块名称,它就可以工作。但如果我在那里写一些自己的东西,我只能看到一个空白的 html 页面,其源代码如下:

<head>

<meta name='gwt:module' content='vvv.test.module=vvv.test.module'>

<title>moduuli</title>

</head>

<body>

<script type="text/javascript" src="vvv.test.module/vvv.test.module.nocache.js"></script>

</body>

最佳答案

尝试; (将 {PROJECT_NAME} 替换为您的项目名称)

<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<!-- <meta name="gwt:property" content="locale=tr"> -->

<!-- -->
<!-- Consider inlining CSS to reduce the number of requested files -->
<!-- -->
<link type="text/css" rel="stylesheet" href="{PROJECT_NAME}.css">

<!-- -->
<!-- Any title is fine -->
<!-- -->
<title>{TITLE}</title>

<!-- -->
<!-- This script loads your compiled module. -->
<!-- If you add any GWT meta tags, they must -->
<!-- be added before this line. -->
<!-- -->
<script type="text/javascript" language="javascript" src="{PROJECT_NAME}/{PROJECT_NAME}.nocache.js"></script>
</head>

<!-- -->
<!-- The body can have arbitrary html, or -->
<!-- you can leave the body empty if you want -->
<!-- to create a completely dynamic UI. -->
<!-- -->
<body>
....

关于java - 使用 Google Web Toolkit 的空白页,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4507754/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com