Window.alert doesn't work

330 views
Skip to first unread message

Bita Mirshafiee

unread,
Mar 22, 2015, 4:41:24 AM3/22/15
to google-we...@googlegroups.com
Hi all,

I'm completely new to GWT and I started a very simple sample 'HelloWorld' as the tutorial here , but as it should pop up an alert window, it doesn't work, it's the same as textbox or other widgets, I do my best and checked everything, but still doesn't work.What could be wrong with my code, is there any idea?
I really stuck in it.

Thanks in advance.

VaraKalyan

unread,
Mar 22, 2015, 6:56:55 AM3/22/15
to google-we...@googlegroups.com
Which Window class you are importing ? 
com.google.gwt.user.client.Window

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-tool...@googlegroups.com.
To post to this group, send email to google-we...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.



--
Regards
--------------
VaraKalyan
MTS 2
NetApp India

Bita Mirshafiee

unread,
Mar 22, 2015, 7:08:01 AM3/22/15
to google-we...@googlegroups.com
It's 

import com.google.gwt.user.client.Window;


On Sunday, March 22, 2015 at 3:56:55 AM UTC-7, VaraKalyan Maddi wrote:
Which Window class you are importing ? 
com.google.gwt.user.client.Window
On Sun, Mar 22, 2015 at 1:55 PM, Bita Mirshafiee <b.mirsh...@gmail.com> wrote:
Hi all,

I'm completely new to GWT and I started a very simple sample 'HelloWorld' as the tutorial here , but as it should pop up an alert window, it doesn't work, it's the same as textbox or other widgets, I do my best and checked everything, but still doesn't work.What could be wrong with my code, is there any idea?
I really stuck in it.

Thanks in advance.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsub...@googlegroups.com.

To post to this group, send email to google-we...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Vassilis Virvilis

unread,
Mar 22, 2015, 7:18:34 AM3/22/15
to google-we...@googlegroups.com
You give us very little data to guess.

Do you deploy it via tomcat? Are you running Super Dev Mode? Does your browser's console (F12 in firefox/chrome) throw any errors in reload?

    Vassilis

To unsubscribe from this group and stop receiving emails from it, send an email to google-web-tool...@googlegroups.com.

To post to this group, send email to google-we...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.



--
Vassilis Virvilis

Bita Mirshafiee

unread,
Mar 22, 2015, 7:57:08 AM3/22/15
to google-we...@googlegroups.com
yeah via tomcat and in chrome my IDEA is Intellij, it doesn't throw any errors, it just load the html and css files and the main java class does not load.


On Sunday, March 22, 2015 at 4:18:34 AM UTC-7, Vassilis Virvilis wrote:
You give us very little data to guess.

Do you deploy it via tomcat? Are you running Super Dev Mode? Does your browser's console (F12 in firefox/chrome) throw any errors in reload?

    Vassilis
On Sun, Mar 22, 2015 at 1:08 PM, Bita Mirshafiee <b.mirsh...@gmail.com> wrote:
It's 

import com.google.gwt.user.client.Window;


On Sunday, March 22, 2015 at 3:56:55 AM UTC-7, VaraKalyan Maddi wrote:
Which Window class you are importing ? 
com.google.gwt.user.client.Window
On Sun, Mar 22, 2015 at 1:55 PM, Bita Mirshafiee <b.mirsh...@gmail.com> wrote:
Hi all,

I'm completely new to GWT and I started a very simple sample 'HelloWorld' as the tutorial here , but as it should pop up an alert window, it doesn't work, it's the same as textbox or other widgets, I do my best and checked everything, but still doesn't work.What could be wrong with my code, is there any idea?
I really stuck in it.

Thanks in advance.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-we...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.



--
Regards
--------------
VaraKalyan
MTS 2
NetApp India

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsub...@googlegroups.com.
To post to this group, send email to google-we...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.



--
Vassilis Virvilis

Vassilis Virvilis

unread,
Mar 22, 2015, 10:16:10 AM3/22/15
to google-we...@googlegroups.com
One guess is that GWT code is not loaded at all. Not sure why this is happening though.

If you enable Net logging in your browser and reload do you see the browser trying to load *cache.js and or *nocache.js javascript files?

   Vassilis



To unsubscribe from this group and stop receiving emails from it, send an email to google-web-tool...@googlegroups.com.

To post to this group, send email to google-we...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.



--
Vassilis Virvilis

Bita Mirshafiee

unread,
Mar 22, 2015, 12:09:00 PM3/22/15
to google-we...@googlegroups.com
I've got these lines :

[WARN] 404 - GET /helloworld/helloworld/helloworld.nocache.js (127.0.0.1) 1408 bytes

 Response headers
      Content-Type: text/html;charset=ISO-8859-1
      Cache-Control: must-revalidate,no-cache,no-store
      Content-Length: 1408

I think you're right, does the first line mean what you said?

This is the line in code for js :

<script language="javascript" src="helloworld/helloworld.nocache.js">

Thanks for your help.
Vassilis Virvilis

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsub...@googlegroups.com.
To post to this group, send email to google-we...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.



--
Vassilis Virvilis

Vassilis Virvilis

unread,
Mar 22, 2015, 2:24:27 PM3/22/15
to google-we...@googlegroups.com
Yes 404 means not found.

Check your webapps/helloworld folder in your tomcat directory? Can you find the js file there? Looks like a problem of the war creation or deployment.

    Vassilis

To unsubscribe from this group and stop receiving emails from it, send an email to google-web-tool...@googlegroups.com.

To post to this group, send email to google-we...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.



--
Vassilis Virvilis
Reply all
Reply to author
Forward
0 new messages