Loading Plus-One-Button dynamically causes Popup to jump in height

2012-03-14 Thread newnoise
Hi,

I'm trying to add a Plus-One-Button dynamically to some popups our webapp 
is using. I'm using the following code:


HTML google = new HTML(g:plusone size=\small\ 
 annotation=\none\ href=\http://somecutomurl.com\;/g:plusone);

 Document doc = Document.get();
 ScriptElement script = doc.createScriptElement();
 script.setSrc(https://apis.google.com/js/plusone.js;);
 script.setType(text/javascript);
 script.setLang(javascript);
 doc.getBody().appendChild(script);
 
 DOM.setStyleAttribute(google.getElement(), margin, 0 5px 0 
 0);
 
 bottomLine.setCellHorizontalAlignment(google, 
 HasHorizontalAlignment.ALIGN_RIGHT);
 bottomLine.setCellVerticalAlignment(google, 
 HasVerticalAlignment.ALIGN_MIDDLE);
 bottomLine.add(google);

 
Where bottomLine is a HorizontalPanel which is added to the Popup 
afterwards. Adding it to the popup directly doesnt help.

The code itself works, the button is added, BUT the Popup enlarges its size 
for a very short second when the button is added and gets back to normal 
size afterwards. It kind of shrugs for a very short moment, which is very 
annoying.

I tried setting a fixed height and max-height for the surrounding div. And 
I tried to use the css clip attribute. Both not working. Also I tried 
using AddThis-JS-Library to add the button, same effect.

Does anyone has any idea how I can make this work? I'm sure it can be done, 
I saw apps doing exactly the same ...

Thanks!
noise

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/MKC0AyG8v6wJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: How to load an external JS-file without calling a function in there

2012-03-01 Thread newnoise
Hi Guys,

thanks for the input!
Finally I figured it out using the phenomenal writeCapture-library
(see: https://github.com/iamnoah/writeCapture/wiki). I linked it from
my module.gwt.xml-file and wrote a simple native method:

public static native void domWrite(String div, String src) /*-{
$wnd.writeCapture.html(div, src, function() {
});
}-*/;

And it works perfectly well!

Regards, Tom

On 1 Mrz., 03:14, Joseph Lust lifeofl...@gmail.com wrote:
 newnoise,

 I thought you could just place the script tag in your manifest file
 and that external library would be loaded into the page. Perhaps
 you've already tried this, but I did not see it mentioned above.

 i.e.

 module rename-to='app'
 ...
   script src=advert.js/script
 ...

 Otherwise, can you just look at their API as JoseM pointed out and
 write a few lines of JNSI to wrap it and then have your own java
 addAdvert(Element div) method? That would be the cleanest solution.
 You should be able to use a JS Beautifier (many browser based versions
 available) to deobfuscate it if it's not document and find the
 functions you need to call.

 Since it might not be a supported API, also add some GwtTestCases to
 confirm proper functionality of the JNSI hook so you know if an
 upgrade from the advertiser breaks it.

 Sincerely,
 Joe

 On Feb 29, 11:55 am, JoseM jose.a.marti...@gmail.com wrote:







  Check their API or read their javascript code, there might be a way to pass
  an id of a div which they would use to append to instead of using
  document.write.  That's what I found when trying to use Twitter's Widget
  api, it was documented but I did find it by reading their code and seeing
  what it does.

  On Wednesday, February 29, 2012 9:55:13 AM UTC-5, Thomas Broyer wrote:

   Anything relying on document.write() must be in your HTML source when it's
   being parsed; they can't be loaded dynamically.

   On Wednesday, February 29, 2012 2:14:35 PM UTC+1, newnoise wrote:

   Hi,

   I'm trying to dynamically add advertisement to our page. Our
   advertisement-partner provides us a script which we have to include
   like this:
   script type=text/javascript src=http://www.somesource.com/
   output.js?id=123 http://www.somesource.com/output.js?id=123/script

   The output.js just contains one line of code like this:
   document.write(divsome html/div);

   I have no idea how I can add this JS to the page and make it
   execute ... I tried just adding it as a HTML-Widget, which correctly
   adds the code, but it isnt executed. Also the ScriptInjection doesnt
   help, because I need the code somewhere in the body and not in
   head.

   I'm happy for any help!
   Tom

  On Wednesday, February 29, 2012 9:55:13 AM UTC-5, Thomas Broyer wrote:

   Anything relying on document.write() must be in your HTML source when it's
   being parsed; they can't be loaded dynamically.

   On Wednesday, February 29, 2012 2:14:35 PM UTC+1, newnoise wrote:

   Hi,

   I'm trying to dynamically add advertisement to our page. Our
   advertisement-partner provides us a script which we have to include
   like this:
   script type=text/javascript src=http://www.somesource.com/
   output.js?id=123 http://www.somesource.com/output.js?id=123/script

   The output.js just contains one line of code like this:
   document.write(divsome html/div);

   I have no idea how I can add this JS to the page and make it
   execute ... I tried just adding it as a HTML-Widget, which correctly
   adds the code, but it isnt executed. Also the ScriptInjection doesnt
   help, because I need the code somewhere in the body and not in
   head.

   I'm happy for any help!
   Tom

  On Wednesday, February 29, 2012 9:55:13 AM UTC-5, Thomas Broyer wrote:

   Anything relying on document.write() must be in your HTML source when it's
   being parsed; they can't be loaded dynamically.

   On Wednesday, February 29, 2012 2:14:35 PM UTC+1, newnoise wrote:

   Hi,

   I'm trying to dynamically add advertisement to our page. Our
   advertisement-partner provides us a script which we have to include
   like this:
   script type=text/javascript src=http://www.somesource.com/
   output.js?id=123 http://www.somesource.com/output.js?id=123/script

   The output.js just contains one line of code like this:
   document.write(divsome html/div);

   I have no idea how I can add this JS to the page and make it
   execute ... I tried just adding it as a HTML-Widget, which correctly
   adds the code, but it isnt executed. Also the ScriptInjection doesnt
   help, because I need the code somewhere in the body and not in
   head.

   I'm happy for any help!
   Tom

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http

How to load an external JS-file without calling a function in there

2012-02-29 Thread newnoise
Hi,

I'm trying to dynamically add advertisement to our page. Our
advertisement-partner provides us a script which we have to include
like this:
script type=text/javascript src=http://www.somesource.com/
output.js?id=123/script

The output.js just contains one line of code like this:
document.write(divsome html/div);

I have no idea how I can add this JS to the page and make it
execute ... I tried just adding it as a HTML-Widget, which correctly
adds the code, but it isnt executed. Also the ScriptInjection doesnt
help, because I need the code somewhere in the body and not in
head.

I'm happy for any help!
Tom

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Multi-Module Project and Servlet Mappings

2011-02-03 Thread newnoise
Got it. Reading your post several times got me to it. Thanks.

On 2 Feb., 22:26, newnoise tommmuel...@googlemail.com wrote:
 Hi,

 I'm having kind of the same problem, but dont understand what you
 actually did. Could you maybe post a sample web.xml?

 Thanks in advance!
 Tom

 On 14 Jan., 09:37, rsimon magickti...@gmail.com wrote:

  Ouch. Looks like I should have RTFM ;-) Thanks for the hint!

  This solved most of my problem. I was able to map the servlets to /
  endpointName, rather than being forced to create multiple /
  moduleName/endpointName mappings. The applications still made
  their RPC requests to moduleName/endpointName, though.

  However I could fix that by changing the RemoteServiceRelativePath
  configuration in my client side service interface, like so:

  RemoteServiceRelativePath(../endpointName) instead of
  (endpointName)

  Not sure if this is 100% clean. But it did the trick.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: 2 Modules in 1 GWT-App, both starting the onModuleLoad?

2011-02-02 Thread newnoise
Ah sorry my mistake, the error is:
Finding entry point classes
  [ERROR] Unable to find type 'project.client.child1.Child1'

I checked it like 9 times, the path is right.

I'm not trying to compile the Parent-Module anymore but the two
modules in the project. I can't find any page describing the correct-
architecture for a project containing several modules.

I really appreciate your help! If I can specify anything with more
information please let me know!
Tom


On 2 Feb., 00:27, Colin Alworth niloc...@gmail.com wrote:
  [ERROR] Hint: Previous compiler errors may have made this

 type unavailable
 Which type? Which error? If you are missing code in your Child1/2 projects
 that disappears only when the Parent module is missing, something is not set
 up correctly, or perhaps you are still attempting to compile the new-deleted
 module?

 If a module with an entry-point inherits another module with another
 entry-point, the finished product will run both entry-points. That is what
 your original post seemed to indicate, though I still don't see how. This
 compiler error seems to suggest that there is some other mixed up
 dependency.

 -Colin

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: 2 Modules in 1 GWT-App, both starting the onModuleLoad?

2011-02-02 Thread newnoise
Ah sorry my mistake, the error is:
Finding entry point classes
  [ERROR] Unable to find type 'project.client.child1.Child1'

I checked it like 9 times, the path is right.

I'm not trying to compile the Parent-Module anymore but the two
modules in the project. I can't find any page describing the correct-
architecture for a project containing several modules.

I really appreciate your help! If I can specify anything with more
information please let me know!
Tom


On 2 Feb., 00:27, Colin Alworth niloc...@gmail.com wrote:
  [ERROR] Hint: Previous compiler errors may have made this

 type unavailable
 Which type? Which error? If you are missing code in your Child1/2 projects
 that disappears only when the Parent module is missing, something is not set
 up correctly, or perhaps you are still attempting to compile the new-deleted
 module?

 If a module with an entry-point inherits another module with another
 entry-point, the finished product will run both entry-points. That is what
 your original post seemed to indicate, though I still don't see how. This
 compiler error seems to suggest that there is some other mixed up
 dependency.

 -Colin

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: 2 Modules in 1 GWT-App, both starting the onModuleLoad?

2011-02-02 Thread newnoise
I can acutally compile child1 without any problems. Its just child2
that messes up. And I really don't know why. I had this as an isolated
project before and it worked fine. Then I moved it into the main-
project and no I can't compile it no more. This is freakin me out.
Seriously!

Tom


On 2 Feb., 10:31, newnoise tommmuel...@googlemail.com wrote:
 Ah sorry my mistake, the error is:
 Finding entry point classes
       [ERROR] Unable to find type 'project.client.child1.Child1'

 I checked it like 9 times, the path is right.

 I'm not trying to compile the Parent-Module anymore but the two
 modules in the project. I can't find any page describing the correct-
 architecture for a project containing several modules.

 I really appreciate your help! If I can specify anything with more
 information please let me know!
 Tom

 On 2 Feb., 00:27, Colin Alworth niloc...@gmail.com wrote:

   [ERROR] Hint: Previous compiler errors may have made this

  type unavailable
  Which type? Which error? If you are missing code in your Child1/2 projects
  that disappears only when the Parent module is missing, something is not set
  up correctly, or perhaps you are still attempting to compile the new-deleted
  module?

  If a module with an entry-point inherits another module with another
  entry-point, the finished product will run both entry-points. That is what
  your original post seemed to indicate, though I still don't see how. This
  compiler error seems to suggest that there is some other mixed up
  dependency.

  -Colin

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: 2 Modules in 1 GWT-App, both starting the onModuleLoad?

2011-02-02 Thread newnoise
Yeah that were just typos while removing details from my code ...
BUT

I got it working. Not completely satisfying though, but a first
step :)
I can compile and run both modules when I change the following in
Child2.gwt.xml:
the path: source path='client.child2'/source
to: source path='client'/source

If I do that I can compile and run and it works fine, but I produce a
lot more js-code than necessary. Maybe you have one last idea why it's
not working?

Thanks you so much for helping me!
Tom


On 2 Feb., 18:02, Colin Alworth niloc...@gmail.com wrote:
 If I am understanding you right, Child2 is failing because it cannot find
 the Child1 entrypoint - that should be a red flag that something is setup
 wrong. Somehow your Child2 entry point is referring to the Child1 entrypoint
 - perhaps are you extending it, or referring to static members in it?
 Somehow the compiler believes you need the Child1 class to create the Child2
 project, and that is causing this error. It is probably also what was
 causing your earlier issues, as Child2 was running the Child1 entrypoint.

 I am sure it is just the process of removing details from your code, but in
 your error message you reference project.client.child1.Child1, while your
 entrypoints are named project.client.Child1 and
 project.client.child2.Child2 – do you really have two different classes
 named Child1, or is it possible that there is some mixed dependency here?

 -Colin



 On Wed, Feb 2, 2011 at 5:39 AM, newnoise tommmuel...@googlemail.com wrote:
  I can acutally compile child1 without any problems. Its just child2
  that messes up. And I really don't know why. I had this as an isolated
  project before and it worked fine. Then I moved it into the main-
  project and no I can't compile it no more. This is freakin me out.
  Seriously!

  Tom

  On 2 Feb., 10:31, newnoise tommmuel...@googlemail.com wrote:
   Ah sorry my mistake, the error is:
   Finding entry point classes
         [ERROR] Unable to find type 'project.client.child1.Child1'

   I checked it like 9 times, the path is right.

   I'm not trying to compile the Parent-Module anymore but the two
   modules in the project. I can't find any page describing the correct-
   architecture for a project containing several modules.

   I really appreciate your help! If I can specify anything with more
   information please let me know!
   Tom

   On 2 Feb., 00:27, Colin Alworth niloc...@gmail.com wrote:

 [ERROR] Hint: Previous compiler errors may have made this

type unavailable
Which type? Which error? If you are missing code in your Child1/2
  projects
that disappears only when the Parent module is missing, something is
  not set
up correctly, or perhaps you are still attempting to compile the
  new-deleted
module?

If a module with an entry-point inherits another module with another
entry-point, the finished product will run both entry-points. That is
  what
your original post seemed to indicate, though I still don't see how.
  This
compiler error seems to suggest that there is some other mixed up
dependency.

-Colin

  --
  You received this message because you are subscribed to the Google Groups
  Google Web Toolkit group.
  To post to this group, send email to google-web-toolkit@googlegroups.com.
  To unsubscribe from this group, send email to
  google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
  .
  For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.

 --
 218.248.6165
 niloc...@gmail.com

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Multi-Module Project and Servlet Mappings

2011-02-02 Thread newnoise
Hi,

I'm having kind of the same problem, but dont understand what you
actually did. Could you maybe post a sample web.xml?

Thanks in advance!
Tom


On 14 Jan., 09:37, rsimon magickti...@gmail.com wrote:
 Ouch. Looks like I should have RTFM ;-) Thanks for the hint!

 This solved most of my problem. I was able to map the servlets to /
 endpointName, rather than being forced to create multiple /
 moduleName/endpointName mappings. The applications still made
 their RPC requests to moduleName/endpointName, though.

 However I could fix that by changing the RemoteServiceRelativePath
 configuration in my client side service interface, like so:

 RemoteServiceRelativePath(../endpointName) instead of
 (endpointName)

 Not sure if this is 100% clean. But it did the trick.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: 2 Modules in 1 GWT-App, both starting the onModuleLoad?

2011-02-02 Thread newnoise
So thanks to Colin this is solved.

The problem was that I seperated my services into a package called
project.services. all modules are referencing this sources. but one
of the services was referring to class of client.child1. so when the
xml contained source path='client.child2'/source  it couldnt find
the sources for that single class ...

Maybe this helps anyone.
Tom



On 2 Feb., 19:18, newnoise tommmuel...@googlemail.com wrote:
 Yeah that were just typos while removing details from my code ...
 BUT

 I got it working. Not completely satisfying though, but a first
 step :)
 I can compile and run both modules when I change the following in
 Child2.gwt.xml:
 the path: source path='client.child2'/source
 to: source path='client'/source

 If I do that I can compile and run and it works fine, but I produce a
 lot more js-code than necessary. Maybe you have one last idea why it's
 not working?

 Thanks you so much for helping me!
 Tom

 On 2 Feb., 18:02, Colin Alworth niloc...@gmail.com wrote:

  If I am understanding you right, Child2 is failing because it cannot find
  the Child1 entrypoint - that should be a red flag that something is setup
  wrong. Somehow your Child2 entry point is referring to the Child1 entrypoint
  - perhaps are you extending it, or referring to static members in it?
  Somehow the compiler believes you need the Child1 class to create the Child2
  project, and that is causing this error. It is probably also what was
  causing your earlier issues, as Child2 was running the Child1 entrypoint.

  I am sure it is just the process of removing details from your code, but in
  your error message you reference project.client.child1.Child1, while your
  entrypoints are named project.client.Child1 and
  project.client.child2.Child2 – do you really have two different classes
  named Child1, or is it possible that there is some mixed dependency here?

  -Colin

  On Wed, Feb 2, 2011 at 5:39 AM, newnoise tommmuel...@googlemail.com wrote:
   I can acutally compile child1 without any problems. Its just child2
   that messes up. And I really don't know why. I had this as an isolated
   project before and it worked fine. Then I moved it into the main-
   project and no I can't compile it no more. This is freakin me out.
   Seriously!

   Tom

   On 2 Feb., 10:31, newnoise tommmuel...@googlemail.com wrote:
Ah sorry my mistake, the error is:
Finding entry point classes
      [ERROR] Unable to find type 'project.client.child1.Child1'

I checked it like 9 times, the path is right.

I'm not trying to compile the Parent-Module anymore but the two
modules in the project. I can't find any page describing the correct-
architecture for a project containing several modules.

I really appreciate your help! If I can specify anything with more
information please let me know!
Tom

On 2 Feb., 00:27, Colin Alworth niloc...@gmail.com wrote:

  [ERROR] Hint: Previous compiler errors may have made this

 type unavailable
 Which type? Which error? If you are missing code in your Child1/2
   projects
 that disappears only when the Parent module is missing, something is
   not set
 up correctly, or perhaps you are still attempting to compile the
   new-deleted
 module?

 If a module with an entry-point inherits another module with another
 entry-point, the finished product will run both entry-points. That is
   what
 your original post seemed to indicate, though I still don't see how.
   This
 compiler error seems to suggest that there is some other mixed up
 dependency.

 -Colin

   --
   You received this message because you are subscribed to the Google Groups
   Google Web Toolkit group.
   To post to this group, send email to google-web-toolkit@googlegroups.com.
   To unsubscribe from this group, send email to
   google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
   .
   For more options, visit this group at
  http://groups.google.com/group/google-web-toolkit?hl=en.

  --
  218.248.6165
  niloc...@gmail.com

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



2 Modules in 1 GWT-App, both starting the onModuleLoad?

2011-02-01 Thread newnoise
Hi,

I have a GWT-Project currently containing modules (will be more in the
future).
To make it tidy I created a containing module called Parent.
Parent does not have any source, its just a containing module. This
is the Parent.gwt.xml:

?xml version=1.0 encoding=UTF-8?
module rename-to='Parent'
inherits name='com.google.gwt.user.User' /
inherits name='com.google.gwt.widgetideas.GWTCanvas'/inherits
inherits name='project.Child1' /
inherits name='project.Child2' /
/module

The two modules with actual code are apparently Child1 and Child2.
There .gwt.xml-Files are the following:
Child1:
?xml version=1.0 encoding=UTF-8?
module rename-to='Child1'
inherits name='com.google.gwt.user.User' /
inherits name='com.google.gwt.widgetideas.GWTCanvas'/inherits
entry-point class='project.client.Child1'/entry-point
source path='client'/source
source path='generics'/source
/module

Child2:
?xml version=1.0 encoding=UTF-8?
module rename-to='Child2'
inherits name='com.google.gwt.user.User' /
inherits name='com.google.gwt.widgetideas.GWTCanvas'/inherits
entry-point class='project.client.login.Child2' /
source path='client.child2'/source
source path='generics'/source
/module


The compilation works fine but I get 3 js-folders in my war-folder. I
supposed that I just get one, as Im using a containing class. For both
modules exist a .html-file referencing to the .js-file created for it.
The problem is that when I open the Child2.html-file it tries to load
the onModuleLoad()-method of Child1! which crashes the system, as
there are divs missing. What am I doing wrong? Im stuck with this for
a week now!

Please help. Anything is appreciated!
Tom

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: 2 Modules in 1 GWT-App, both starting the onModuleLoad?

2011-02-01 Thread newnoise
Ok. But don't I need some module like parent? If I delete parent I
can't compile the project no more.
Both .html-files point to the right .nocache.js files! I doublechecked
it several times :)

Thanks
noise

On 1 Feb., 23:24, Colin Alworth niloc...@gmail.com wrote:
 From the little information here, it seems that either Child2.html has a
 script tag loading Child1.nocache.js or Parent.nocache.js

 Parent serves no purpose in your setup - if it were compiled and run, it
 would try to start both applications at once.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: 2 Modules in 1 GWT-App, both starting the onModuleLoad?

2011-02-01 Thread newnoise
I get this error-message trying to compile after deleting the
Parent.gwt.xml:
   [ERROR] Hint: Previous compiler errors may have made this type
unavailable
 [ERROR] Hint: Check the inheritance chain from your module;
it may not be inheriting a required module or a module may not be
adding its source path entries properly

Thanks!



On 2 Feb., 00:18, newnoise tommmuel...@googlemail.com wrote:
 Ok. But don't I need some module like parent? If I delete parent I
 can't compile the project no more.
 Both .html-files point to the right .nocache.js files! I doublechecked
 it several times :)

 Thanks
 noise

 On 1 Feb., 23:24, Colin Alworth niloc...@gmail.com wrote:

  From the little information here, it seems that either Child2.html has a
  script tag loading Child1.nocache.js or Parent.nocache.js

  Parent serves no purpose in your setup - if it were compiled and run, it
  would try to start both applications at once.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Request.cancel doesn't work for me!

2010-12-07 Thread newnoise
Does really no one got any idea?


On 29 Nov., 18:29, newnoise tommmuel...@googlemail.com wrote:
 Me again,

 just tried to make the imExpensive-method less complex, but still no
 success.

 TheRequestis not cancelled ... What am I doing wrong?

 Thanks
 Tom

 On Nov 29, 6:16 pm, newnoise tommmuel...@googlemail.com wrote:

  Hi,

  I'm working on an GWT-App displaying a map with different layers.
  Some of those layers are drawn just onrequestand just for the part
  of the map which is currently displayed.

  The Problem occurs if a user moves and zooms the map pretty fast, so
  that a lot of pictures have to be drawn. This results in quite a time
  of waiting when he finally stops. What I tried was tocancelthe
 requestusingRequest.cancel(the Async Method returnsRequestinstead
  of void), but all the pictures are drawn anyway.

  How does theRequest.cancel-method work? Is it just blocking the
  Callback? Or does it actuallycancelthe running code on server-side?
  Maybe the problem is, that the specific method contains mainly one
  complex method-call? The specific method-scheme looks like:

  public Boolean update() {
  int a = 2;
  int b = 3;

  int x = imExpensive(a,b); // method which needs like 95% of
  calculating time

  if (x0) return true;
  return false;

  }

  I suppose that theRequest.cancel-method does notcancela running
  method, and stops the method right after imExpensive(). Is that right?
  In that case the problem could be solved by making the method
  imExpensive less complex, which would be a pretty doable task ...

  Thanks a lot!
  Tom

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Request.cancel doesn't work for me!

2010-12-07 Thread newnoise
Ok. Too bad ...

Is there any way to abort the running method on my server?

Thanks
Tom


On 7 Dez., 16:54, jhulford jhulf...@gmail.com wrote:
 All calling it does is call the abort() method of XmlHttpRequest which
 will stop the execution of your callback, it doesn't do anything on
 your server.

 Check theRequest.cancel() code..it's pretty straightforward.

 On Dec 7, 7:01 am, newnoise tommmuel...@googlemail.com wrote:

  Does really no one got any idea?

  On 29 Nov., 18:29, newnoise tommmuel...@googlemail.com wrote:

   Me again,

   just tried to make the imExpensive-method less complex, but still no
   success.

   TheRequestis not cancelled ... What am I doing wrong?

   Thanks
   Tom

   On Nov 29, 6:16 pm, newnoise tommmuel...@googlemail.com wrote:

Hi,

I'm working on an GWT-App displaying a map with different layers.
Some of those layers are drawn just onrequestand just for the part
of the map which is currently displayed.

The Problem occurs if a user moves and zooms the map pretty fast, so
that a lot of pictures have to be drawn. This results in quite a time
of waiting when he finally stops. What I tried was tocancelthe
   requestusingRequest.cancel(the Async Method returnsRequestinstead
of void), but all the pictures are drawn anyway.

How does theRequest.cancel-method work? Is it just blocking the
Callback? Or does it actuallycancelthe running code on server-side?
Maybe the problem is, that the specific method contains mainly one
complex method-call? The specific method-scheme looks like:

public Boolean update() {
int a = 2;
int b = 3;

int x = imExpensive(a,b); // method which needs like 95% of
calculating time

if (x0) return true;
return false;

}

I suppose that theRequest.cancel-method does notcancela running
method, and stops the method right after imExpensive(). Is that right?
In that case the problem could be solved by making the method
imExpensive less complex, which would be a pretty doable task ...

Thanks a lot!
Tom

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Request.cancel doesn't work for me!

2010-11-29 Thread newnoise
Hi,

I'm working on an GWT-App displaying a map with different layers.
Some of those layers are drawn just on request and just for the part
of the map which is currently displayed.

The Problem occurs if a user moves and zooms the map pretty fast, so
that a lot of pictures have to be drawn. This results in quite a time
of waiting when he finally stops. What I tried was to cancel the
request using Request.cancel (the Async Method returns Request instead
of void), but all the pictures are drawn anyway.

How does the Request.cancel-method work? Is it just blocking the
Callback? Or does it actually cancel the running code on server-side?
Maybe the problem is, that the specific method contains mainly one
complex method-call? The specific method-scheme looks like:

public Boolean update() {
int a = 2;
int b = 3;

int x = imExpensive(a,b); // method which needs like 95% of
calculating time

if (x0) return true;
return false;
}

I suppose that the Request.cancel-method does not cancel a running
method, and stops the method right after imExpensive(). Is that right?
In that case the problem could be solved by making the method
imExpensive less complex, which would be a pretty doable task ...


Thanks a lot!
Tom

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Request.cancel doesn't work for me!

2010-11-29 Thread newnoise
Me again,

just tried to make the imExpensive-method less complex, but still no
success.

The Request is not cancelled ... What am I doing wrong?

Thanks
Tom



On Nov 29, 6:16 pm, newnoise tommmuel...@googlemail.com wrote:
 Hi,

 I'm working on an GWT-App displaying a map with different layers.
 Some of those layers are drawn just on request and just for the part
 of the map which is currently displayed.

 The Problem occurs if a user moves and zooms the map pretty fast, so
 that a lot of pictures have to be drawn. This results in quite a time
 of waiting when he finally stops. What I tried was to cancel the
 request using Request.cancel (the Async Method returns Request instead
 of void), but all the pictures are drawn anyway.

 How does the Request.cancel-method work? Is it just blocking the
 Callback? Or does it actually cancel the running code on server-side?
 Maybe the problem is, that the specific method contains mainly one
 complex method-call? The specific method-scheme looks like:

 public Boolean update() {
 int a = 2;
 int b = 3;

 int x = imExpensive(a,b); // method which needs like 95% of
 calculating time

 if (x0) return true;
 return false;

 }

 I suppose that the Request.cancel-method does not cancel a running
 method, and stops the method right after imExpensive(). Is that right?
 In that case the problem could be solved by making the method
 imExpensive less complex, which would be a pretty doable task ...

 Thanks a lot!
 Tom

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Session Managment for more than one GWT-Project

2010-11-08 Thread newnoise
Hi there,

I'm writing an GWT-App containing several sub-projects. To keep the
App lightweight and easy I created different projects for each
subproject linking to each other. I deployed the projects on my Tomcat
and it works fine, BUT:

As every subprojects has its own server-classes and therefore creates
its own session, i cannot recognize an user who logged in on a
different page.

so my question is: is there any way to tell the apps to share the
session managment? or do i have to restructure my whole project again?

thanks a lot!
tom

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



How to merge 2 projects into 1?

2010-10-06 Thread newnoise
Hi all,

I created two projects with GWT and Eclipse-Plugin.
Because both projects have a completly different client-side code, but
also completly the same server-side code, I want to combine them to
avoid having the same code twice.
What I did was to link the project without the server-side code to the
one with the server side code. Eclipse isnt showing any error. But
when I compile the project now, GWT says: No source-code available
for both the XXXService.java und XXXServiceAsync.java. Adding
com.XXX.client to the projects XXX.gwt.xml doenst help ...

Can anyone tell me how to solve this issue?

Thanks a lot!
Tom

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Sending mails from GWT-App

2010-09-28 Thread newnoise
Hi,

I'm trying to send an email from my GWT-App. I found the following
code using google:
protected void sendMessage(String smtpHost, String fromAddress, String
fromName, String to, String subject, String text) {
// Get system properties Properties
props = System.getProperties();
// Setup mail server
props.put(mail.smtp.host, smtpHost);
// Get session
Session session = Session.getDefaultInstance(props, null);
// Define message
MimeMessage message = new MimeMessage(session);
// Set the from address
message.setFrom(new InternetAddress(fromAddress, fromName));
// Set the to address
message.addRecipient(Message.RecipientType.TO, new
InternetAddress(to));
// Set the subject
message.setSubject(subject);
// Set the content
message.setContent(text, text/html);
// Send message
Transport.send(message);
}

But I'm getting a java.lang.AssertionError: null.

I was wondering why I do not have to enter a password for the smtp-
server, and what to enter at String smtpHost, as I have to enter my
Smtp-Host at props.put() again ...

Thanks!
Tom

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Sending mails from GWT-App

2010-09-28 Thread newnoise
What does that mean?


On 28 Sep., 15:12, Paul Grenyer paul.gren...@gmail.com wrote:
 Hi

 This isn't a GET issue

 Paul

 On Tue, Sep 28, 2010 at 1:46 PM, newnoise tommmuel...@googlemail.comwrote:



  Hi,

  I'm trying to send an email from my GWT-App. I found the following
  code using google:
  protected void sendMessage(String smtpHost, String fromAddress, String
  fromName, String to, String subject, String text) {
  // Get system properties Properties
  props = System.getProperties();
  // Setup mail server
  props.put(mail.smtp.host, smtpHost);
  // Get session
  Session session = Session.getDefaultInstance(props, null);
  // Define message
  MimeMessage message = new MimeMessage(session);
  // Set the from address
  message.setFrom(new InternetAddress(fromAddress, fromName));
  // Set the to address
  message.addRecipient(Message.RecipientType.TO, new
  InternetAddress(to));
  // Set the subject
  message.setSubject(subject);
  // Set the content
  message.setContent(text, text/html);
  // Send message
  Transport.send(message);
  }

  But I'm getting a java.lang.AssertionError: null.

  I was wondering why I do not have to enter a password for the smtp-
  server, and what to enter at String smtpHost, as I have to enter my
  Smtp-Host at props.put() again ...

  Thanks!
  Tom

  --
  You received this message because you are subscribed to the Google Groups
  Google Web Toolkit group.
  To post to this group, send email to google-web-tool...@googlegroups.com.
  To unsubscribe from this group, send email to
  google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
  .
  For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.

 --
 Thanks
 Paul

 Paul Grenyer
 e: paul.gren...@gmail.com
 b: paulgrenyer.blogspot.com
 t: pjgrenyer

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Sending mails from GWT-App

2010-09-28 Thread newnoise
Ok i got that.

Now my App tells me  that the API package 'mail' or call 'Send()' was
not found. ...
Did I just forget to inherit something, or is it not possible to use
mail command with GWT?

Thanks!



On 28 Sep., 15:46, Vladi S vladislavs.sere...@googlemail.com wrote:
   This isn't a GET issue

 I guessPaul ment GWT issue . And yes, your java code is broken and
 GWT group ist actually not the right place for this questions.

I'm trying to send an email from my GWT-App. I found the following

 The code for sending an email will have to be on the server side
 as you want to use java mail.  (are you aware of this ?)

  protected void sendMessage(String smtpHost, String fromAddress, String
  ...
  props.put(mail.smtp.host, smtpHost);
   I was wondering ... what to enter at String smtpHost, as I have to enter 
   my
   Smtp-Host at props.put() again ...

 you don't have to enter this one again.

 Dear newnoise, please google a little bit more for the code, as it
 will surely provide you a solution.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: How to use one service from several GWT-Apps

2010-06-24 Thread newnoise
just a simple dijkstra ...

On 23 Jun., 22:55, giuseppe la scaleia glascal...@gmail.com wrote:
 A question what do you use for route on map?? Regards giuseppe

 Inviato da iPhone di Giuseppe La  Scaleia

 Il giorno 23/giu/2010, alle ore 22.13, newnoise tommmuel...@googlemail.com
   ha scritto:

  and when i wrote service again, i totally meant servlet. its been a
  looong day ...

  On 23 Jun., 22:11, newnoise tommmuel...@googlemail.com wrote:
  sorry i meant service.

  i try to explain the problem more precisely:
  i got a map. users can, for example, use the app to calculate a  
  route-
  advise. if the user did so he may want to print the route. but the  
  map
  is nearly fullscreen, so if he justs prints it like that it looks
  pretty bad. so what i do is to open a new browser window with a
  smaller map. and now in this new window the route must be newly
  calculated, because you cant give a java object to the new window,
  right?

  what i want now is that the print page uses the routing servlet of  
  the
  main app. what i dont want is that the print page needs all the same
  server code again. but i dont get it working. because if i merge the
  projects the web.xmls clash.

  thanks a lot!
  tom

  On 23 Jun., 21:47, Blessed Geek blessedg...@gmail.com wrote:

  service?

  Printing thro web service that all/any window could call with a  
  single
  url? Why would you need to duplicate code when you can call it  
  with a
  single url?

  Or did you mean you have a specialised GWT window written to handle
  printing and you wish to route all printing to that GWT window? And
  you wish to deal with the occasionally asked question of how to
  perform inter-frame communication for GWT? I don't remember now, but
  there is a google code project to expose GWT objects to javascript.
  Coupled with GWT Dictionary API, I wonder if that will help.

  Of course, you do realise that for two frames to communicate, they
  should have the same root Window parentage so that one frame could
  refer to another thro the frame hierarchy.

  GWT team should seriously look at providing a comprehensive facility
  for interframe communication, rather than having us perform
  algorithmic contortions and acrobatics - like having to scratch your
  own nose thro the route of bending your hand behind your head.

  --
  You received this message because you are subscribed to the Google  
  Groups Google Web Toolkit group.
  To post to this group, send email to google-web-toolkit@googlegroups.com
  .
  To unsubscribe from this group, send email to 
  google-web-toolkit+unsubscr...@googlegroups.com
  .
  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 google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



How to use one service from several GWT-Apps

2010-06-23 Thread newnoise
Hi,

I'm currently trying to add some printing functions to a map-software.
If the user hits the print-button a new browser-window, which's
dimensions fit to a normal sheet of paper, is opened. As the user
usually wants to print stuff like a route or so the new window needs
to use the same services the main-app does.

What I already tried:
First I did the printing stuff on its own and tried to merge the
projects (map and print). There where some problems because of the
web.xml.
Then I added another print.html to the map-root-dir and tried to merge
the source directly in one project. In this scenario the
onModuleLoad()-method of the print.html wasnt fired.

Is there a way to let the print-app use its parents-apps services? I'd
really like to avoid to have the code twice on my server ...

thanks for any advise!
tom

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: How to use one service from several GWT-Apps

2010-06-23 Thread newnoise
sorry i meant service.

i try to explain the problem more precisely:
i got a map. users can, for example, use the app to calculate a route-
advise. if the user did so he may want to print the route. but the map
is nearly fullscreen, so if he justs prints it like that it looks
pretty bad. so what i do is to open a new browser window with a
smaller map. and now in this new window the route must be newly
calculated, because you cant give a java object to the new window,
right?

what i want now is that the print page uses the routing servlet of the
main app. what i dont want is that the print page needs all the same
server code again. but i dont get it working. because if i merge the
projects the web.xmls clash.

thanks a lot!
tom


On 23 Jun., 21:47, Blessed Geek blessedg...@gmail.com wrote:
 service?

 Printing thro web service that all/any window could call with a single
 url? Why would you need to duplicate code when you can call it with a
 single url?

 Or did you mean you have a specialised GWT window written to handle
 printing and you wish to route all printing to that GWT window? And
 you wish to deal with the occasionally asked question of how to
 perform inter-frame communication for GWT? I don't remember now, but
 there is a google code project to expose GWT objects to javascript.
 Coupled with GWT Dictionary API, I wonder if that will help.

 Of course, you do realise that for two frames to communicate, they
 should have the same root Window parentage so that one frame could
 refer to another thro the frame hierarchy.

 GWT team should seriously look at providing a comprehensive facility
 for interframe communication, rather than having us perform
 algorithmic contortions and acrobatics - like having to scratch your
 own nose thro the route of bending your hand behind your head.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: How to use one service from several GWT-Apps

2010-06-23 Thread newnoise
and when i wrote service again, i totally meant servlet. its been a
looong day ...

On 23 Jun., 22:11, newnoise tommmuel...@googlemail.com wrote:
 sorry i meant service.

 i try to explain the problem more precisely:
 i got a map. users can, for example, use the app to calculate a route-
 advise. if the user did so he may want to print the route. but the map
 is nearly fullscreen, so if he justs prints it like that it looks
 pretty bad. so what i do is to open a new browser window with a
 smaller map. and now in this new window the route must be newly
 calculated, because you cant give a java object to the new window,
 right?

 what i want now is that the print page uses the routing servlet of the
 main app. what i dont want is that the print page needs all the same
 server code again. but i dont get it working. because if i merge the
 projects the web.xmls clash.

 thanks a lot!
 tom

 On 23 Jun., 21:47, Blessed Geek blessedg...@gmail.com wrote:

  service?

  Printing thro web service that all/any window could call with a single
  url? Why would you need to duplicate code when you can call it with a
  single url?

  Or did you mean you have a specialised GWT window written to handle
  printing and you wish to route all printing to that GWT window? And
  you wish to deal with the occasionally asked question of how to
  perform inter-frame communication for GWT? I don't remember now, but
  there is a google code project to expose GWT objects to javascript.
  Coupled with GWT Dictionary API, I wonder if that will help.

  Of course, you do realise that for two frames to communicate, they
  should have the same root Window parentage so that one frame could
  refer to another thro the frame hierarchy.

  GWT team should seriously look at providing a comprehensive facility
  for interframe communication, rather than having us perform
  algorithmic contortions and acrobatics - like having to scratch your
  own nose thro the route of bending your hand behind your head.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



IE7 does not complete loading pictures

2010-05-02 Thread newnoise
Hello,

I am currently developing a map-service application.
Therefore I have a grid containing the tiles of my map.
I wrote an algorithm which dynamically fills this grid with the number
of needed tiles.
Strange thing is, that the IE7 does not complete the initial loading
of the images, the status bar says that it has to load 18 more
elements, but it never completes this task.
But if I do some action with the map then, like zooming or scrolling,
so that the displayed tiles change, the same algorithm works perfectly
well.
Anyway IE7 and IE8 never fire the image.onload Event.

Here is some code:

public void displayVisibleTiles(VisibleTiles tile, int zoom, int
zoomvalue) {
int countX = (- visibleTiles.getBottomLeftTile()[0] +
visibleTiles.getTopRightTile()[0]+1);
int countY = (visibleTiles.getBottomLeftTile()[1] -
visibleTiles.getTopRightTile()[1]+1);

picGrid.resize(countY, countX);
currentCountX = countX;
currentCountY = countY;
int xCounter = 0;
int yCounter = 0;

int yEnd = (visibleTiles.getTopRightTile()[1]) + countY;
int yStart = (visibleTiles.getTopRightTile()[1]);


for (int y = yStart; y  yEnd; y++)
{
xCounter = 0;
for (int x = (visibleTiles.getBottomLeftTile()[0]); x 
(visibleTiles.getBottomLeftTile()[0]) + countX; x++)
{
Image mapPart = new Image();
if ((y  0) || (y = tiles.getImageCount(zoom)) 
||
(x  0) || (x = 
tiles.getImageCount(zoom))) {
mapPart = new Image();
mapPart.addLoadHandler(new 
LoadHandler(){

@Override
public void onLoad(LoadEvent 
event) {
System.out.println(Pic 
Loaded!);
}});
mapPart.setUrl(pics/blank.jpg);
}
else {
mapPart = new Image();
mapPart.addLoadHandler(new 
LoadHandler(){

@Override
public void 
onLoad(LoadEvent event) {

System.out.println(Pic Loaded!);
}});
mapPart.setUrl(folder + zoom + 
/im + x + _ +
y + .jpg);

}
}
picGrid.setWidget(yCounter, xCounter, mapPart, 
y, x);
xCounter++;
}
yCounter++;
}

}

Thanks in advance for any advice!

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: IE7 does not complete loading pictures

2010-05-02 Thread newnoise
Ah I forgot to mention, that the images which didnt load in the first
place, still dont load if I, for instance, zoom back to those tiles
again. Its like a white whole in the middle of the map then.

thanks!

On 2 Mai, 14:18, newnoise tommmuel...@googlemail.com wrote:
 Hello,

 I am currently developing a map-service application.
 Therefore I have a grid containing the tiles of my map.
 I wrote an algorithm which dynamically fills this grid with the number
 of needed tiles.
 Strange thing is, that the IE7 does not complete the initial loading
 of the images, the status bar says that it has to load 18 more
 elements, but it never completes this task.
 But if I do some action with the map then, like zooming or scrolling,
 so that the displayed tiles change, the same algorithm works perfectly
 well.
 Anyway IE7 and IE8 never fire the image.onload Event.

 Here is some code:

         public void displayVisibleTiles(VisibleTiles tile, int zoom, int
 zoomvalue) {
                 int countX = (- visibleTiles.getBottomLeftTile()[0] +
 visibleTiles.getTopRightTile()[0]+1);
                 int countY = (visibleTiles.getBottomLeftTile()[1] -
 visibleTiles.getTopRightTile()[1]+1);

                 picGrid.resize(countY, countX);
                 currentCountX = countX;
                 currentCountY = countY;
                 int xCounter = 0;
                 int yCounter = 0;

                 int yEnd = (visibleTiles.getTopRightTile()[1]) + countY;
                 int yStart = (visibleTiles.getTopRightTile()[1]);

                 for (int y = yStart; y  yEnd; y++)
                 {
                         xCounter = 0;
                         for (int x = (visibleTiles.getBottomLeftTile()[0]); x 
 
 (visibleTiles.getBottomLeftTile()[0]) + countX; x++)
                         {
                                 Image mapPart = new Image();
                                 if ((y  0) || (y = 
 tiles.getImageCount(zoom)) ||
                                                 (x  0) || (x = 
 tiles.getImageCount(zoom))) {
                                         mapPart = new Image();
                                         mapPart.addLoadHandler(new 
 LoadHandler(){

                                                 @Override
                                                 public void onLoad(LoadEvent 
 event) {
                                                         
 System.out.println(Pic Loaded!);
                                                 }});
                                         mapPart.setUrl(pics/blank.jpg);
                                 }
                                 else {
                                                 mapPart = new Image();
                                                 mapPart.addLoadHandler(new 
 LoadHandler(){

                                                         @Override
                                                         public void 
 onLoad(LoadEvent event) {
                                                                 
 System.out.println(Pic Loaded!);
                                                         }});
                                                 mapPart.setUrl(folder + zoom 
 + /im + x + _ +
                                                                 y + .jpg);

                                         }
                                 }
                                 picGrid.setWidget(yCounter, xCounter, 
 mapPart, y, x);
                                 xCounter++;
                         }
                         yCounter++;
                 }

         }

 Thanks in advance for any advice!

 --
 You received this message because you are subscribed to the Google Groups 
 Google Web Toolkit group.
 To post to this group, send email to google-web-tool...@googlegroups.com.
 To unsubscribe from this group, send email to 
 google-web-toolkit+unsubscr...@googlegroups.com.
 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 google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: IE7 does not complete loading pictures

2010-05-02 Thread newnoise
And there actually is a workaround.
If I do add something like x=12345 to the image-path, it does work.
so i suppose that its some ie7 cache issue, but i really got no idea
what to do about it.
I really do not want to disable caching using the method above!

thanks again!

On 2 Mai, 14:33, newnoise tommmuel...@googlemail.com wrote:
 Ah I forgot to mention, that the images which didnt load in the first
 place, still dont load if I, for instance, zoom back to those tiles
 again. Its like a white whole in the middle of the map then.

 thanks!

 On 2 Mai, 14:18, newnoise tommmuel...@googlemail.com wrote:



  Hello,

  I am currently developing a map-service application.
  Therefore I have a grid containing the tiles of my map.
  I wrote an algorithm which dynamically fills this grid with the number
  of needed tiles.
  Strange thing is, that the IE7 does not complete the initial loading
  of the images, the status bar says that it has to load 18 more
  elements, but it never completes this task.
  But if I do some action with the map then, like zooming or scrolling,
  so that the displayed tiles change, the same algorithm works perfectly
  well.
  Anyway IE7 and IE8 never fire the image.onload Event.

  Here is some code:

          public void displayVisibleTiles(VisibleTiles tile, int zoom, int
  zoomvalue) {
                  int countX = (- visibleTiles.getBottomLeftTile()[0] +
  visibleTiles.getTopRightTile()[0]+1);
                  int countY = (visibleTiles.getBottomLeftTile()[1] -
  visibleTiles.getTopRightTile()[1]+1);

                  picGrid.resize(countY, countX);
                  currentCountX = countX;
                  currentCountY = countY;
                  int xCounter = 0;
                  int yCounter = 0;

                  int yEnd = (visibleTiles.getTopRightTile()[1]) + countY;
                  int yStart = (visibleTiles.getTopRightTile()[1]);

                  for (int y = yStart; y  yEnd; y++)
                  {
                          xCounter = 0;
                          for (int x = (visibleTiles.getBottomLeftTile()[0]); 
  x 
  (visibleTiles.getBottomLeftTile()[0]) + countX; x++)
                          {
                                  Image mapPart = new Image();
                                  if ((y  0) || (y = 
  tiles.getImageCount(zoom)) ||
                                                  (x  0) || (x = 
  tiles.getImageCount(zoom))) {
                                          mapPart = new Image();
                                          mapPart.addLoadHandler(new 
  LoadHandler(){

                                                  @Override
                                                  public void 
  onLoad(LoadEvent event) {
                                                          
  System.out.println(Pic Loaded!);
                                                  }});
                                          mapPart.setUrl(pics/blank.jpg);
                                  }
                                  else {
                                                  mapPart = new Image();
                                                  mapPart.addLoadHandler(new 
  LoadHandler(){

                                                          @Override
                                                          public void 
  onLoad(LoadEvent event) {
                                                                  
  System.out.println(Pic Loaded!);
                                                          }});
                                                  mapPart.setUrl(folder + 
  zoom + /im + x + _ +
                                                                  y + .jpg);

                                          }
                                  }
                                  picGrid.setWidget(yCounter, xCounter, 
  mapPart, y, x);
                                  xCounter++;
                          }
                          yCounter++;
                  }

          }

  Thanks in advance for any advice!

  --
  You received this message because you are subscribed to the Google Groups 
  Google Web Toolkit group.
  To post to this group, send email to google-web-tool...@googlegroups.com.
  To unsubscribe from this group, send email to 
  google-web-toolkit+unsubscr...@googlegroups.com.
  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 google-web-tool...@googlegroups.com.
 To unsubscribe from this group, send email to 
 google-web-toolkit+unsubscr...@googlegroups.com.
 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 google-web-tool

Re: IE7 does not complete loading pictures

2010-05-02 Thread newnoise
Im just doing the solo entertainer ;)

I got it almost working. I changed the mapPart.setUrl(path) to
DOM.setElementAttribute(mapPart.getElement(), src, path);, which
leads to a correctly displayed map.
BUT still both IE7 and 8 doenst finish loading. The status bar still
says, 18 elements need to be loaded, and the icon in the tabbar keeps
to be the loading circle all the time.
so if maybe anyone could help me out?

cheers

On 2 Mai, 14:39, newnoise tommmuel...@googlemail.com wrote:
 And there actually is a workaround.
 If I do add something like x=12345 to the image-path, it does work.
 so i suppose that its some ie7 cache issue, but i really got no idea
 what to do about it.
 I really do not want to disable caching using the method above!

 thanks again!

 On 2 Mai, 14:33, newnoise tommmuel...@googlemail.com wrote:



  Ah I forgot to mention, that the images which didnt load in the first
  place, still dont load if I, for instance, zoom back to those tiles
  again. Its like a white whole in the middle of the map then.

  thanks!

  On 2 Mai, 14:18, newnoise tommmuel...@googlemail.com wrote:

   Hello,

   I am currently developing a map-service application.
   Therefore I have a grid containing the tiles of my map.
   I wrote an algorithm which dynamically fills this grid with the number
   of needed tiles.
   Strange thing is, that the IE7 does not complete the initial loading
   of the images, the status bar says that it has to load 18 more
   elements, but it never completes this task.
   But if I do some action with the map then, like zooming or scrolling,
   so that the displayed tiles change, the same algorithm works perfectly
   well.
   Anyway IE7 and IE8 never fire the image.onload Event.

   Here is some code:

           public void displayVisibleTiles(VisibleTiles tile, int zoom, int
   zoomvalue) {
                   int countX = (- visibleTiles.getBottomLeftTile()[0] +
   visibleTiles.getTopRightTile()[0]+1);
                   int countY = (visibleTiles.getBottomLeftTile()[1] -
   visibleTiles.getTopRightTile()[1]+1);

                   picGrid.resize(countY, countX);
                   currentCountX = countX;
                   currentCountY = countY;
                   int xCounter = 0;
                   int yCounter = 0;

                   int yEnd = (visibleTiles.getTopRightTile()[1]) + countY;
                   int yStart = (visibleTiles.getTopRightTile()[1]);

                   for (int y = yStart; y  yEnd; y++)
                   {
                           xCounter = 0;
                           for (int x = 
   (visibleTiles.getBottomLeftTile()[0]); x 
   (visibleTiles.getBottomLeftTile()[0]) + countX; x++)
                           {
                                   Image mapPart = new Image();
                                   if ((y  0) || (y = 
   tiles.getImageCount(zoom)) ||
                                                   (x  0) || (x = 
   tiles.getImageCount(zoom))) {
                                           mapPart = new Image();
                                           mapPart.addLoadHandler(new 
   LoadHandler(){

                                                   @Override
                                                   public void 
   onLoad(LoadEvent event) {
                                                           
   System.out.println(Pic Loaded!);
                                                   }});
                                           mapPart.setUrl(pics/blank.jpg);
                                   }
                                   else {
                                                   mapPart = new Image();
                                                   
   mapPart.addLoadHandler(new LoadHandler(){

                                                           @Override
                                                           public void 
   onLoad(LoadEvent event) {
                                                                   
   System.out.println(Pic Loaded!);
                                                           }});
                                                   mapPart.setUrl(folder + 
   zoom + /im + x + _ +
                                                                   y + 
   .jpg);

                                           }
                                   }
                                   picGrid.setWidget(yCounter, xCounter, 
   mapPart, y, x);
                                   xCounter++;
                           }
                           yCounter++;
                   }

           }

   Thanks in advance for any advice!

   --
   You received this message because you are subscribed to the Google Groups 
   Google Web Toolkit group.
   To post to this group, send email to google-web-tool...@googlegroups.com.
   To unsubscribe from this group, send email to 
   google-web-toolkit+unsubscr...@googlegroups.com.
   For more options, visit this group 
   athttp

[gwt-contrib] Re: GWT 2.0.1 breaks incubator 2.0 ... is a new release emminent ?

2010-02-11 Thread newnoise
ok this was my fault, I didnt upgrade correctly.
works fine in 2.0.1, except for message Line 30: Referencing
deprecated class 'com.google.gwt.user.client.impl.DocumentRootImpl'
and the same in line 38.

thanks for the great job!



On 10 Feb., 12:44, David david.no...@gmail.com wrote:
 I didn't get the chance to test it out, due to corporate red tape :-(

 David

 On Tue, Feb 9, 2010 at 3:51 PM, John LaBanca jlaba...@google.com wrote:
  I'll take a look and make sure we can use the incubator jar with GWT 2.0.
  Thanks,
  John LaBanca
  jlaba...@google.com

  On Tue, Feb 9, 2010 at 8:35 AM, newnoise tommmuel...@googlemail.com wrote:

  acutally i get the errors in the version downloaded today also.

  On 8 Feb., 16:09, John LaBanca jlaba...@google.com wrote:
   Wow, 2010 already.  Fixed.

   Thanks,
   John LaBanca
   jlaba...@google.com

   On Sat, Feb 6, 2010 at 8:52 AM, jim n northrup.ja...@gmail.com wrote:
can you name it 2010x please?

On Feb 4, 8:19 am, Ray Ryan rj...@google.com wrote:
 And the jar is posted. All better?

 On Thu, Feb 4, 2010 at 7:15 AM, Ray Ryan rj...@google.com wrote:
  Sorry, we'll get a 2.0.1 incubator jar up today.

  On Thu, Feb 4, 2010 at 7:04 AM, stuckagain david.no...@gmail.com
wrote:

  Hi,

  The changes to CurrencyData and CurrencyList as described in the
  release note of GWT 2.0.1 has impact on the current GWT incubator
  CurrencyWidget. Is there a new release planned ? It seems to be
  fixed
  in the trunk of incubator.

  This is the compilation error.

   [ERROR] Errors in
  'jar:file:/W:/rlsCOTS/gwtincubator/JAVA/lib/gwt-

  incubator.jar!/com/google/gwt/widgetideas/client/CurrencyWidget.java'
      [java]          [ERROR] Line 46: The import
  com.google.gwt.i18n.client.impl.CurrencyData cannot be resolved
      [java]          [ERROR] Line 47: The import
  com.google.gwt.i18n.client.impl.CurrencyList cannot be resolved
      [java]          [ERROR] Line 107: CurrencyData cannot be
  resolved
  to a type
      [java]          [ERROR] Line 122: CurrencyData cannot be
  resolved
  to a type
      [java]          [ERROR] Line 122: CurrencyList cannot be
  resolved
      [java]          [ERROR] Line 123: CurrencyData cannot be
  resolved
  to a type
      [java]          [ERROR] Line 124: CurrencyData cannot be
  resolved
  to a type
      [java]          [ERROR] Line 181: CurrencyData cannot be
  resolved
  to a type

  David

  --
 http://groups.google.com/group/Google-Web-Toolkit-Contributors

  --
  I wish this were a Wave

 --
 I wish this were a Wave

--
   http://groups.google.com/group/Google-Web-Toolkit-Contributors

  --
 http://groups.google.com/group/Google-Web-Toolkit-Contributors

  --
 http://groups.google.com/group/Google-Web-Toolkit-Contributors

-- 
http://groups.google.com/group/Google-Web-Toolkit-Contributors


[gwt-contrib] Re: GWT 2.0.1 breaks incubator 2.0 ... is a new release emminent ?

2010-02-09 Thread newnoise

acutally i get the errors in the version downloaded today also.


On 8 Feb., 16:09, John LaBanca jlaba...@google.com wrote:
 Wow, 2010 already.  Fixed.

 Thanks,
 John LaBanca
 jlaba...@google.com

 On Sat, Feb 6, 2010 at 8:52 AM, jim n northrup.ja...@gmail.com wrote:
  can you name it 2010x please?

  On Feb 4, 8:19 am, Ray Ryan rj...@google.com wrote:
   And the jar is posted. All better?

   On Thu, Feb 4, 2010 at 7:15 AM, Ray Ryan rj...@google.com wrote:
Sorry, we'll get a 2.0.1 incubator jar up today.

On Thu, Feb 4, 2010 at 7:04 AM, stuckagain david.no...@gmail.com
  wrote:

Hi,

The changes to CurrencyData and CurrencyList as described in the
release note of GWT 2.0.1 has impact on the current GWT incubator
CurrencyWidget. Is there a new release planned ? It seems to be fixed
in the trunk of incubator.

This is the compilation error.

 [ERROR] Errors in 'jar:file:/W:/rlsCOTS/gwtincubator/JAVA/lib/gwt-
incubator.jar!/com/google/gwt/widgetideas/client/CurrencyWidget.java'
    [java]          [ERROR] Line 46: The import
com.google.gwt.i18n.client.impl.CurrencyData cannot be resolved
    [java]          [ERROR] Line 47: The import
com.google.gwt.i18n.client.impl.CurrencyList cannot be resolved
    [java]          [ERROR] Line 107: CurrencyData cannot be resolved
to a type
    [java]          [ERROR] Line 122: CurrencyData cannot be resolved
to a type
    [java]          [ERROR] Line 122: CurrencyList cannot be resolved
    [java]          [ERROR] Line 123: CurrencyData cannot be resolved
to a type
    [java]          [ERROR] Line 124: CurrencyData cannot be resolved
to a type
    [java]          [ERROR] Line 181: CurrencyData cannot be resolved
to a type

David

--
   http://groups.google.com/group/Google-Web-Toolkit-Contributors

--
I wish this were a Wave

   --
   I wish this were a Wave

  --
 http://groups.google.com/group/Google-Web-Toolkit-Contributors

-- 
http://groups.google.com/group/Google-Web-Toolkit-Contributors


Can't open my GWT-page

2010-01-08 Thread newnoise
Hi,

I created a little GWT-Page. But after I upgraded my GWT to 2.X I
can't open the page anymore. The browser always says: Please (re)
compile the project, or use hosted mode (actually it doesn't say that
litterally, but you know what I mean :) ).
I recompiled the project several times and no compiling erros occur.

I'm running WinXP SP3 with GET-Eclipse Plugin.

Thanks for any advice!
noise
-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.