Sunday, March 22, 2015

Re: Window.alert doesn't work

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

On Sun, Mar 22, 2015 at 6:09 PM, Bita Mirshafiee <b.mirshafiee90@gmail.com> wrote:
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.

On Sunday, March 22, 2015 at 7:16:10 AM UTC-7, Vassilis Virvilis wrote:
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



On Sun, Mar 22, 2015 at 1:57 PM, Bita Mirshafiee <b.mirsh...@gmail.com> wrote:
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+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.



--
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+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.



--
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+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@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

--
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-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment