projectCreator.cmd -eclipse GWT1_4
and then:
applicationCreator.cmd -eclipse GWT1_4 com.test.client.Gwt
and it build the project and all BUT
When I amtrying to run the class Gwt (EntryPoint) using the eclipse
The html loaded with the original sample text
And the widgets (Label & the "click me" Button ) not loading
what is wrong?
I have also onother question,
How do I upgrade my GWT1.3 application to GWT1.4?
Thanks,
Idan
How did you run the program in Eclipse ? What command did you
execute ? Where did you load the html ? What is the url of the html
page you loaded ?
Answers to the above questions would help troubleshoot the problem.
On May 30, 11:47 am, "idanel...@gmail.com" <idanel...@gmail.com>
wrote:
1. I did on the class "run as GWT application" - it's the same way I
did in my other application (GWT1.3)
2. The EntryPoint class is GwStart
3. The URL is: http://localhost:8888/com.test.GwStart/GwStart.html
4. I did load the page directly - I did it via the simulator BUT also
directly it not working
The class source is:
----------------------------------------
public void onModuleLoad() {
final Button button = new Button("Click me");
final Label label = new Label();
button.addClickListener(new ClickListener() {
public void onClick(Widget sender) {
if (label.getText().equals(""))
label.setText("Hello World!");
else
label.setText("");
}
});
// Assume that the host HTML has elements defined whose
// IDs are "slot1", "slot2". In a real app, you probably would
not want
// to hard-code IDs. Instead, you could, for example, search for
all
// elements with a particular CSS class and replace them with
widgets.
//
RootPanel.get("slot1").add(button);
RootPanel.get("slot2").add(label);
}
The GwStart.gwt.xml:
----------------------------------------
<module>
<!-- Inherit the core Web Toolkit stuff. -->
<inherits name='com.google.gwt.user.User'/>
<!-- Specify the app entry point class. -->
<entry-point class='com.test.client.GwStart'/>
</module>
GwStart.htmll:
----------------------------------------
<html>
<head>
<title>Wrapper HTML for GwStart</title>
<style>
body,td,a,div,.p{font-family:arial,sans-serif}
div,td{color:#000000}
a:link,.w,.w a:link{color:#0000cc}
a:visited{color:#551a8b}
a:active{color:#ff0000}
</style>
<!-- -->
<!-- This script loads your compiled module. -->
<!-- If you add any GWT meta tags, they must -->
<!-- be added before this line. -->
<!-- -->
<script language='javascript' src='com.test.GwStart.nocache.js'></
script>
</head>
<body>
<!-- OPTIONAL: include this if you want history support -->
<iframe src="javascript:''" id="__gwt_historyFrame" style="width:
0;height:0;border:0"></iframe>
<h1>GwStart</h1>
<p>
This is an example of a host page for the GwStart application.
You can attach a Web Toolkit module to any HTML page you like,
making it easy to add bits of AJAX functionality to existing pages
without starting from scratch.
</p>
<table align=center>
<tr>
<td id="slot1"></td><td id="slot2"></td>
</tr>
</table>
</body>
</html>
And works well
so I think it should have work for me as well
do you know why Mail.html works and GwStart.html doesn't ?
Thanks,
Idan
Bootstrapping has changed between GWT 1.4 and GWT 1.3. The 'gwt.js'
file is no longer required. For some reason my gwt.js - using
bootstrapper still works fine in GWT 1.4, but now that you've shown
some code you've basically changed nothing from the standard hello
world example, so just start over.
On May 30, 4:04 pm, "Bernard Choi" <bch...@gmail.com> wrote:
> I'm inclined to think there's an error introduced when migrating between the
> two versions.
>
> Could you try running the application from the command line to eliminate
> "run as GWT application" as the problem ?
>
> Are you using some plugin to eclipse ?
>
> --
> Well Wishes,
> Bernard Choi