Loading a GWT module into a jsp page

159 views
Skip to first unread message

shinokamparos

unread,
Aug 3, 2010, 8:55:13 PM8/3/10
to Google Web Toolkit
Hi all,
I have a GWT module I want to load into a jsp page. My nocache.js
file
load correctly from the server as per Firebug. The problem is that
the
module does not display. I don't know what the problem, the code is
taken form the generated hosted page, which works, so I see no reason
why there should be a problem. My jsp file is set out below. Any help
would be greatly apreciated.
<?xml version="1.0" encoding="UTF-8" ?>
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://
www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>Login</title>
<meta http-equiv="content-type" content="text/html;
charset=UTF-8"></meta>
<meta name="gwt:module" content="com.accounts.Login/
com.accounts.Login"></meta>
<script type="text/javascript" language="javascript" src="../
com.accounts.Login/com.accounts.Login.nocache.js"></script>
</head>
<body>
<iframe src="javascript:''" id="__gwt_historyFrame"
tabIndex='-1' style="position: absolute; width: 0; height: 0; border:
0"></iframe>
<p>Hello Login</p>
<div id="login"></div>
</body>
</html>

Luis Daniel Mesa Velasquez

unread,
Aug 4, 2010, 8:49:51 PM8/4/10
to Google Web Toolkit
Can you post your EntryPoint? maybe you nned to check the
RootPanel.get() methods and check everything's where it's supposed to
be...

shinokamparos

unread,
Aug 7, 2010, 10:19:01 AM8/7/10
to Google Web Toolkit
Hi Luis,

this is my entrypoint:

public void onModuleLoad() {

loginPanel = new LoginPanel();
RootPanel.get("login").add(loginPanel);
}


On Aug 5, 1:49 am, Luis Daniel Mesa Velasquez

mass0ne

unread,
Aug 12, 2010, 10:17:26 AM8/12/10
to Google Web Toolkit
I have the same problem in devmode, with a compiled application JSP
works fine.
Try reloading the page or use the *. html for devmode.
I'm using *. html
Reply all
Reply to author
Forward
0 new messages