Re: Any issues running in detailed (or pretty) style in production?

2017-06-08 Thread Robert J. Carr
> Have you tried working your way into the symbolMaps?​

No, because I just figured the obfuscated code wasn't worth trying to
deobfuscate, but apparently symbolMaps is the key.  Kirill provded the
details so I plan to refer to that.  Thanks for the time!

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


Re: Any issues running in detailed (or pretty) style in production?

2017-06-08 Thread Robert J. Carr
Great, thanks so much for this information, I'll study it and run some
tests, but I'm sure it will create some great leads.  Cheers!

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


Re: Any issues running in detailed (or pretty) style in production?

2017-06-07 Thread Robert J. Carr
> There is a file (produces during build) with all names mapping to java
methods. You can de-obfuscate it manually.

This sounds like exactly what I need.  Not to take more of your time, but
do you have any references where I can get more information about this?

Thanks!

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


Re: Any issues running in detailed (or pretty) style in production?

2017-06-07 Thread Robert J. Carr
Thanks for the response, and yes, totally inaccessible by any means.

So back to my main question: are there any serious ramifications, mostly
related to runtime (as I understand the issues with loading), with running
a non-obfuscated application?
​
Thanks!

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


Re: Any issues running in detailed (or pretty) style in production?

2017-06-07 Thread Robert J. Carr
Hi Vassillis-

Thanks for the response.  A few comments:

> the problem is reproducible in the remote system and not just happens
after several hours of usage

It's not entirely reproducible, but does seem to happen with some
regularity.  And yes, it has hours of usage, which could be the problem.

> it is a client side error and not a server side error

Definitely client side.

But the rest of what you say I don't completely understand.  Yes, it is
running https, but I should have been clear, I also don't have access to
the server.  I don't have access to anything as it is all on a remote
private network.

Sorry for the confusion.

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


Re: GWT and async requests (startAsync)

2016-12-23 Thread Robert J. Carr
Thanks Thomas. I was hoping it'd be easier and I was just missing
something. Moving this call out of rpc is probably the best solution.
Thanks again for the guidance!

Since servlets 3 had been out for a long time now it'd be a great idea to
have the developers write this feature into RemoteServiceServlet.

On Friday, December 23, 2016, Thomas Broyer  wrote:

> GWT RPC has been thought of as blocking on the server side. Making it
> async would require changes to the RemoteServiceServlet: most likely the
> method would be async just like on the client side with the implementation
> calling the callbacks onSuccess or onFailure.
>
> Your best bet here would be to write a RemoteServiceAsyncServlet by
> copying from RemoteServiceServlet, hoping for all underlying APIs to be
> public.
> Either that or move off of RPC for that call (future proof)
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "GWT Users" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/google-web-toolkit/-eITQalAc9k/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> google-web-toolkit+unsubscr...@googlegroups.com .
> To post to this group, send email to google-web-toolkit@googlegroups.com
> .
> Visit this group at https://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.
>

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


Re: Help with Super Dev Mode not showing content

2015-06-23 Thread Robert J. Carr
Hi Jens-

Thanks, I also thought of using the debugger and I think I might already
have a lead.  Great advice!  I didn't know about the other debugging
features you mentioned so I'll make a note of those.

I am finding that I need to use the bookmarklets most of the time.  It
isn't a major nuisance so it isn't a problem, but thanks for the info.

I think the debugger will lead me to the problem so thanks again.  If
you're interested in what I find out please let me know.

Thanks!


On Tue, Jun 23, 2015 at 11:26 AM, Jens jens.nehlme...@gmail.com wrote:

 Sounds strange.

 You can open Chrome Dev Tools and on the sources tab there is a small
 pause icon on the right which says Pause on exceptions. You can even
 tell Chrome to pause on any exception regardless if caught or not.
 So you could start your app and before clicking the tab that does not work
 you could activate that Chrome feature to see if any exception is thrown
 that might not reach the browser console for any reason.

 Alternatively you could set a break point in Chrome debugger and then step
 through your code until it might fails. You could also place a
 GWT.debugger() call into your Java code and Chrome will stop at that
 location just like with break points.

 Also as a general hint: If you use GWT 2.7. then the bookmarklets are
 generally not needed. When you launch the SuperDevMode CodeServer it will
 generate a special modulename.nocache.js file that triggers recompilation
 whenever you reload the browser. However I think GWT 2.7 has a timestamp
 bug and if that modulename.nocache.js file already exists because you
 have done some normal compilation then it might happen that the CodeServer
 does not replace that file. So to be sure you can delete the GWT output
 folder, restart SDM and then deploy the app with the newly generated
 modulename.nocache.js.

 -- J.

 --
 You received this message because you are subscribed to a topic in the
 Google Groups Google Web Toolkit group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/google-web-toolkit/UNXCyvjnnTs/unsubscribe
 .
 To unsubscribe from this group and all its topics, send an email to
 google-web-toolkit+unsubscr...@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.


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


Re: Help with Super Dev Mode not showing content

2015-06-23 Thread Robert J. Carr
Hi Jens-

Just letting you know I found the problem using the pause on exceptions
feature.  Handy that!  Thanks for leading me in the right direction!

Robert

On Tue, Jun 23, 2015 at 11:32 AM, Robert J. Carr rjc...@gmail.com wrote:

 Hi Jens-

 Thanks, I also thought of using the debugger and I think I might already
 have a lead.  Great advice!  I didn't know about the other debugging
 features you mentioned so I'll make a note of those.

 I am finding that I need to use the bookmarklets most of the time.  It
 isn't a major nuisance so it isn't a problem, but thanks for the info.

 I think the debugger will lead me to the problem so thanks again.  If
 you're interested in what I find out please let me know.

 Thanks!


 On Tue, Jun 23, 2015 at 11:26 AM, Jens jens.nehlme...@gmail.com wrote:

 Sounds strange.

 You can open Chrome Dev Tools and on the sources tab there is a small
 pause icon on the right which says Pause on exceptions. You can even
 tell Chrome to pause on any exception regardless if caught or not.
 So you could start your app and before clicking the tab that does not
 work you could activate that Chrome feature to see if any exception is
 thrown that might not reach the browser console for any reason.

 Alternatively you could set a break point in Chrome debugger and then
 step through your code until it might fails. You could also place a
 GWT.debugger() call into your Java code and Chrome will stop at that
 location just like with break points.

 Also as a general hint: If you use GWT 2.7. then the bookmarklets are
 generally not needed. When you launch the SuperDevMode CodeServer it will
 generate a special modulename.nocache.js file that triggers recompilation
 whenever you reload the browser. However I think GWT 2.7 has a timestamp
 bug and if that modulename.nocache.js file already exists because you
 have done some normal compilation then it might happen that the CodeServer
 does not replace that file. So to be sure you can delete the GWT output
 folder, restart SDM and then deploy the app with the newly generated
 modulename.nocache.js.

 -- J.

 --
 You received this message because you are subscribed to a topic in the
 Google Groups Google Web Toolkit group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/google-web-toolkit/UNXCyvjnnTs/unsubscribe
 .
 To unsubscribe from this group and all its topics, send an email to
 google-web-toolkit+unsubscr...@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.




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


Re: client logging config help with unexpected popup

2015-06-18 Thread Robert J. Carr
It turned out my problem was mostly my own doing.  I was using different
config files in different environments and didn't realize it.  Hope your
problem is this simple!

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


Re: How to create a JavascriptObject object?

2015-02-09 Thread Robert J. Carr
Awesome, thanks so much for the help!

On Mon, Feb 9, 2015 at 2:39 PM, Mark Erikson mark.erik...@gmail.com wrote:

 Cool, glad that was an easy fix.

 Yeah, this is a good approach.  See
 https://github.com/richkadel/cesium-gwt for a larger-scale use of this
 technique for wrapping the Cesium.js 3D globe library.


 On Monday, February 9, 2015 at 5:30:45 PM UTC-5, rjcarr wrote:

 Ha, not a stupid question at all ... it seems that was the problem!
 Thanks so much, good thing I copied and pasted the code into the question!

 But more generally, is this what I should be doing?  Or should I use a
 different approach for what I'm trying to do?

 Thanks again!

  --
 You received this message because you are subscribed to a topic in the
 Google Groups Google Web Toolkit group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/google-web-toolkit/AEtzZ8KgGc4/unsubscribe
 .
 To unsubscribe from this group and all its topics, send an email to
 google-web-toolkit+unsubscr...@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.


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


Re: client logging config help with unexpected popup

2015-01-27 Thread Robert J. Carr
Thanks for the response, but I'm fairly certain I've never started super
dev mode, certainly not on my build server, nor do I see any unexpected
cache folders in my working directory.  I like the idea though, maybe there
is some other cache I can try? I vaguely remember seeing such a thing but I
can't recall where.

  If you want a lower level then you need to use ... in your own module.

Right, as I said, all I have in my config file is this:

inherits name=com.google.gwt.logging.Logging/
set-property name=gwt.logging.enabled value=TRUE/
set-property name=gwt.logging.logLevel value=CONFIG/

Yet I'm still getting the logging popup.  Makes no sense to me.  As I said,
it only happens in linux (specifically RHEL and it happened in both 5 and 7
although I don't see how it matters).  It didn't (and doesn't) happen in
GWT 2.6.1 with the same exact config.

Thanks for any help you can offer!


On Tue, Jan 27, 2015 at 3:41 PM, Jens jens.nehlme...@gmail.com wrote:

 I am not sure if that also applies to GWT 2.7 as I am using GWT trunk but
I had to delete SDM caches to let changes to logging configuration take
effect. When SDM starts it tells you which workDir it uses for compilation.
Next to that workDir SDM also creates a cache directory named
gwt-cache-some hash. Simply delete all these cache folders and also the
workDir itself. Then start SDM again to give it a clean start.

 When you inherit Logging.gwt.xml then GWT will, by default, only log
SEVERE and everything else will be compiled out. If you want a lower level
then you need to use

 set-property name=gwt.logging.enabled value=TRUE/
 set-property name=gwt.logging.logLevel value=INFO/

 in your own module.

 -- J.

 --
 You received this message because you are subscribed to a topic in the
Google Groups Google Web Toolkit group.
 To unsubscribe from this topic, visit
https://groups.google.com/d/topic/google-web-toolkit/op5aX6OGmMA/unsubscribe
.
 To unsubscribe from this group and all its topics, send an email to
google-web-toolkit+unsubscr...@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.

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


Re: help understanding complicated client logs

2015-01-20 Thread Robert J. Carr
Just following up on this.  It turns out the problem was that I have some
native javascript that builds some elements after the page loads and these
elements are referenced in the gwt (that's where the null panel was showing
up).  Even though this panel is referenced in a deferred block the page may
still take longer to load than that and the elements aren't yet created.

I tried fixing this by dynamically loading the gwt nocache file in my
native javascript with something like this:

var gwt = document.createElement(script);
gwt.setAttribute(type, text/javascript);
gwt.setAttribute(src, gwt/gwt.nocache.js);
document.body.appendChild(gwt);

But either the browser or gwt didn't like it (I got various errors that I
couldn't figure out).

So, I ended up creating a timer that keeps checking the availability of
that panel and only proceeds after it's been created.  Seems strange I
can't control when the GWT files get loaded, but this will work as a backup.

Thanks again for the help!


On Sat, Jan 17, 2015 at 5:54 PM, Robert J. Carr rjc...@gmail.com wrote:

 Thanks, true I guess, I'll try to sort it out. I was able to use the
 throttling to reproduce the problem as you suggested so thanks!
 Unfortunately dev mode isn't working for me so now I have to go figure out
 super dev mode I guess.

 Thanks again for the help. You certainly gave me a start!

 On Saturday, January 17, 2015, Jens jens.nehlme...@gmail.com wrote:

  If the code is dereferencing null it should always be an error, right?


 Not really. Maybe a field becomes null while a server request is in
 progress and when the request finishes the onSuccess callback tries to use
 that field without any checks.

 -- J.

 --
 You received this message because you are subscribed to a topic in the
 Google Groups Google Web Toolkit group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/google-web-toolkit/PFyayaTVYbA/unsubscribe
 .
 To unsubscribe from this group and all its topics, send an email to
 google-web-toolkit+unsubscr...@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.



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


Re: help understanding complicated client logs

2015-01-17 Thread Robert J. Carr
Thanks so much for the detailed response.  And I'll give those dev tool
suggestions a try.

And what you say makes sense about dereferencing a null, but it doesn't
explain how it would work most of the time, but sometimes it doesn't.  If
the code is dereferencing null it should always be an error, right?

Anyway, thanks again, you've given me some things to try.


On Sat, Jan 17, 2015 at 4:46 AM, Jens jens.nehlme...@gmail.com wrote:

 You can test it locally if you use Chrome DevTools. When you open DevTools
 you can click on the small mobile device icon on the left side right next
 to the search icon. Once you have done that you should see a new dark
 toolbar at the top of your page which has a Network drop down which allows
 you to emulate slower network conditions in Chrome.

 Given your stack trace it seems like you called
 AbsolutePanel.add(childWidget) somewhere but your instance of AbsolutePanel
 was null.

 For your understanding how to read these stack frames:

 __gwt$exception: skipped: Cannot read property
 'com_google_gwt_user_client_ui_UIObject_element' of null
at
 Unknown.com_google_gwt_user_client_ui_AbsolutePanel_$add__Lcom_google_gwt_user_client_ui_AbsolutePanel_2Lcom_google_gwt_user_client_ui_Widget_2V

 First line is the JavaScript exception message which says you have tried
 to access UIObject.element but UIObject was null. Since UIObject has a
 getElement() method that means your java code did call null.getElement().
 At the next line you see that this happened in
 AbsolutePanel.$add(AbsolutePanel, Widget). This method has been generated
 by the GWT compiler and is a static version of AbsolutePanel.add(Widget).
 These generated static methods are marked with $ by GWT. Given the
 implementation of AbsolutePanel.add(Widget) it seems like your instance of
 AbsolutePanel was null.

 Your code did something like:

 AbsolutePanel myPanel = null; // somehow the variable was null
 myPanel.add(child);

 with AbsolutePanel.add() being implemented as:

 public void add(Widget w) {
super.add(w, *getElement()*);
 }

 GWT compiler changed your method call to a static method call

 AbsolutePanel.$add(myPanel, w);

 And the implementation of $add is probably similar to

 public static void $add(AbsolutePanel instance, Widget w) {
   ComplexPanel.$add(w, *instance.getElement()*);
 }

 The bold code causes the exception. Since getElement() and the element
 field are defined on UiObject the exception message says you have tried to
 access UiObject.element with UiObject being null.

 -- J.

  --
 You received this message because you are subscribed to a topic in the
 Google Groups Google Web Toolkit group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/google-web-toolkit/PFyayaTVYbA/unsubscribe
 .
 To unsubscribe from this group and all its topics, send an email to
 google-web-toolkit+unsubscr...@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.


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


Re: help understanding complicated client logs

2015-01-17 Thread Robert J. Carr
Thanks, true I guess, I'll try to sort it out. I was able to use the
throttling to reproduce the problem as you suggested so thanks!
Unfortunately dev mode isn't working for me so now I have to go figure out
super dev mode I guess.

Thanks again for the help. You certainly gave me a start!

On Saturday, January 17, 2015, Jens jens.nehlme...@gmail.com wrote:

  If the code is dereferencing null it should always be an error, right?


 Not really. Maybe a field becomes null while a server request is in
 progress and when the request finishes the onSuccess callback tries to use
 that field without any checks.

 -- J.

 --
 You received this message because you are subscribed to a topic in the
 Google Groups Google Web Toolkit group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/google-web-toolkit/PFyayaTVYbA/unsubscribe
 .
 To unsubscribe from this group and all its topics, send an email to
 google-web-toolkit+unsubscr...@googlegroups.com
 javascript:_e(%7B%7D,'cvml','google-web-toolkit%2bunsubscr...@googlegroups.com');
 .
 To post to this group, send email to google-web-toolkit@googlegroups.com
 javascript:_e(%7B%7D,'cvml','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.


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


Re: Random (and unwanted) PopupPanel in GWT 2.7

2014-12-08 Thread Robert J. Carr
Sorry this has taken a while to respond, but I just tested again with your
recommendation and it didn't help.  I agree that I think it's related to
the logging, but I'm not sure what to do.  To make things worse, as I said,
it is consistent between linux and mac builds.  Here's what I have in my
module file:

  set-property name=gwt.logging.logLevel value=CONFIG/
  set-property name=gwt.logging.enabled value=TRUE /
  set-property name=gwt.logging.consoleHandler value=ENABLED /
  set-property name=gwt.logging.hasWidgetsHandler value=DISABLED /
  set-property name=gwt.logging.developmentModeHandler value=DISABLED
/
  set-property name=gwt.logging.systemHandler value=DISABLED /
  set-property name=gwt.logging.simpleRemoteHandler value=DISABLED /

Thanks again for the help!

On Fri, Dec 5, 2014 at 1:18 PM, Robert J. Carr rjc...@gmail.com wrote:

 OK, thanks, I'll give it a try.

 I read that the popup handler doesn't exist anymore and that's why I
removed the config line.  If it's not in 2.7 then why is it showing up in
my linux build?  I just checked and I don't have the popupHandler enabled
but I do have logging enabled in general as well as the console handler.

 Seems strange and inconsistent.  Anyway, thanks again for the help.

 On Fri, Dec 5, 2014 at 12:04 PM, Jens jens.nehlme...@gmail.com wrote:

 The property gwt.logging.popupHandler does not exist anymore in GWT 2.7.

 If you don't want that popup you must disable the HasWidgetsHandler:

 set-property name=gwt.logging.hasWidgetsHandler value=DISABLED /

 See:
https://gwt.googlesource.com/gwt/+/master/user/src/com/google/gwt/logging/LoggingDisabled.gwt.xml

 -- J.

 --
 You received this message because you are subscribed to a topic in the
Google Groups Google Web Toolkit group.
 To unsubscribe from this topic, visit
https://groups.google.com/d/topic/google-web-toolkit/nuzgA4Mh4yE/unsubscribe
.
 To unsubscribe from this group and all its topics, send an email to
google-web-toolkit+unsubscr...@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.



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


Re: Random (and unwanted) PopupPanel in GWT 2.7

2014-12-05 Thread Robert J. Carr
Thanks for the lead, yeah, I am using logging. But I thought I had disabled
it all. Any idea which logging this is? I recall having to disable a logger
or two when upgrading to 2.7.

And why would this only show up on a Linux build?

Thanks again!

On Friday, December 5, 2014, Nicolas Weeger nico...@nekoko.fr wrote:

 Hello.


 Random guess, are you using logging?


 The panel looks like the one on


 http://www.gwtproject.org/doc/latest/DevGuideLogging.html#Building_Running_the_Logging_Example




 Kind regards


 Nicolas


 Le vendredi 5 décembre 2014 18:59:12, rjcarr a écrit :
  I recently updated to GWT 2.7 on a project that's been using GWT since
 the
  beginning and everything was fine.  I develop on a Mac and I didn't
 notice
  any problems.
 
  However, there's a nightly build that happens on Linux (RHEL) and
 checking
  there when I start my GWT web app a random PopupPanel appears in the far
  upper left as soon as I start the app.  It looks like this:
 
  http://imgur.com/zhP8LHB
 
  Now I do use PopupPanel (a custom extension anyway) but they don't look
  anything like this.  And there is nowhere in my code that adds this
  minimize and maximize buttons nor the resize icon that you can't see in
 the
  lower right.
 
  And as I said, this doesn't happen in the Mac build, and it doesn't
 happen
  on the Linux build when I revert to 2.6.
 
  Does anybody know what's going on?
 
  Thanks!


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


Re: Random (and unwanted) PopupPanel in GWT 2.7

2014-12-05 Thread Robert J. Carr
OK, thanks, I'll give it a try.

I read that the popup handler doesn't exist anymore and that's why I
removed the config line.  If it's not in 2.7 then why is it showing up in
my linux build?  I just checked and I don't have the popupHandler enabled
but I do have logging enabled in general as well as the console handler.

Seems strange and inconsistent.  Anyway, thanks again for the help.

On Fri, Dec 5, 2014 at 12:04 PM, Jens jens.nehlme...@gmail.com wrote:

 The property gwt.logging.popupHandler does not exist anymore in GWT 2.7.

 If you don't want that popup you must disable the HasWidgetsHandler:

 set-property name=gwt.logging.hasWidgetsHandler value=DISABLED /

 See:
 https://gwt.googlesource.com/gwt/+/master/user/src/com/google/gwt/logging/LoggingDisabled.gwt.xml

 -- J.

 --
 You received this message because you are subscribed to a topic in the
 Google Groups Google Web Toolkit group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/google-web-toolkit/nuzgA4Mh4yE/unsubscribe
 .
 To unsubscribe from this group and all its topics, send an email to
 google-web-toolkit+unsubscr...@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.


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


[gwt-contrib] Re: Officially deprecating Opera permutation

2014-05-10 Thread Robert J. Carr
This just burned me.  Just curious why you couldn't have it load the file 
from firefox or webkit instead of just doing nothing?  Better to deal with 
potential errors than to be a total non-starter.



-- 
You received this message because you are subscribed to the Google Groups GWT 
Contributors group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit-contributors+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit-contributors/eb93ded0-b59e-4ad0-abf1-b8cef3e3c4af%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Need help with JSNI

2014-03-19 Thread Robert J. Carr
Right, I first followed the static export example and got things working.
 Then realized I actually wanted to use it non-statically and got help on
this forum with how to include the instance into the export (main.@...).

As I said, it would work sporadically, but not always.  An non-static
example would be very useful as I still don't completely understand why it
needed to be wrapped with an anonymous function.



On Wed, Mar 19, 2014 at 4:06 PM, Jens jens.nehlme...@gmail.com wrote:

 I don't know why this information isn't in the docs but it should be added
 right away.


 Indeed. I also always forget about that 'this' thing and I am pretty sure
 I would have written the same code as you did in the first post and would
 have lost some time again until remembering that

 public void log(String level, String msg) {
   logger.debug(msg);
 }

 will try to access logger on $wnd.jsni when calling it from pure JS
 (following your example).

 I think we should add a non-static method export example to
 http://www.gwtproject.org/doc/latest/DevGuideCodingBasicsJSNI.html#callingand 
 explain why such an export looks different.

 -- J.

 --
 You received this message because you are subscribed to a topic in the
 Google Groups Google Web Toolkit group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/google-web-toolkit/vDteixKON4g/unsubscribe
 .
 To unsubscribe from this group and all its topics, send an email to
 google-web-toolkit+unsubscr...@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.


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


Re: How to capture all key events?

2014-03-17 Thread Robert J. Carr
Thanks, not exactly what I was looking for, but I can probably find a way
to make this work in the way i'd like.  Thanks!


On Mon, Mar 17, 2014 at 4:10 PM, Jim Douglas jdou...@basis.com wrote:

 This might do what you need:


 http://www.gwtproject.org/javadoc/latest/com/google/gwt/user/client/Event.html#addNativePreviewHandler(com.google.gwt.user.client.Event.NativePreviewHandler)

 On Monday, March 17, 2014 2:39:37 PM UTC-7, rjcarr wrote:

 Using the DOM directly you'd add an event listener to the document (there
 are several ways to do this).

 But looking at the GWT API I don't see a way to do this.  I've looked at
 Window and Document and neither seem to have anything about adding key
 handlers.  In order do this you need to use something with a
 HasKeyPressHandler.  But this only works on certain elements, and more
 importantly, it only works when the element is focused and I'd like to
 capture all key events instead.

 Is there a way to do this in GWT?

  --
 You received this message because you are subscribed to a topic in the
 Google Groups Google Web Toolkit group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/google-web-toolkit/2wBydkvZeCk/unsubscribe
 .
 To unsubscribe from this group and all its topics, send an email to
 google-web-toolkit+unsubscr...@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.


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


Re: Trying to export non-static methods to javascript via JSNI

2014-02-15 Thread Robert J. Carr
Thanks for the quick responses.  That makes sense that since the jsni
method is declared static that you can't use this, but I'm not following
Thomas's explanation.  Maybe I could just get an explanation from the docs
example here:

http://www.gwtproject.org/doc/latest/DevGuideCodingBasicsJSNI.html#methods-fields

Under the example: Accessing Java fields from JavaScript

Where it has:

public class JSNIExample {

  String myInstanceField;
  static int myStaticField;

  void instanceFoo(String s) {
// use s
  }

  static void staticFoo(String s) {
// use s
  }

  public native void bar(JSNIExample x, String s) /*-{
// Call instance method instanceFoo() on this

th...@com.google.gwt.examples.JSNIExample::instanceFoo(Ljava/lang/String;)(s);

// Call instance method instanceFoo() on x

x...@com.google.gwt.examples.JSNIExample::instanceFoo(Ljava/lang/String;)(s);

// Call static method staticFoo()
@com.google.gwt.examples.JSNIExample::staticFoo(Ljava/lang/String;)(s);

What's the difference here between using the 'this' and the passed in 'x'?
 What does 'this' represent in this example?

As for Thomas's explanation, are you saying that by calling $entry it
creates a new inner function (or closure) where 'this' is no longer what it
was?  So if I didn't use $entry then 'this' would be what I expect it is?

Thanks again for the help!

Robert


On Sat, Feb 15, 2014 at 4:26 AM, Jens jens.nehlme...@gmail.com wrote:

 $wnd.log = $entry(function(msg) { 
 instan...@pack.age.main::log(Ljava/lang/String;)(msg);
});


  Oh right. Somehow I totally ignored the method parameter that needs to
be passed around.


 -- J.

 --
 You received this message because you are subscribed to a topic in the
Google Groups Google Web Toolkit group.
 To unsubscribe from this topic, visit
https://groups.google.com/d/topic/google-web-toolkit/rJAnzDPb_2Y/unsubscribe
.
 To unsubscribe from this group and all its topics, send an email to
google-web-toolkit+unsubscr...@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/groups/opt_out.

-- 
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+unsubscr...@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/groups/opt_out.


Re: Trying to export non-static methods to javascript via JSNI

2014-02-15 Thread Robert J. Carr
Thanks for the explanation and examples.  I actually know javascript quite
well, including the ramifications of using this inside of closures, but as
I said, I didn't know that $entry was setting up a closure.

You've given me enough information that I believe I can figure out my
problems now.  Thanks for helping me out!


On Sat, Feb 15, 2014 at 9:26 AM, Thomas Broyer t.bro...@gmail.com wrote:



 On Saturday, February 15, 2014 6:00:47 PM UTC+1, rjcarr wrote:

 Thanks for the quick responses.  That makes sense that since the jsni
 method is declared static that you can't use this, but I'm not following
 Thomas's explanation.  Maybe I could just get an explanation from the docs
 example here:

 http://www.gwtproject.org/doc/latest/DevGuideCodingBasicsJSNI.html#
 methods-fields

 Under the example: Accessing Java fields from JavaScript

 Where it has:

 public class JSNIExample {

   String myInstanceField;
   static int myStaticField;

   void instanceFoo(String s) {
 // use s
   }

   static void staticFoo(String s) {
 // use s
   }

   public native void bar(JSNIExample x, String s) /*-{
 // Call instance method instanceFoo() on this
 
 th...@com.google.gwt.examples.JSNIExample::instanceFoo(Ljava/lang/String;)(s);

 // Call instance method instanceFoo() on x
 
 x...@com.google.gwt.examples.JSNIExample::instanceFoo(Ljava/lang/String;)(s);

 // Call static method staticFoo()
 @com.google.gwt.examples.JSNIExample::staticFoo(Ljava/lang/String;)(s);

 What's the difference here between using the 'this' and the passed in
 'x'?  What does 'this' represent in this example?


 The 'this' is the same here as it would be in Java, difference between
 'this' and 'x' is the same too.



 As for Thomas's explanation, are you saying that by calling $entry it
 creates a new inner function (or closure) where 'this' is no longer what it
 was?  So if I didn't use $entry then 'this' would be what I expect it is?


 It has nothing to do with $entry() but the fact that you export a method
 of an object, and the way things (and specifically 'this') work in
 JavaScript.

 Let's use pure JS:

 function JSExample() { };
 JSExample.prototype.instanceFoo = function(s) {
   // use s
 };
 JSExample.staticFoo = function(s) {
   // use s
 };
 JSExample.prototype.bar = function(x, s) {
   this.instanceFoo(s);
   x.instanceFoo(s);
   JSExample.staticFoo(s);
 };

 We can create a JSExample instance and call bar:

 var y = new JSExample();
 y.bar(new JSExample(), msg);

 Now export the method from 'y' without binding it to the JSExample
 instance and try to call it:

 var foo = y.bar; // could be window.foo instead of var foo; y.bar is the
 same as JSExample.prototype.bar
 foo(new JSExample(), msg); // fails because 'window' (the current
 'this') does not have an 'instanceFoo' property
 foo.call(y, new JSExample(), msg); // works because we explicitly set
 the 'this' to 'y'

 Now export the method, binding it to 'y' (using a closure) and call it:

 var foo = function(x, s) { y.bar(x, s); };
 foo(new JSExample(), msg); // works, because we call 'bar' on 'y'

 Introduce $entry:

 var foo = $entry(function(x, s) { y.bar(x, s); });
 foo(new JSExample(), msg); // works the same

 With ECMAScript 5, you could now use y.bar.bind(y) instead of using a
 closure, and with use strict the default 'this' would be 'null', not
 'window'.

 When I say GWT doesn't free you from knowing JS, I really mean it!

 --
 You received this message because you are subscribed to a topic in the
 Google Groups Google Web Toolkit group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/google-web-toolkit/rJAnzDPb_2Y/unsubscribe
 .
 To unsubscribe from this group and all its topics, send an email to
 google-web-toolkit+unsubscr...@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/groups/opt_out.


-- 
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+unsubscr...@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/groups/opt_out.


Re: Suggestions for transferring a GWT project to javascript?

2013-12-17 Thread Robert J. Carr
Thanks for the gwt-exporter suggestion (it was already on my radar) and
thanks for the alternative dart web toolkit.  I didn't catch the conference
but that is very interesting about GWT 3.0.  Do you have any white papers
on that specific topic?


On Tue, Dec 17, 2013 at 5:17 AM, Ümit Seren uemit.se...@gmail.com wrote:

 Alterantively you could check out DWT (http://dartwebtoolkit.com/) which
 tries to mimic the GWT features in Dart.
 But I guess this would be more involved than using gwt-exporter.

 In case you  missed the recent GWT.create conference. There are plans for
 GWT 3.0 to make the interoparability between JS and GWT much much easier
 and with web-components you can write JS code and then easily use it in
 GWT.



 On Tuesday, December 17, 2013 1:36:12 AM UTC+1, rjcarr wrote:

 I have a pretty large project that's over 7 years old that has used GWT
 from the very early days and is nearly 100% GWT (i.e., there's very little
 manually written javascript).  However, we'd like to transition the client
 to be written in javascript, but if possible, we'd like to retain the GWT
 services (i.e., the serialization).

 Basically, we'd like to keep all of the RemoteService,
 RemoteServiceAsync, and RemoteServiceServlet (and the accompanying
 object serialization) but write the client / visualization portions
 manually in javascript.

 Is there any way to divorce the data serialization from the visualization
 without the messiness of JSNI?

 Note that we don't have any problem with GWT, it's actually been great in
 most every way, but at this point we have many more javascript developers
 that are uncomfortable with java and it's hard to get the level of
 contribution we need to the project in its current state.

 Thanks!

  --
 You received this message because you are subscribed to a topic in the
 Google Groups Google Web Toolkit group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/google-web-toolkit/r1_7U5uq7rs/unsubscribe
 .
 To unsubscribe from this group and all its topics, send an email to
 google-web-toolkit+unsubscr...@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/groups/opt_out.


-- 
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+unsubscr...@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/groups/opt_out.


Re: Serialization help

2013-05-10 Thread Robert J. Carr
Thanks Jens.  I was thinking the answer is not possible but I was just
hoping to get confirmation in case I was missing something silly.  Thanks
for the link ... I'll check it out!


On Fri, May 10, 2013 at 2:06 AM, Jens jens.nehlme...@gmail.com wrote:

 At some point during the serialization process GWT is calling getClass()
 on your method return value which always resolves to the runtime class.
 Thats just how getClass() in Java works. I don't think you can change that
 behavior of GWT-RPC.
 If I give you an instance of type Object how would you know that you only
 have to serialize a specific super class of the runtime type of that
 instance? Thats probably only possible by searching for specific
 annotations that contain that information. GWT-RPC does not have such
 annotations.

 A somewhat similar question is:
 https://groups.google.com/d/msg/google-web-toolkit/OxuDRkJGFDE/jQd_V0aYzaYJ

 You can probably do the same here. Make Subtype a shared class with a
 super-source version for GWT. The super-source version would be empty and
 just extend Type. The CustomFieldSerializer for Subtype would now only
 read/write the Type variables during de-/serialization.

 -- J.


  --
 You received this message because you are subscribed to a topic in the
 Google Groups Google Web Toolkit group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/google-web-toolkit/OGsdfcalDpw/unsubscribe?hl=en
 .
 To unsubscribe from this group and all its topics, send an email to
 google-web-toolkit+unsubscr...@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?hl=en.
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
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+unsubscr...@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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: help with stack trace

2010-12-02 Thread Robert J. Carr
Thanks Didier, I already did exactly that and it appears my problem is
with the gwt-canvas library I recently added.  IE is saying my problem
is here:

function 
gwt_canvas_client_CanvasImpl_$init__Lgwt_canvas_client_CanvasImpl_2Lgwt_canvas_client_Canvas_2V(this$static,
canvas){
  this$static.gwt_canvas_client_CanvasImpl_element =
canvas.com_google_gwt_user_client_ui_UIObject_element;
  this$static.gwt_canvas_client_CanvasImpl_context =
this$static.gwt_canvas_client_CanvasImpl_element.getContext($intern_1342);
}

On the second line of that function.  The gwt-canvas author has made
demos that work with IE8 that I've tested but it doesn't seem to be
working for me.  I doubt you'll know what is going on here, but in
case you do, or have any suggestion, I'd appreciate the help.

Thanks!

On Thu, Dec 2, 2010 at 9:08 AM, Didier Durand durand.did...@gmail.com wrote:
 Hi,

 You should use Output style = detailed when translating to JS: your
 files will get much bigger but the source in js will be very easy to
 match with its java equivalent. Then by using firebug, you should spot
 where your issue is.

 regards
 didier

 On Dec 2, 5:34 pm, rjcarr rjc...@gmail.com wrote:
 I've been using GWT for years (since around release 1.4) but I'm
 having a problem with a stack trace I can't figure out.  I develop on
 a mac and primarily test with Safari and Firefox.  My application has
 worked in IE(8) in the past but in my most recent test it is failing
 and I can't figure out why.  Typically in the past when IE has failed
 I'll open in dev mode (previously hosted mode) and then get the stack
 trace but in this case the stack trace isn't pointing to any of my
 code.

 The problem happens immediately when I open up my application in IE8.
 Here's the complete stack trace:

 00:02:02.218 [ERROR] Uncaught exception escaped
 com.google.gwt.core.client.JavaScriptException: (TypeError): Object
 doesn't support this property or method
   number: -2146827850
   description: Object doesn't support this property or method

         at
 com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:
 237)
         at
 com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:
 126)
         at 
 com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
 561)
         at
 com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:
 269)
         at
 com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:
 91)
         at com.google.gwt.core.client.impl.Impl.apply(Impl.java)        at
 com.google.gwt.core.client.impl.Impl.entry0(Impl.java:214)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
 39)
         at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
 25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:
 103)
         at 
 com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:
 71)
         at
 com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:
 157)
         at
 com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:
 281)
         at
 com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
 531)
         at
 com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
 352)
         at java.lang.Thread.run(Thread.java:662)

 Is there anything I'm missing?  Does this indicate it must be coming
 from JSNI?  How do I track down where this is coming from?

 Maybe I could try unobfuscating the code and use firebug in IE8 (does
 that even exist)?

 Thanks for the help!

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



-- 
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: help with serialization

2010-05-24 Thread Robert J. Carr
Hi Gursel-

Thanks for the response, but I don't *want* Pair to serialize.  And
just marking it as transient doesn't fix the problem.  The Pair class
is out of the gwt package, and therefore, the gwt compiler can't even
see it.

Sorry if this doesn't make sense.

On Mon, May 24, 2010 at 5:45 AM, Gursel Koca gurselk...@gmail.com wrote:


 gwt.example.util.Pair p should be transient.. GWT serialization is
 similar to Java serialization. Gwt serializer try to serialize every
 non transient , final fields.

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



-- 
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: help with jsni

2010-05-03 Thread Robert J. Carr
Hi Sri-

That's a great reference, thanks, but it is effectively what I'm
already doing (just encapsulating it better).

I think my point is, in the example they gave:

class JsArrayE extends JavaScriptObject extends JavaScriptObject { ... }

I feel this should be part of the standard library.

Anyway, thanks for the link, it was helpful.

On Mon, May 3, 2010 at 12:09 AM, Sripathi Krishnan
sripathikrish...@gmail.com wrote:
 Have you tried using Javascript Overlays? See this page -
 http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsOverlay.html
 It allows you to pass objects back and forth, including JsArray. It has an
 example of JsArrayCustomer that you could peruse.

 --Sri


 On 3 May 2010 12:09, rjcarr rjc...@gmail.com wrote:

 I've recently began using a javascript library that is based on
 (requires) jquery so I'll be needing to write a lot more JSNI than I
 have in the past.

 I've actually got jquery working with jsni without too much trouble,
 but now I'm having problems with data types.

 I struggled quite a bit getting a data structure passed into a JSNI
 method, i.e., a list of String.  The only thing I could get to work
 was to write a JSNI method to create an array and return it as a
 JavaScriptObject (e.g, return []), then write another JSNI method to
 put something in the array (e.g, jso.push(string)), and then finally
 pass this built-up array into the expected JSNI method (with the
 jquery I need).

 Is this the only way to do it?  It seems this could be easier if the
 JsArrayString (and others similar) could be instantiated in Java, and
 then usable in the JSNI, but that isn't possible.  Am I missing
 something?

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


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


-- 
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: help with jsni

2010-05-03 Thread Robert J. Carr
Ah ... spoke too soon.  You'll see in the collections examples the
constructors are still protected, i.e., they still need to be created
by the underlying javascript (which is sketchy).

Anyway, it seems if I encapsulate all of the creation and manipulation
of the array it will be transparent, I'm just not sure why this isn't
in the standard library.

On Mon, May 3, 2010 at 12:25 AM, Robert J. Carr rjc...@gmail.com wrote:
 Hi Sri-

 That's a great reference, thanks, but it is effectively what I'm
 already doing (just encapsulating it better).

 I think my point is, in the example they gave:

 class JsArrayE extends JavaScriptObject extends JavaScriptObject { ... }

 I feel this should be part of the standard library.

 Anyway, thanks for the link, it was helpful.

 On Mon, May 3, 2010 at 12:09 AM, Sripathi Krishnan
 sripathikrish...@gmail.com wrote:
 Have you tried using Javascript Overlays? See this page -
 http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsOverlay.html
 It allows you to pass objects back and forth, including JsArray. It has an
 example of JsArrayCustomer that you could peruse.

 --Sri


 On 3 May 2010 12:09, rjcarr rjc...@gmail.com wrote:

 I've recently began using a javascript library that is based on
 (requires) jquery so I'll be needing to write a lot more JSNI than I
 have in the past.

 I've actually got jquery working with jsni without too much trouble,
 but now I'm having problems with data types.

 I struggled quite a bit getting a data structure passed into a JSNI
 method, i.e., a list of String.  The only thing I could get to work
 was to write a JSNI method to create an array and return it as a
 JavaScriptObject (e.g, return []), then write another JSNI method to
 put something in the array (e.g, jso.push(string)), and then finally
 pass this built-up array into the expected JSNI method (with the
 jquery I need).

 Is this the only way to do it?  It seems this could be easier if the
 JsArrayString (and others similar) could be instantiated in Java, and
 then usable in the JSNI, but that isn't possible.  Am I missing
 something?

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


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



-- 
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: help with jsni

2010-05-03 Thread Robert J. Carr
Thanks for the pointer, clearly I didn't know that existed or I
wouldn't have made the standard library comment.

On Mon, May 3, 2010 at 1:50 AM, Thomas Broyer t.bro...@gmail.com wrote:


 On May 3, 9:30 am, Robert J. Carr rjc...@gmail.com wrote:
 Ah ... spoke too soon.  You'll see in the collections examples the
 constructors are still protected, i.e., they still need to be created
 by the underlying javascript (which is sketchy).

 JsArrayString listOfStrings = JavaScriptObject.createArray().cast();

 Anyway, it seems if I encapsulate all of the creation and manipulation
 of the array it will be transparent, I'm just not sure why this isn't
 in the standard library.

 Er, isn't com.google.gwt.core the standard library ?!

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



-- 
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: Calling the GWT entry module from a servlet

2010-03-09 Thread Robert J. Carr
 Thanks for the response. I however do not understand what you mean by
 sounds like your gwt is using plain-old html, and not a jsp. The
 redirect I am performing is to the host page (initial html page that
 invokes the GWT application). Can this be a jsp instead of a html?

Sure, your gwt doesn't care what it is embedded in, html, jsp, asp, php, etc.

 Also, the difficulty I am encountering with the sendRedirect or
 request dispatcher approach is that once a user has signed out of the
 application, I have a login again link which invokes the same
 AuthenticatorServlet which redirects to the GWT initial html page and
 this redirect fails with a message that the response has already been
 committed. I am essentially looking for some technique to avoid this
 message upon second login from the user.

This error usually means you've written to the output stream before
you send the redirect.  I'm fairly certain if you avoid that you won't
get this error.

Good luck!

-- 
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: Uploading image via RPC to use in TreeItem

2010-02-11 Thread Robert J. Carr
Hi Thomas-

 Basically, you don't want to try and send image bytes through RPC ...
 avoid that and you should be fine.

 could you elaborate on that. please. What's the problem with doing so?

Sure ... it's pretty simple.  AFAIK, there is no way for a browser to
deal with image bytes.  As I said, you basically have 2 options:

 1) Create an Image object and for the URL point to a servlet that
will return image bytes to you.

 2) Call an RPC that will return a String and set that as the source
(setURL()) of your Image.

Good luck!

-- 
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: Communicating between gwt composites

2009-12-16 Thread Robert J. Carr
Isn't the event bus just an implementation of the Observer pattern?

On Wed, Dec 16, 2009 at 1:12 AM, Grant grant.klop...@gmail.com wrote:
 What you probably want is an Event Bus.

 There is a great video available, google for 'gwt mvp'. It is well
 worth a watch

 Grant



 On Dec 16, 7:01 am, jax jackma...@gmail.com wrote:
 HI

 I have a questions about communication in GWT and java in general.

 In an effort to better modularize my application I have made a number
 of different composites.  I then have a main application that links
 together all the composites.

 The problem comes when I need to communicate between composites, for
 example change an image in a composite based on an event in another
 composite.

 They way I have don this now is by passing this to every composite
 constructor and saving it as parent.  I also have methods that allow
 me to get the children of a composite.  Then in each composite I have
 a getCompositeParent() method that will allow me to go further down
 the composite tree.

 For example:

 parent.getCompositeParent().getCompositeParent().getNamesComposite
 ().getName().setText(hello);

 This seems a bit unwieldy.  Is this the normal way of doing things in
 JAVA?

 --

 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.




--

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: Deprecated SerializableException

2009-12-10 Thread Robert J. Carr
Actually, I tend to *only* use Exception for my remote service methods
and I still get the warning.

On Thu, Dec 10, 2009 at 11:47 AM, Jim Douglas jdoug...@basis.com wrote:
 a custom class that extends Exception

 That must be it; we have a couple of custom classes that just extend
 Exception:

 ./InitializationException.java:public class InitializationException
 extends Exception
 ./RPCException.java:public class RPCException extends Exception

 Would we be better off using one of the Exception types that GWT
 emulates?  Or is this just an annoying-but-harmless warning?

 On Dec 10, 2:31 am, Gabor pelladiga...@gmail.com wrote:
 If your method throws Exception, or a custom class that extends
 Exception, then you will get this warning. Maybe because the GWT
 compiler searches for all subclasses of Exception, and finds
 SerializableException. It includes it in the list of serializable
 types, and you get a deprecation warning. I don't know how to make it
 go away, without going back to 1.7.

 On Dec 10, 12:13 am, rjcarr rjc...@gmail.com wrote:



  I'm attempting to upgrade to GWT 2.0 and everything is working well
  enough except I am getting this warning in the compile step:

  Referencing deprecated class
  'com.google.gwt.user.client.rpc.SerializableException'

  And the file it mentions is a gwt derived file with the suffix:
  _TypeSerializer.java

  The warning always happens on service classes (i.e., RemoteService),
  but doesn't seem to happen on *all* service classes.

  I have not defined SerializableException explicitly, but my method
  signatures do throw Exception.

  Any idea why this is happening and what I can do to make it go away?

  Thanks!

 --

 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.




--

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 insert static HTML content

2009-11-03 Thread Robert J. Carr

Well, what you say here:

GWT is a one page show

Is absolutely true.  Given that, you'll have to come up with the
solution that suits you best.  Some options are:

 1) Don't use GWT for the login and have it redirect you to your GWT
page when you've authenticated.
 2) Integrate your login into GWT and have it replace the login with
content when you've authenticated.
 3) Create 2 GWT apps, one for login and one for content.

There are probably other options I'm missing ...

On Tue, Nov 3, 2009 at 8:42 PM, compuroad wilson.ferreira...@gmail.com wrote:

 Thanks for the sugestion. But what do I do with navigation. GWT is a
 one page show. When the user needs to create an account on the site
 I need to clear the Home content and replace with a GWT generated
 Create Account page/content. But since my home is static HTML, how
 am I going to do it?

 On Nov 3, 3:53 am, rjcarr rjc...@gmail.com wrote:
 I would suggest writing your page in the traditional way and then only
 filling in GWT for the sections you need.  You typically do with
 placeholders as divs and tds.  For example:

 body
   Here is some HTML ...
   div id=gwt/div
   Here is more HTML ...
 /body

 ...

 EntryPoint {
   RootPanel.get(gwt).add(new Label(Here is GWT HTML ...));
   ...

 }

 On Nov 2, 7:17 pm, compuroad wilson.ferreira...@gmail.com wrote:

  I would like to know if there is a built in way in GWT to read and
  inject HTML content. At least 50% of the site I am planning has static
  HTML content that would not benefit from GWT one page model. I am
  thinking in building a application that reads the static content using
  java.io.File and injects into GWT using the HTML widget.

  I would like to know if there are any alternatives.

  Thanks,

  Wilson
 


--~--~-~--~~~---~--~~
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: any way to return image through rpc?

2009-10-22 Thread Robert J. Carr

I appreciate your imagination. :)

On Thu, Oct 22, 2009 at 1:22 AM, alex.d alex.dukhov...@googlemail.com wrote:

 There was another really insane way where you actually decode your
 image (bytes you've sended back) and produce a lot of 1px sized divs
 with accordant colors which makes the image :))  But like i said -
 it's kind of crazy.

 On 22 Okt., 07:55, Robert J. Carr rjc...@gmail.com wrote:
 Thanks Ian ... I had a feeling it was going to be complicated, I just
 wanted to make sure I wasn't missing something.

 Looks like I'm relegated to building complex queries or making two
 requests.  Thanks again for the time!

 On Wed, Oct 21, 2009 at 9:12 PM, Ian Petersen ispet...@gmail.com wrote:

  You can send bytes back to the client as an RPC response (it's just an
  HTTP request, after all) but the problem is what to do with the bytes
  once you have them.  If you're willing to restrict yourself to
  browsers that support data:// URLs, you can send the image back as a
  data:// URL and just drop the result into an img tag.  That approach
  excludes many (all?) versions of IE.  As far as I know, the only IE
  that _might_ support data:// URLs is IE8.  To be fully-compatible, you
  need to forge ahead with your existing approach or, as you say,
  generate a URL via RPC and make the generated URL resolve to the
  desired image.

  If you want to fool around with the RPC infrastructure, you could
  possibly use a GWT-RPC request payload as the query parameter in a
  standard request, if you think such a representation would be more
  compact/useful than the representation you're currently using.  On the
  server side, you could then use the RPC class (is that still in use?)
  to deserialize the parameters and drive the image request.  Might be
  more trouble than it's worth, though.

  Ian
 


--~--~-~--~~~---~--~~
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: any way to return image through rpc?

2009-10-22 Thread Robert J. Carr

Thanks Erik, but I don't think you read my post closely enough.  I'm
currently using generic servlets to do what you describe.  However, I
need to make some really complex image requests and I don't want to be
bothered with building and parsing the request.  This is why I'd like
to use gwt's object serialization to make it easier.

Thanks anyway.

On Thu, Oct 22, 2009 at 2:11 AM, Erik luys.e...@gmail.com wrote:

 You can make a servlet and point the url (with or without parameters)
 of the image to that servlet,

 in the doPost or doGet method:
 final BufferedImage image = new BufferedImage(canvasWidth,
 canvasHeight, BufferedImage.TYPE_INT_RGB);
 final Graphics2D graphics2D = image.createGraphics();
 // create the image... (you can use parameters from the url).
 ...
 //at the end :
 response.setContentType(image/jpg);
 final ByteArrayOutputStream baos = new ByteArrayOutputStream();
 ImageIO.write(image, jpg, baos);
 final OutputStream out = response.getOutputStream();
 baos.writeTo(out);
 baos.flush();
 out.close();

 greets,
 Erik

 On Oct 22, 10:37 am, alex.d alex.dukhov...@googlemail.com wrote:
 Glad i could help ;)

 On 22 Okt., 10:26, Robert J. Carr rjc...@gmail.com wrote:

  I appreciate your imagination. :)

  On Thu, Oct 22, 2009 at 1:22 AM, alex.d alex.dukhov...@googlemail.com 
  wrote:

   There was another really insane way where you actually decode your
   image (bytes you've sended back) and produce a lot of 1px sized divs
   with accordant colors which makes the image :))  But like i said -
   it's kind of crazy.

   On 22 Okt., 07:55, Robert J. Carr rjc...@gmail.com wrote:
   Thanks Ian ... I had a feeling it was going to be complicated, I just
   wanted to make sure I wasn't missing something.

   Looks like I'm relegated to building complex queries or making two
   requests.  Thanks again for the time!

   On Wed, Oct 21, 2009 at 9:12 PM, Ian Petersen ispet...@gmail.com 
   wrote:

You can send bytes back to the client as an RPC response (it's just an
HTTP request, after all) but the problem is what to do with the bytes
once you have them.  If you're willing to restrict yourself to
browsers that support data:// URLs, you can send the image back as a
data:// URL and just drop the result into an img tag.  That approach
excludes many (all?) versions of IE.  As far as I know, the only IE
that _might_ support data:// URLs is IE8.  To be fully-compatible, you
need to forge ahead with your existing approach or, as you say,
generate a URL via RPC and make the generated URL resolve to the
desired image.

If you want to fool around with the RPC infrastructure, you could
possibly use a GWT-RPC request payload as the query parameter in a
standard request, if you think such a representation would be more
compact/useful than the representation you're currently using.  On the
server side, you could then use the RPC class (is that still in use?)
to deserialize the parameters and drive the image request.  Might be
more trouble than it's worth, though.

Ian
 


--~--~-~--~~~---~--~~
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: any way to return image through rpc?

2009-10-21 Thread Robert J. Carr

Thanks Ian ... I had a feeling it was going to be complicated, I just
wanted to make sure I wasn't missing something.

Looks like I'm relegated to building complex queries or making two
requests.  Thanks again for the time!

On Wed, Oct 21, 2009 at 9:12 PM, Ian Petersen ispet...@gmail.com wrote:

 You can send bytes back to the client as an RPC response (it's just an
 HTTP request, after all) but the problem is what to do with the bytes
 once you have them.  If you're willing to restrict yourself to
 browsers that support data:// URLs, you can send the image back as a
 data:// URL and just drop the result into an img tag.  That approach
 excludes many (all?) versions of IE.  As far as I know, the only IE
 that _might_ support data:// URLs is IE8.  To be fully-compatible, you
 need to forge ahead with your existing approach or, as you say,
 generate a URL via RPC and make the generated URL resolve to the
 desired image.

 If you want to fool around with the RPC infrastructure, you could
 possibly use a GWT-RPC request payload as the query parameter in a
 standard request, if you think such a representation would be more
 compact/useful than the representation you're currently using.  On the
 server side, you could then use the RPC class (is that still in use?)
 to deserialize the parameters and drive the image request.  Might be
 more trouble than it's worth, though.

 Ian

 


--~--~-~--~~~---~--~~
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: jsni getting rewritten

2009-06-02 Thread Robert J. Carr

Hi Sumit-

Thanks for the response.  I'm looking forward to hearing from Scott if
he has anything to say.

My example of doing simple arithmetic was only to explain the problem.
 However, if I think about it more, maybe it is still applicable.

Say I have an application that allows users to input arbitrary
(javascript) equations, e.g.:

Math.round(Math.pow(2,z)/2.0))-y-1

(Where x, y, and z are invariable)

Without writing my own lexer, how would I go about trying to find a
result to that?  That's why I figured using eval(), which is a lexer,
is the perfect solution.

Thanks again for the response.

On Tue, Jun 2, 2009 at 11:36 AM, Sumit Chandel sumitchan...@google.com wrote:
 Hi rjcarr,
 Because you can do arbitrary things in an eval, I'm not sure the GWT
 compiler will be able to infer that there are types referenced from the JSNI
 method parameter list in the eval argument. I could be wrong on that, so
 I've cc'ed Scott to double check that assertion.
 On the other hand, you could use regular GWT code to perform calculations.
 The GWT Java code you write will translate into optimized JavaScript anyway,
 so it seems like you could just as well stick with Java code arithmetic and
 rely on it to be cross-compiled into similar JavaScript as the one you're
 using in the eval.
 Hope that helps,
 -Sumit Chandel

 On Sun, May 31, 2009 at 9:40 AM, rjcarr rjc...@gmail.com wrote:

 For what it is worth, I solved the problem by doing this:

 private static native int eval(int x, int y, int z) /*-{
  eval(var x =  + x);
  eval(var y =  + y);
  eval(var z =  + z);
  return parseInt(eval(x + y * z));
 }-*/;

 And it seems to work, but seems there could be a smarter way.  This
 method is called *very* often so it's in my best interest for it to be
 as efficient as possible.

 A bit more explanation, I'm allowing users to define expressions that
 I want to evaluate (think of a calculator).  Rather than writing my
 own lexical analyzer I thought I'd use the one built into javascript.



 


--~--~-~--~~~---~--~~
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: jsni getting rewritten

2009-06-02 Thread Robert J. Carr

Hi Jason-

Thanks for the response, but again, it is just an example of what I'm
doing.  But you're right, and thanks for the suggestion, I'll take a
closer look at my specific application for any potential security
issues.

--~--~-~--~~~---~--~~
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: DeckPanel causes Widget to disappear

2009-03-03 Thread Robert J. Carr

Hi Ian ... thanks for the response.

Let me put it in code then:

Widget w = new MyCompilicatedWidget();

DeckPanel deck = new DeckPanel();
deck.add(w);
deck.showWidget(0);

RootPanel.get(main).add(deck);

// This doesn't work ... shows up as a single black line, however:

Widget w = new MyCompilicatedWidget();
SimplePanel simple = new SimplePanel();
simple.setWidget(w);
RootPanel.get(main).add(s);

// Works fine, or even:

RootPanel.get(main).add(new MyCompilicatedWidget());

// End code

Assuming I have no styles applied to my DeckPanel (which I don't), I
don't see how this can be a CSS issue.  Thanks for the suggestion
though, I'll dig a little deeper.

Also, not surprising, the same behavior happens for a TabPanel, which
makes sense because it uses a DeckPanel.

On Tue, Mar 3, 2009 at 4:31 PM, Ian Bambury ianbamb...@gmail.com wrote:
 My approach would be to add a border to the various widget one at a time
 (1px dotted red, say) to find out which widget is not displaying correctly.
 The chances are that you need a height:100% somewhere or that you don't have
 an absolute height in the chain back to the body element.
 Without any code, it's not easy to be more specific (for me, anyway)

 Ian

 http://examples.roughian.com


 2009/3/4 rjcarr rjc...@gmail.com

 I have a complicated widget that I'm trying to add to a DeckPanel.
 When the DeckPanel is rendered the widget is not shown, there's just a
 thin line a pixel or two high of where it is supposed to be.  Other
 widgets added to the deck are displayed fine.

 Taking away the deck the widget displays normally.  I've been using
 gwt for quite a while now and I've never seen this.  There are no
 errors of any sort ... it just isn't shown.

 However, if I add my widget to a SimplePanel it works fine.  My
 temporary solution is to replace the DeckPanel with a SimplePanel and
 use the setWidget() method with a listner, but I'd prefer to use the
 DeckPanel.

 Is there any explanation for this?




 


--~--~-~--~~~---~--~~
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: DeckPanel causes Widget to disappear

2009-03-03 Thread Robert J. Carr

Great suggestion, but unfortunately it didn't help.  The item I add to
the deck is still hidden.

Thanks though.

Robert

On Tue, Mar 3, 2009 at 5:01 PM, Ian Bambury ianbamb...@gmail.com wrote:
 Try adding the deck to the rootpanel before you add the widget to it.
 I'm not saying this is definitely it, but as a general rule, I try to build
 up widgets as I nest them, from the outside in, adding them to the DOM as
 soon as possible.
 The reason being that if it is not connected, then 100% of 0 is 0. Hence
 height = 0.
 The deckpanel (last time I looked) sizes the deck innards to 100%. The
 SimplePanel doesn't.


 Ian

 http://examples.roughian.com


 2009/3/4 Robert J. Carr rjc...@gmail.com

 Hi Ian ... thanks for the response.

 Let me put it in code then:

 Widget w = new MyCompilicatedWidget();

 DeckPanel deck = new DeckPanel();
 deck.add(w);
 deck.showWidget(0);

 RootPanel.get(main).add(deck);

 // This doesn't work ... shows up as a single black line, however:

 Widget w = new MyCompilicatedWidget();
 SimplePanel simple = new SimplePanel();
 simple.setWidget(w);
 RootPanel.get(main).add(s);

 // Works fine, or even:

 RootPanel.get(main).add(new MyCompilicatedWidget());

 // End code

 Assuming I have no styles applied to my DeckPanel (which I don't), I
 don't see how this can be a CSS issue.  Thanks for the suggestion
 though, I'll dig a little deeper.

 Also, not surprising, the same behavior happens for a TabPanel, which
 makes sense because it uses a DeckPanel.

 On Tue, Mar 3, 2009 at 4:31 PM, Ian Bambury ianbamb...@gmail.com wrote:
  My approach would be to add a border to the various widget one at a time
  (1px dotted red, say) to find out which widget is not displaying
  correctly.
  The chances are that you need a height:100% somewhere or that you don't
  have
  an absolute height in the chain back to the body element.
  Without any code, it's not easy to be more specific (for me, anyway)
 
  Ian
 
  http://examples.roughian.com
 
 
  2009/3/4 rjcarr rjc...@gmail.com
 
  I have a complicated widget that I'm trying to add to a DeckPanel.
  When the DeckPanel is rendered the widget is not shown, there's just a
  thin line a pixel or two high of where it is supposed to be.  Other
  widgets added to the deck are displayed fine.
 
  Taking away the deck the widget displays normally.  I've been using
  gwt for quite a while now and I've never seen this.  There are no
  errors of any sort ... it just isn't shown.
 
  However, if I add my widget to a SimplePanel it works fine.  My
  temporary solution is to replace the DeckPanel with a SimplePanel and
  use the setWidget() method with a listner, but I'd prefer to use the
  DeckPanel.
 
  Is there any explanation for this?
 
 
 
 
  
 




 


--~--~-~--~~~---~--~~
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: DeckPanel causes Widget to disappear

2009-03-03 Thread Robert J. Carr

Hi Joe-

What API are you looking at?  I only see one DeckPanel.add() method:

void add(Widget w)
Adds the specified widget to the deck.

I've checked both 1.5.2 and 1.5.3.  There's an inherited add() method,
but it still doesn't match your signature.

Are you thinking of TabPanel?

On Tue, Mar 3, 2009 at 11:20 PM, Joe Cole profilercorporat...@gmail.com wrote:

 I think the problem may be that you are not using the deckpanel add
 methods:
 DeckPanel.add(String text, Widget widget, boolean asHTML)

 Can you try that?

 On Mar 4, 1:44 pm, Robert J. Carr rjc...@gmail.com wrote:
 Hi Ian ... thanks for the response.

 Let me put it in code then:

 Widget w = new MyCompilicatedWidget();

 DeckPanel deck = new DeckPanel();
 deck.add(w);
 deck.showWidget(0);

 RootPanel.get(main).add(deck);

 // This doesn't work ... shows up as a single black line, however:

 Widget w = new MyCompilicatedWidget();
 SimplePanel simple = new SimplePanel();
 simple.setWidget(w);
 RootPanel.get(main).add(s);

 // Works fine, or even:

 RootPanel.get(main).add(new MyCompilicatedWidget());

 // End code

 Assuming I have no styles applied to my DeckPanel (which I don't), I
 don't see how this can be a CSS issue.  Thanks for the suggestion
 though, I'll dig a little deeper.

 Also, not surprising, the same behavior happens for a TabPanel, which
 makes sense because it uses a DeckPanel.

 On Tue, Mar 3, 2009 at 4:31 PM, Ian Bambury ianbamb...@gmail.com wrote:
  My approach would be to add a border to the various widget one at a time
  (1px dotted red, say) to find out which widget is not displaying correctly.
  The chances are that you need a height:100% somewhere or that you don't 
  have
  an absolute height in the chain back to the body element.
  Without any code, it's not easy to be more specific (for me, anyway)

  Ian

 http://examples.roughian.com

  2009/3/4 rjcarr rjc...@gmail.com

  I have a complicated widget that I'm trying to add to a DeckPanel.
  When the DeckPanel is rendered the widget is not shown, there's just a
  thin line a pixel or two high of where it is supposed to be.  Other
  widgets added to the deck are displayed fine.

  Taking away the deck the widget displays normally.  I've been using
  gwt for quite a while now and I've never seen this.  There are no
  errors of any sort ... it just isn't shown.

  However, if I add my widget to a SimplePanel it works fine.  My
  temporary solution is to replace the DeckPanel with a SimplePanel and
  use the setWidget() method with a listner, but I'd prefer to use the
  DeckPanel.

  Is there any explanation for this?
 


--~--~-~--~~~---~--~~
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: module organization

2008-12-29 Thread Robert J. Carr

Great, that is mostly what I expected, thanks for the help!

On Mon, Dec 29, 2008 at 3:47 PM, Shawn Pearce s...@google.com wrote:
 There isn't really any effect either way.  The additional module might take
 a tiny bit extra time to compile (like under 1 ms) due to the compiler
 needing to read an extra XML file.  But all of the code from all modules is
 flattened out at compile time into a single JavaScript file.  So there is no
 runtime impact to using multiple modules vs. one module, and there really
 isn't a compile time impact that you can notice as a developer.

 Generally people try to organize code into modules where there is
 reusability.  Then its easier to reuse code from one project in another by
 just inheriting from the necessary modules.  Its GWT's way of managing
 libraries.

--~--~-~--~~~---~--~~
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: GIS Map Tile Viewer in GWT

2008-09-24 Thread Robert J. Carr

Hey Sumit-

Thanks for the response.  Google Maps requires that you are connected
to the internet in order to both download the image tiles as well as
the javascript code.  The environment I will be in won't be connected
to the internet, so I won't be able to download either of these.

I already have the image tiles I'm interested in, so I'm just looking
for a GWT solution that can take these tiles and manipulate them like
Google Maps does.  Again, it can't be the GWT Google Maps widget
because that just wraps the Google Maps javascript.  I'd need a
solution that has essentially rewritten Google Maps but has done it in
GWT.

There are a few pure javascript solutions out there that does this
(OpenLayers is one), but I need it to be in GWT.

I've started this project and I'm pretty far along so if I get it to a
usable state I'll share what I have.

On Wed, Sep 24, 2008 at 2:52 AM, Sumit Chandel [EMAIL PROTECTED] wrote:

 Hi rjcarr,

 When you say you're planning to use Google Maps in an offline mode (or
 away from the cloud), could you elaborate a little on what you mean
 exactly or how you're planning to use the Maps API? I'm not a policy
 expert, but I think that what you're trying to do is use the Maps
 tiling, but not through the actual Maps API, which would probably
 constitute a breach of the Maps tile data usage policy.

 You can check out the FAQ about this at the link below. It's possible
 I've misinterpreted what you're planning to do with the Maps tiles
 data, in which case just let me know and we could be on our way to a
 solution for your application.

 http://code.google.com/apis/maps/faq.html#tos_tiles

 Hope that helps,
 -Sumit Chandel

 On Mon, Sep 22, 2008 at 6:21 AM, rjcarr [EMAIL PROTECTED] wrote:

 I'm wondering if anyone has developed a GWT Widget for viewing a set
 of GIS tiles very similar to Google Maps.  I don't need all the
 functionality that Google Maps offers, but I'd need things like geo
 registration, multiple zoom levels, overlays, markers, etc ...

 I know there is a Google Maps Widget for GWT but unfortunately I can't
 use Google Maps directly as my application will run offline (or, at
 least, away from the cloud).

 In looking through the forums I've seen a reference to a sachamaps
 but I get no other hits on it.  So, before I go and spend a couple
 weeks on this, I'd like to see if it has already been done, as I'm not
 sure of the best algorithm to use for the tiling.
 


 


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GIS Map Tile Viewer in GWT

2008-09-24 Thread Robert J. Carr

Great, good suggestion, I'll look into it.  Thanks!

On Wed, Sep 24, 2008 at 3:30 AM, Thomas Broyer [EMAIL PROTECTED] wrote:


 On 22 sep, 06:21, rjcarr [EMAIL PROTECTED] wrote:
 I'm wondering if anyone has developed a GWT Widget for viewing a set
 of GIS tiles very similar to Google Maps.  I don't need all the
 functionality that Google Maps offers, but I'd need things like geo
 registration, multiple zoom levels, overlays, markers, etc ...

 I know there is a Google Maps Widget for GWT but unfortunately I can't
 use Google Maps directly as my application will run offline (or, at
 least, away from the cloud).

 In looking through the forums I've seen a reference to a sachamaps
 but I get no other hits on it.  So, before I go and spend a couple
 weeks on this, I'd like to see if it has already been done, as I'm not
 sure of the best algorithm to use for the tiling.

 If you're looking for a map widget, I know of OpenLayers (pure
 JavaScript, but googling for openlayers gwt gave some results at
 sourceforge and codehaus).
 


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---