RE: Exceptions not showing up in Dev Mode Panel

2010-11-05 Thread Perelman Nathan (Nathan)
No, I didn't want to go to the trouble of converting my existing Eclipse
projects.

 

  _  

From: google-web-toolkit@googlegroups.com
[mailto:google-web-tool...@googlegroups.com] On Behalf Of Rajeev Dayal
Sent: Friday, November 05, 2010 14:21
To: google-web-toolkit@googlegroups.com
Subject: Re: Exceptions not showing up in Dev Mode Panel

 

Are you using the Google Plugin for Eclipse?

On Fri, Nov 5, 2010 at 2:19 PM, Nathan nperel...@lgsinnovations.com wrote:

I'm using GWT 2.0.4 and in Dev Mode it seems some exceptions are left
uncaught and show up in the browser instead of in my GWT uncaught
exception handler or in the Dev Mode panel. For example I get a line
like uncaught exception:
com.google.gwt.dev.shell.HostedModeException: Something other than a
double was returned from JSNI method... in my Firebug or browser
error console. Is there some way I can get this exception to show up
somewhere where I can see a Java stack trace from it?

--
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
mailto:google-web-toolkit%2bunsubscr...@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.



smime.p7s
Description: S/MIME cryptographic signature


RE: Exceptions not showing up in Dev Mode Panel

2010-11-05 Thread Perelman Nathan (Nathan)
That was it, thanks for the quick help. Adding $entry() around my callbacks
fixed it.

 

  _  

From: google-web-toolkit@googlegroups.com
[mailto:google-web-tool...@googlegroups.com] On Behalf Of John Tamplin
Sent: Friday, November 05, 2010 15:17
To: Rajeev Dayal
Cc: google-web-toolkit@googlegroups.com
Subject: Re: Exceptions not showing up in Dev Mode Panel

 

Are you using any JSNI that gets called directly from the browser?  Ie,
anything like obj.callback = function() {...};?  If so, you have to wrap any
entry points from the browser into GWT code with $entry, so that would look
like obj.callback = $entry(function() {...});

 

Note that it could be in library code you are using rather than something
you have written -- I don't have a good suggestion for tracking it down if
it isn't something you have written.

-- 
John A. Tamplin
Software Engineer (GWT), Google

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



smime.p7s
Description: S/MIME cryptographic signature


RE: Error on 64bit System

2008-10-16 Thread Perelman Nathan (Nathan)
I'm guessing that gwt-dev-linux.jar is not on your classpath. (Or
whatever the correct gwt-dev jar is for your OS).



From: Google-Web-Toolkit@googlegroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Pavel Byles
Sent: Thursday, October 16, 2008 15:09
To: Google-Web-Toolkit@googlegroups.com
Subject: Error on 64bit System

 

I have just converted to using 64bit and I'm encountering some problems
configuring my GWT project which I created using Cypal Studio's plugin.
I am getting the following error:

Exception in thread main java.lang.NoClassDefFoundError:
org/eclipse/swt/internal/gtk/OS
at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:63)
at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:54)
at org.eclipse.swt.widgets.Display.clinit(Display.java:130)
at com.google.gwt.dev.GWTShell.clinit(GWTShell.java:301)
Caused by: java.lang.ClassNotFoundException:
org.eclipse.swt.internal.gtk.OS
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at sun.misc.Launcher$ExtClassLoader.findClass(Launcher.java:229)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
... 4 more
Could not find the main class: com.google.gwt.dev.GWTShell.  Program
will exit.

The error seems to be correct, because there really isn't a GWTShell
class anywhere.

I have followed the instruction on the Eclipse SWT page and build the
SWT jar for my system and copied to my JRE's lib/ext dir and it is
showing up in the build path correctly.

The project I have definitely worked when I was on 32bit.  And when I
created a new project it's giving the same error.

Have I missed something?

-Pavel




--~--~-~--~~~---~--~~
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: GWT and Firefox

2008-10-14 Thread Perelman Nathan (Nathan)

Try using Firebug (it's a Firefox plugin) to find out what styles (if any) are 
being applied and where they come from.

-Original Message-
From: Google-Web-Toolkit@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf 
Of Taff
Sent: Tuesday, October 14, 2008 17:47
To: Google Web Toolkit
Subject: Re: GWT and Firefox


It's very frustrating.

I suspect a number of things maybe causing the problem

a) My app is not picking up the css file from the Module xml file.
b) It could be because my app has mixed Upper and Lower case chars in
it BDFTReportManager
c) Something to do with a missing inherits flag in the module file,
mine is a very simple proof of concept app at this stage and has no
RPC stuff in it, so I can't see why
d) I've tried dynamically loading the css file in the HTML file with a
standard link flag
e) I'm using a StackedPanel and TabPanel and these are the 2 where the
standard css settigns are not working and they just default back to
the default set.
f) I've tried to ensure that i am using the SetStyle method to force
the code to use the right css setting ... no luck.

I am just totally baffled, and I'm pretty sure it'll be something
really simple we just need a GWT expert to shine the light on it




On Oct 14, 8:19 pm, grasshopper [EMAIL PROTECTED] wrote:
 I am having exactly the same problem.

 GWT 1.5, IF 7, FF 3

 On Oct 14, 11:26 am, Taff [EMAIL PROTECTED] wrote:

  Hi

  I'm sure this has been raised before, however I'm new to the product
  and can't find any threads on this

  MY new app works fine in IE and not in Firefox.  For some reason the
  app does not pick up the app stylesheet in firefox like it does in IE.

  I've tried every which way, but to no avail.  Is there something I'm
  missing.

  Also I code on my mac at home and PC in the office and none of the
  rendering seems to be that portable.

  Any pointers would be much appreciated

  Thanks

  Andy


--~--~-~--~~~---~--~~
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: GWT and Firefox

2008-10-14 Thread Perelman Nathan (Nathan)

I'm pretty sure that if you remove or comment out (with !-- comment -- since 
this is xml) the following line in your .gwt.xml file, it will stop including 
standard.css:
inherits name=com.google.gwt.user.theme.standard.Standard/

I'm not sure that this is really your problem though. Make sure your elements 
have the class you want applied to them maybe?

-Original Message-
From: Google-Web-Toolkit@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf 
Of Taff
Sent: Tuesday, October 14, 2008 18:39
To: Google Web Toolkit
Subject: Re: GWT and Firefox


Very odd, this is what I see in firebug

link rel=stylesheet href=file:///C:/work/BDFTReportManager/
WebContent/gwt/standard/standard.css
/link
link rel=stylesheet href=file:///C:/work/BDFTReportManager/
WebContent/BDFTReportManager.css

I've changed the default

.gwt-StackPanel {

}
 with

.bdftgwt-StackPanel {

}

it seems to pick up my new one and then revert back to the default
standard.css one ... totally baffled :(

Do I need to exclude the standard.css in some way?  If so how do I do
that?  Manually?  or is that going to be a post operation for the ANT
script?

Sorry for so many questions but i'm a newbies ot GWT

Thanks

Andy




On Oct 14, 11:20 pm, Taff [EMAIL PROTECTED] wrote:
 Top Tip!!  thanks

 OK, so that partially answers the question, at least now I can see
 that my overiden css elements are being ignored for the standard.css
 ones.

 So, question - does this mean that I have to rename mine and then use
 the SetStyle method to get this working?

 .gwt-StackPanel {

 }

 .gwt-StackPanelItem gwt-StackPanelItem-first{
         }

 .gwt-StackPanel .gwt-StackPanelItem {
         }

 On Oct 14, 10:57 pm, Perelman Nathan (Nathan)

 [EMAIL PROTECTED] wrote:
  Try using Firebug (it's a Firefox plugin) to find out what styles (if any) 
  are being applied and where they come from.

  -Original Message-
  From: Google-Web-Toolkit@googlegroups.com [mailto:[EMAIL PROTECTED] On 
  Behalf Of Taff
  Sent: Tuesday, October 14, 2008 17:47
  To: Google Web Toolkit
  Subject: Re: GWT and Firefox

  It's very frustrating.

  I suspect a number of things maybe causing the problem

  a) My app is not picking up the css file from the Module xml file.
  b) It could be because my app has mixed Upper and Lower case chars in
  it BDFTReportManager
  c) Something to do with a missing inherits flag in the module file,
  mine is a very simple proof of concept app at this stage and has no
  RPC stuff in it, so I can't see why
  d) I've tried dynamically loading the css file in the HTML file with a
  standard link flag
  e) I'm using a StackedPanel and TabPanel and these are the 2 where the
  standard css settigns are not working and they just default back to
  the default set.
  f) I've tried to ensure that i am using the SetStyle method to force
  the code to use the right css setting ... no luck.

  I am just totally baffled, and I'm pretty sure it'll be something
  really simple we just need a GWT expert to shine the light on it

  On Oct 14, 8:19 pm, grasshopper [EMAIL PROTECTED] wrote:
   I am having exactly the same problem.

   GWT 1.5, IF 7, FF 3

   On Oct 14, 11:26 am, Taff [EMAIL PROTECTED] wrote:

Hi

I'm sure this has been raised before, however I'm new to the product
and can't find any threads on this

MY new app works fine in IE and not in Firefox.  For some reason the
app does not pick up the app stylesheet in firefox like it does in IE.

I've tried every which way, but to no avail.  Is there something I'm
missing.

Also I code on my mac at home and PC in the office and none of the
rendering seems to be that portable.

Any pointers would be much appreciated

Thanks

Andy


--~--~-~--~~~---~--~~
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: Problem with javascript accessing Java fct.

2008-10-10 Thread Perelman Nathan (Nathan)

Actually, now that I think about it, I'm pretty sure that the code in
onModuleLoad doesn't get run until after the page is fully loaded. So
you can't have static JavaScript in your HTML that runs right away call
functions exported from Java that aren't there until after the page
loads. You could use more JSNI code to call a start function in
JavaScript from onModuleLoad after you call exportStaticMethod. I
believe that that would work.

-Original Message-
From: Google-Web-Toolkit@googlegroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Mogoye
Sent: Friday, October 10, 2008 10:54
To: Google Web Toolkit
Subject: Re: Problem with javascript accessing Java fct.


Thx for your very fast answer.

But't it does not resolve the problem, I've got the same error.


--~--~-~--~~~---~--~~
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: JSONNumber getValue() and ints

2008-09-30 Thread Perelman Nathan (Nathan)

Use doubleValue() and then cast to int. All JavaScript numbers (and
therefore all JSONNumbers) are really doubles.

-Original Message-
From: Google-Web-Toolkit@googlegroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of seven.reeds
Sent: Tuesday, September 30, 2008 16:43
To: Google Web Toolkit
Subject: JSONNumber getValue() and ints


Hi

I am using Eclipse 3.4.1, java 1.6.0_07, gwt 1.5.2 under linux.

I have a JSON object that contains an integer value.  I am trying the
following to get it:

int rowCount =
index.Info.get(RowCount).isNumber().getValue().intValue();

Eclipse tells me the getValue() for JSONNumber is depreciated

Is there a better way?


--~--~-~--~~~---~--~~
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: Warning about using float fields with RPC (shocking bug)

2008-09-18 Thread Perelman Nathan (Nathan)

I doubt that this will be resolved since all numbers in JavaScript are
treated as doubles. I'm not really sure what the correct translation of
floats in client side Java code should be, but just treating them as
doubles seems like a reasonable solution.

Also, the serializer has no way of knowing what precision you require on
your values. Note that of your example values, the only one precisely
representable in base 2 is 28.5. All others just happen to be rounded
back to representations with a single digit after the decimal point in
the decimal - float - decimal conversion, but not in the decimal -
float - double - decimal conversion.

For example:
28.4 = 0x1C.66 (6 repeating, cut to 32 bits) =
28.3997615814208984375

-Original Message-
From: Google-Web-Toolkit@googlegroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Alex Epshteyn
Sent: Wednesday, September 17, 2008 20:32
To: Google Web Toolkit
Subject: Warning about using float fields with RPC (shocking bug)


Amazing but true: only a hanful of all possible float values will be
serialized correctly on the server end of GWT RPC.

Examples:

28.4 = 28.39618530273
28.5 = 28.5
28.6 = 28.60381469727
28.7 = 28.70762939453
28.9 = 28.89618530273

Fortunately this should be easy to fix.

See my bug report for more info:

http://code.google.com/p/google-web-toolkit/issues/detail?id=2897


--~--~-~--~~~---~--~~
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: slow scrolling in gwt

2008-09-15 Thread Perelman Nathan (Nathan)

I suspect your problem is that you seem to be rebuilding the entire
contents every time you add a line. Try using a VerticalPanel inside a
ScrollPanel to hold your chat lines (one HTML widget per line), instead
of using a single HTML widget.

-Original Message-
From: Google-Web-Toolkit@googlegroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Czarna Foka
Sent: Friday, September 12, 2008 18:09
To: Google Web Toolkit
Subject: slow scrolling in gwt


Hi
I'm very exciting of power of gwt and I have great idea for web
application but...
One of component on my application will be group chat so I try do
performance tests and it shows me that scrolling in gwt isn't very
fast.

I did chat component as HTML inside ScrollPanel and client side
receive message from server and appends it on the end of HTML and next
step is scrolling ScrollPanel to bottom. All works fine till when HTML
contains more rows than about 2000. After this one more message cause
that scrolling take 100% power of computer for short time (less 1
second). I need optimize it, please help me maybe other component?
In gmail chat this problem not appears, why? :)

My procedure on client side looks like:

1. in loop add message(s) to StringBuilder
2. HTML.setHTML(stringbuilder.tostring) (HTML is as ScrollPanel's
Widget)
3. ScrollPanel.scrollToBottom

any suggestions?




--~--~-~--~~~---~--~~
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: Best solution for client-side graphing in GWT?

2008-09-12 Thread Perelman Nathan (Nathan)

I'm aware that that is possible, I'd rather not reinvent the wheel myself.

Do you have a library that is available for others to use? Do you have a 
website or some more information?

-Original Message-
From: Google-Web-Toolkit@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf 
Of [EMAIL PROTECTED]
Sent: Friday, September 12, 2008 13:22
To: Google Web Toolkit
Subject: Re: Best solution for client-side graphing in GWT?


I've actually implemented a pure canvas/vml charting solution for GWT.

On Sep 12, 1:04 pm, Nathan [EMAIL PROTECTED] wrote:
 I've been investigating the best way to do client-side graphing in
 GWT. The features that I am looking for that don't seem to be widely
 provided are the ability for users to select portions of the graph,
 and to receive events for mouse clicks on any part of the graph. I
 also can't use a solution that uses flash (IE support however, is not
 important).

 The solution I'm currently considering is to write a bunch of
 JavaScript Overlay classes for use with flot (http://code.google.com/p/flot/
 ).

 As far as I can tell, gchart (http://code.google.com/p/gchart/) is
 the only native GWT graphing solution, but has no events support. I
 also looked into the dojox charting library, but flot seems to have
 better events support (particularly the ability to click on any point
 in the graph and get an event with the graph coordinates for the point
 clicked).

 Are there any projects out there that I've missed? I'd really like a
 native GWT solution, if possible.

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