App.gwt.xml
<?xml version="1.0" encoding="UTF-8"?>
<module rename-to='app'>
<!-- Inherit the core Web Toolkit stuff. -->
<inherits name='com.google.gwt.user.User'/>
<inherits name='com.google.gwt.xml.XML'/>
<!-- Inherit the default GWT style sheet. You can change -->
<!-- the theme of your GWT application by uncommenting -->
<!-- any one of the following lines. -->
<inherits name='com.google.gwt.user.theme.standard.Standard'/>
<!-- <inherits name='com.google.gwt.user.theme.chrome.Chrome'/> -->
<!-- <inherits name='com.google.gwt.user.theme.dark.Dark'/> -->
<!-- Other module inherits -->
<!-- Specify the app entry point class. -->
<entry-point class='org.ishafoundation.app.client.App'/>
<!-- Specify the paths for translatable code -->
<source path='client'/>
</module>
App.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<!-- The HTML 4.01 Transitional DOCTYPE declaration-->
<!-- above set at the top of the file will set -->
<!-- the browser's rendering engine into -->
<!-- "Quirks Mode". Replacing this declaration -->
<!-- with a "Standards Mode" doctype is supported, -->
<!-- but may lead to some differences in layout. -->
<html>
<head>
<meta http-equiv="content-type" content="text/html;
charset=UTF-8">
<!--
-->
<!-- Consider inlining CSS to reduce the number of requested files
-->
<!--
-->
<link type="text/css" rel="stylesheet" href="App.css">
<!-- -->
<!-- Any title is fine -->
<!-- -->
<title>Web Application Starter Project</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="app/
app.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>
<!-- OPTIONAL: include this if you want history support -->
<iframe src="javascript:''" id="__gwt_historyFrame" tabIndex='-1'
style="position:absolute;width:0;height:0;border:0"></iframe>
<!-- RECOMMENDED if your web app will not function without
JavaScript enabled -->
<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>
<h1>app Tree Test</h1>
<div id="tree"/>
</body>
</html>
On Dec 22, 8:27 am, "[email protected]" <[email protected]> wrote:
> Can you share your App.html and App.gwt.xml ?
>
> On Dec 22, 10:55 am, Swami <[email protected]> wrote:
>
> > If I open that url then I just get the static App.html displayed
>
> > if I append ?gwt.codesvr=127.0.0.1:9997 to the end of the url I still
> > get the same
>
> > clearing the cache makes no difference
>
> > Here's my App.java file
>
> > package org.ishafoundation.app.client;
> > import com.google.gwt.core.client.EntryPoint;
> > import com.google.gwt.user.client.Window;
>
> > public class App implements EntryPoint {
> > public void onModuleLoad() {
> > Window.alert("loaded");
> > }
>
> > }
>
> > I'm supposed to get a pop-up window....
>
> > On Dec 21, 11:04 pm, Jason Parekh <[email protected]> wrote:
>
> > > Ok. What happens when you open that URL in Firefox? Can you try
> > > clearing your cache just in case.
>
> > > jason
>
> > > On Mon, Dec 21, 2009 at 12:26 PM, Swami <[email protected]> wrote:
> > > > No, that was a mistake when composing the message I'm afraid.
>
> > > > the urls really are the same. but it's just not working
> > > >http://localhost:8080/exist/app/gwt/App.html
>
> > > > On Dec 21, 9:10 pm, Jason Parekh <[email protected]> wrote:
> > > >> Could you check your URLs again? The URL given as the startup URL
> > > >> argument in step #2 is missing the "app" directory, while the URL in
> > > >> step #5 contains it.
>
> > > >> jason
>
> > > >> On Mon, Dec 21, 2009 at 8:44 AM, Swami <[email protected]> wrote:
> > > >> > Hi,
>
> > > >> > I've followed the advice given in
>
> > > >> >http://groups.google.com/group/google-web-toolkit/browse_thread/threa...
> > > >> >http://code.google.com/webtoolkit/doc/1.6/FAQ_DebuggingAndCompiling.h...
>
> > > >> > and I still can't get this to work...
>
> > > >> > I am doing the following:
>
> > > >> > 1. copying my App.html, App.css to theexternalserver(http://
> > > >> > localhost:8080/exist/gwt)
> > > >> > 2. Adding the following line to the Arguments section of the Eclipse
> > > >> > Run Configuration: -noserver
> > > >> > -startupUrlhttp://localhost:8080/exist/gwt/App.html
> > > >> > 3. Recompiling the App (via eclipse - using the "GWT Compile Project"
> > > >> > button)
> > > >> > 4. Copying the files workspace/app/war/app/app.nocache.js and
> > > >> > workspace/app/war/app/hosted.html to webapp/gwt/appexternalserver
> > > >> > directory
> > > >> > 5. Running the code in Eclipse, and copying the URL shown in the
> > > >> > DevelopmentModeconsole into my firefox browser:
> > > >> >http://localhost:8080/exist/app/gwt/App.html?gwt.codesvr=127.0.0.1:9997
>
> > > >> > I am running Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.12)
> > > >> > Gecko/2009072711 CentOS/3.0.12-1.el5.centos Firefox/3.0.12
>
> > > >> > Not sure what I'm doing wrong. Am I supposed to see the .cache.html
> > > >> > files appear on theserveror in the workspace??
>
> > > >> > Any help would be much appreciated
>
> > > >> > Kind Regards
>
> > > >> > Swami
>
> > > >> > --
>
> > > >> > You received this message because you are subscribed to the Google
> > > >> > Groups "Google Web Toolkit" group.
> > > >> > To post to this group, send email to
> > > >> > [email protected].
> > > >> > To unsubscribe from this group, send email to
> > > >> > [email protected].
> > > >> > For more options, visit this group
> > > >> > athttp://groups.google.com/group/google-web-toolkit?hl=en.
>
> > > > --
>
> > > > You received this message because you are subscribed to the Google
> > > > Groups "Google Web Toolkit" group.
> > > > To post to this group, send email to
> > > > [email protected].
> > > > To unsubscribe from this group, send email to
> > > > [email protected].
> > > > For more options, visit this group
> > > > athttp://groups.google.com/group/google-web-toolkit?hl=en.
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.