Unable to get classes from Cobogw

2010-07-07 Thread Aditya
Hello,

I m trying a demo application using jar provided by Cobogw

I have downloaded cobogw-1.3.1 and included it into project build
path

http://cobogw.googlecode.com/svn/demo/WidgetsDemo.html

I have put this jar file under WEB-INF/lib/

I m running project under eclipse environment it doesnt show any error
while importing that classes from this jar
but whenever i try to compile my code it gives me following error :

Compiling module com.ratings.demo.RatingDemo
   Validating newly compiled units
  [ERROR] Errors in 'file:/D:/Google_App_Engine/Java/RatingDemo/
src/com/ratings/demo/client/RatingDemo.java'
 [ERROR] Line 16: No source code is available for type
org.cobogw.gwt.user.client.ui.Button; did you forget to inherit a
required module?
   Finding entry point classes
  [ERROR] Unable to find type 'com.ratings.demo.client.RatingDemo'
 [ERROR] Hint: Previous compiler errors may have made this
type unavailable
 [ERROR] Hint: Check the inheritance chain from your module;
it may not be inheriting a required module or a module may not be
adding its source path entries properly


Anyone has solution for this...?

Thanks,
--
Aditya

-- 
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: Unable to get classes from Cobogw

2010-07-07 Thread aditya sanas
Problem solved guys...

i had to include following statement in my module
 inherits name='org.cobogw.gwt.user.User' /


--
Aditya


On Wed, Jul 7, 2010 at 11:37 AM, Aditya 007aditya.b...@gmail.com wrote:

 Hello,

 I m trying a demo application using jar provided by Cobogw

 I have downloaded cobogw-1.3.1 and included it into project build
 path

 http://cobogw.googlecode.com/svn/demo/WidgetsDemo.html

 I have put this jar file under WEB-INF/lib/

 I m running project under eclipse environment it doesnt show any error
 while importing that classes from this jar
 but whenever i try to compile my code it gives me following error :

 Compiling module com.ratings.demo.RatingDemo
   Validating newly compiled units
  [ERROR] Errors in 'file:/D:/Google_App_Engine/Java/RatingDemo/
 src/com/ratings/demo/client/RatingDemo.java'
 [ERROR] Line 16: No source code is available for type
 org.cobogw.gwt.user.client.ui.Button; did you forget to inherit a
 required module?
   Finding entry point classes
  [ERROR] Unable to find type 'com.ratings.demo.client.RatingDemo'
 [ERROR] Hint: Previous compiler errors may have made this
 type unavailable
 [ERROR] Hint: Check the inheritance chain from your module;
 it may not be inheriting a required module or a module may not be
 adding its source path entries properly


 Anyone has solution for this...?

 Thanks,
 --
 Aditya

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



-- 
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: onSuccess() return value other than void?

2010-07-07 Thread day_trader
This is where I am rather confused. As when i move it to
a package which isn't named in the .gwt.xml file I receive
an error of cannot be resolved to a type. Which is fair enough,
as I assumed everything in the .gwt.xml was putting the classes
in 'view' of everything in the application? Or perhaps I'm very
muddled up!

Sorry for the continued annoyance! I very much apologise.

Malcolm

On Jul 7, 5:11 am, Sunny pratik.sachd...@gmail.com wrote:
 Hi day_trader

 As far as i can think is that you are trying to pass an object with
 the data of the class..

 now to make your class go to the server side all you need to do is to
 move it to a package that is in the package that is *not* mentioned in
 your your_gwt_xml.gwt.xml file as the classes in these
 packages,which are mentioned in the gwt.xml file, get ajaxified and
 sent on to the client.

 Hope this helps.

 Sunny.

 On Jul 6, 5:04 pm, day_trader mwmcmul...@gmail.com wrote:



  Thanks for the replies thus far.

  That all makes sense. I did have strong doubts about the likelihood of
  what I wanted but as I am not an expert in the field I thought it was
  better to make sure.

  Actually, my problems would be solved quite quickly if I got around my
  initial problem that led to this posting. Basically, there is a class
  in my client side, under myApp.client.models.SomeModel that I need to
  pass to the server. The problem is that the server cannot see this
  class as I get an error when I try to compile it. My question is: How
  do I check if the class is on my SERVER classpath?

  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.



Re: Problem with Eclipse, Google plugin and WTP

2010-07-07 Thread SimonM
Hey Rajeev,

The WAR folder is set to WebContent.
The box was checked, so I unchecked it, but it didn't change the fact
the libs weren't copied/deployed correctly.


Thanks for helping,

Simon

On 2 juil, 19:18, Rajeev Dayal rda...@google.com wrote:
 Hey Simon,

 If you navigate to the smart-ui project properties - Google - Web
 Application, what is the WAR folder set to? Is the Launch and Deploy From
 this Directory box checked? In your case, it should not be.

 Rajeev



 On Wed, Jun 30, 2010 at 7:29 AM, SimonM simon.manqu...@gmail.com wrote:
  Hello,

  I have troubles with WTP and Google plugin for Eclipse.

  I have one Dynamic Web Application Project, and I use GWT in this
  project. It's smart-ui.

  I have a Java Project which contains all business logic, it's smart-
  business : smart-ui depends on smart-business. All is correctly
  exported in Java EE Module Dependencies.

  Now I use WTP to deploy on a local JBoss, and all is working except
  one thing : the libraries of project-ui are not deployed in WEB-INF/
  lib. The project itself is compiled, packaged and deployed in this
  directory.

  I have found after investigating several hours I can deploy correctly
  if I set in the Java Build Path (in Eclipse)  the Default output
  folder to build/classes (and not WebContent/WEB-INF/classes). All libs
  are present in WEB-INF/lib. I can even set the folder to build/
  classes for example, it works.

  Meanwhile I have a new error in my project :
  The output directory for the project should be set to /smart-ui/
  WebContent/WEB-INF/classes      smart-ui-gxt            Unknown Google Web
  App
  Problem

  If I set the Default output folder back to WebConten/WEB-INF/classes,
  I don't have the error anymore but the libs aren't exported to WEB-INF/
  lib.

  I think there are some incompatibilities between WTP and Google plugin
  there.

  Am I missing something ? Is this a know issue and does a workaround
  exist ?

  Thanks for helping.

  Simon

  --
  You received this message because you are subscribed to the Google Groups
  Google Web Toolkit group.
  To post to this group, send email to google-web-tool...@googlegroups.com.
  To unsubscribe from this group, send email to
  google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs 
  cr...@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: onSuccess() return value other than void?

2010-07-07 Thread andreas
You do not have to move something out of 'client' packages to have it
on your server. This is definitely wrong!

You do have to move classes you want to have on the client or both
client and server into the client packages (or declare those packages
in your *.gwt.xml files).

Since you want your class to be passed from the client to the server
this class definitely needs to be in your 'client' package. I don't
know why you get an error on compiling, maybe you can give more
informations on this one. GWT compiles all Java files (also those in
'client') to .class files in your war/WEB-INF/src/ folder so all
classes will be accessible on the server.

Andreas

On 7 Jul., 10:02, day_trader mwmcmul...@gmail.com wrote:
 This is where I am rather confused. As when i move it to
 a package which isn't named in the .gwt.xml file I receive
 an error of cannot be resolved to a type. Which is fair enough,
 as I assumed everything in the .gwt.xml was putting the classes
 in 'view' of everything in the application? Or perhaps I'm very
 muddled up!

 Sorry for the continued annoyance! I very much apologise.

 Malcolm

 On Jul 7, 5:11 am, Sunny pratik.sachd...@gmail.com wrote:



  Hi day_trader

  As far as i can think is that you are trying to pass an object with
  the data of the class..

  now to make your class go to the server side all you need to do is to
  move it to a package that is in the package that is *not* mentioned in
  your your_gwt_xml.gwt.xml file as the classes in these
  packages,which are mentioned in the gwt.xml file, get ajaxified and
  sent on to the client.

  Hope this helps.

  Sunny.

  On Jul 6, 5:04 pm, day_trader mwmcmul...@gmail.com wrote:

   Thanks for the replies thus far.

   That all makes sense. I did have strong doubts about the likelihood of
   what I wanted but as I am not an expert in the field I thought it was
   better to make sure.

   Actually, my problems would be solved quite quickly if I got around my
   initial problem that led to this posting. Basically, there is a class
   in my client side, under myApp.client.models.SomeModel that I need to
   pass to the server. The problem is that the server cannot see this
   class as I get an error when I try to compile it. My question is: How
   do I check if the class is on my SERVER classpath?

   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.



Re: onSuccess() return value other than void?

2010-07-07 Thread andreas
Sorry, it's war/WEB-INF/classes/.

On 7 Jul., 10:26, andreas horst.andrea...@googlemail.com wrote:
 You do not have to move something out of 'client' packages to have it
 on your server. This is definitely wrong!

 You do have to move classes you want to have on the client or both
 client and server into the client packages (or declare those packages
 in your *.gwt.xml files).

 Since you want your class to be passed from the client to the server
 this class definitely needs to be in your 'client' package. I don't
 know why you get an error on compiling, maybe you can give more
 informations on this one. GWT compiles all Java files (also those in
 'client') to .class files in your war/WEB-INF/src/ folder so all
 classes will be accessible on the server.

 Andreas

 On 7 Jul., 10:02, day_trader mwmcmul...@gmail.com wrote:



  This is where I am rather confused. As when i move it to
  a package which isn't named in the .gwt.xml file I receive
  an error of cannot be resolved to a type. Which is fair enough,
  as I assumed everything in the .gwt.xml was putting the classes
  in 'view' of everything in the application? Or perhaps I'm very
  muddled up!

  Sorry for the continued annoyance! I very much apologise.

  Malcolm

  On Jul 7, 5:11 am, Sunny pratik.sachd...@gmail.com wrote:

   Hi day_trader

   As far as i can think is that you are trying to pass an object with
   the data of the class..

   now to make your class go to the server side all you need to do is to
   move it to a package that is in the package that is *not* mentioned in
   your your_gwt_xml.gwt.xml file as the classes in these
   packages,which are mentioned in the gwt.xml file, get ajaxified and
   sent on to the client.

   Hope this helps.

   Sunny.

   On Jul 6, 5:04 pm, day_trader mwmcmul...@gmail.com wrote:

Thanks for the replies thus far.

That all makes sense. I did have strong doubts about the likelihood of
what I wanted but as I am not an expert in the field I thought it was
better to make sure.

Actually, my problems would be solved quite quickly if I got around my
initial problem that led to this posting. Basically, there is a class
in my client side, under myApp.client.models.SomeModel that I need to
pass to the server. The problem is that the server cannot see this
class as I get an error when I try to compile it. My question is: How
do I check if the class is on my SERVER classpath?

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.



Re: onSuccess() return value other than void?

2010-07-07 Thread day_trader
It could possibly be because I am using Enunciate to develop my
application with. Here is my complete error:

[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Problem assembling the enunciate app.

Embedded error: Class not found: TreeModel

I've just tried putting TreeModel into my gwt.xml file : inherits
name='com.myApp.client.models.TreeModel'/ however this doesn't appear
to work either. I have posted this to the Enunciate Mailing List as
well, so hopefully one of those guys can enlighten me if it's a
probably with Enunciate and not GWT/GXT.

Malcolm

On Jul 7, 9:28 am, andreas horst.andrea...@googlemail.com wrote:
 Sorry, it's war/WEB-INF/classes/.

 On 7 Jul., 10:26, andreas horst.andrea...@googlemail.com wrote:



  You do not have to move something out of 'client' packages to have it
  on your server. This is definitely wrong!

  You do have to move classes you want to have on the client or both
  client and server into the client packages (or declare those packages
  in your *.gwt.xml files).

  Since you want your class to be passed from the client to the server
  this class definitely needs to be in your 'client' package. I don't
  know why you get an error on compiling, maybe you can give more
  informations on this one. GWT compiles all Java files (also those in
  'client') to .class files in your war/WEB-INF/src/ folder so all
  classes will be accessible on the server.

  Andreas

  On 7 Jul., 10:02, day_trader mwmcmul...@gmail.com wrote:

   This is where I am rather confused. As when i move it to
   a package which isn't named in the .gwt.xml file I receive
   an error of cannot be resolved to a type. Which is fair enough,
   as I assumed everything in the .gwt.xml was putting the classes
   in 'view' of everything in the application? Or perhaps I'm very
   muddled up!

   Sorry for the continued annoyance! I very much apologise.

   Malcolm

   On Jul 7, 5:11 am, Sunny pratik.sachd...@gmail.com wrote:

Hi day_trader

As far as i can think is that you are trying to pass an object with
the data of the class..

now to make your class go to the server side all you need to do is to
move it to a package that is in the package that is *not* mentioned in
your your_gwt_xml.gwt.xml file as the classes in these
packages,which are mentioned in the gwt.xml file, get ajaxified and
sent on to the client.

Hope this helps.

Sunny.

On Jul 6, 5:04 pm, day_trader mwmcmul...@gmail.com wrote:

 Thanks for the replies thus far.

 That all makes sense. I did have strong doubts about the likelihood of
 what I wanted but as I am not an expert in the field I thought it was
 better to make sure.

 Actually, my problems would be solved quite quickly if I got around my
 initial problem that led to this posting. Basically, there is a class
 in my client side, under myApp.client.models.SomeModel that I need to
 pass to the server. The problem is that the server cannot see this
 class as I get an error when I try to compile it. My question is: How
 do I check if the class is on my SERVER classpath?

 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.



Re: onSuccess() return value other than void?

2010-07-07 Thread day_trader
Oops. That was supposed to say:

a 'PROBLEM' with...

On Jul 7, 9:44 am, day_trader mwmcmul...@gmail.com wrote:
 It could possibly be because I am using Enunciate to develop my
 application with. Here is my complete error:

 [INFO]
 
 [ERROR] BUILD ERROR
 [INFO]
 
 [INFO] Problem assembling the enunciate app.

 Embedded error: Class not found: TreeModel

 I've just tried putting TreeModel into my gwt.xml file : inherits
 name='com.myApp.client.models.TreeModel'/ however this doesn't appear
 to work either. I have posted this to the Enunciate Mailing List as
 well, so hopefully one of those guys can enlighten me if it's a
 probably with Enunciate and not GWT/GXT.

 Malcolm

 On Jul 7, 9:28 am, andreas horst.andrea...@googlemail.com wrote:



  Sorry, it's war/WEB-INF/classes/.

  On 7 Jul., 10:26, andreas horst.andrea...@googlemail.com wrote:

   You do not have to move something out of 'client' packages to have it
   on your server. This is definitely wrong!

   You do have to move classes you want to have on the client or both
   client and server into the client packages (or declare those packages
   in your *.gwt.xml files).

   Since you want your class to be passed from the client to the server
   this class definitely needs to be in your 'client' package. I don't
   know why you get an error on compiling, maybe you can give more
   informations on this one. GWT compiles all Java files (also those in
   'client') to .class files in your war/WEB-INF/src/ folder so all
   classes will be accessible on the server.

   Andreas

   On 7 Jul., 10:02, day_trader mwmcmul...@gmail.com wrote:

This is where I am rather confused. As when i move it to
a package which isn't named in the .gwt.xml file I receive
an error of cannot be resolved to a type. Which is fair enough,
as I assumed everything in the .gwt.xml was putting the classes
in 'view' of everything in the application? Or perhaps I'm very
muddled up!

Sorry for the continued annoyance! I very much apologise.

Malcolm

On Jul 7, 5:11 am, Sunny pratik.sachd...@gmail.com wrote:

 Hi day_trader

 As far as i can think is that you are trying to pass an object with
 the data of the class..

 now to make your class go to the server side all you need to do is to
 move it to a package that is in the package that is *not* mentioned in
 your your_gwt_xml.gwt.xml file as the classes in these
 packages,which are mentioned in the gwt.xml file, get ajaxified and
 sent on to the client.

 Hope this helps.

 Sunny.

 On Jul 6, 5:04 pm, day_trader mwmcmul...@gmail.com wrote:

  Thanks for the replies thus far.

  That all makes sense. I did have strong doubts about the likelihood 
  of
  what I wanted but as I am not an expert in the field I thought it 
  was
  better to make sure.

  Actually, my problems would be solved quite quickly if I got around 
  my
  initial problem that led to this posting. Basically, there is a 
  class
  in my client side, under myApp.client.models.SomeModel that I need 
  to
  pass to the server. The problem is that the server cannot see this
  class as I get an error when I try to compile it. My question is: 
  How
  do I check if the class is on my SERVER classpath?

  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.



Re: onSuccess() return value other than void?

2010-07-07 Thread andreas
The inherits tag is for inheriting GWT modules not for inheriting Java
files or similar (afaik).

You add packages to the GWT translatable sources via source tag:

source path='client'  /

This should be enough assuming your GWT module is in 'com.myApp'.

Andreas

On 7 Jul., 10:44, day_trader mwmcmul...@gmail.com wrote:
 It could possibly be because I am using Enunciate to develop my
 application with. Here is my complete error:

 [INFO]
 
 [ERROR] BUILD ERROR
 [INFO]
 
 [INFO] Problem assembling the enunciate app.

 Embedded error: Class not found: TreeModel

 I've just tried putting TreeModel into my gwt.xml file : inherits
 name='com.myApp.client.models.TreeModel'/ however this doesn't appear
 to work either. I have posted this to the Enunciate Mailing List as
 well, so hopefully one of those guys can enlighten me if it's a
 probably with Enunciate and not GWT/GXT.

 Malcolm

 On Jul 7, 9:28 am, andreas horst.andrea...@googlemail.com wrote:



  Sorry, it's war/WEB-INF/classes/.

  On 7 Jul., 10:26, andreas horst.andrea...@googlemail.com wrote:

   You do not have to move something out of 'client' packages to have it
   on your server. This is definitely wrong!

   You do have to move classes you want to have on the client or both
   client and server into the client packages (or declare those packages
   in your *.gwt.xml files).

   Since you want your class to be passed from the client to the server
   this class definitely needs to be in your 'client' package. I don't
   know why you get an error on compiling, maybe you can give more
   informations on this one. GWT compiles all Java files (also those in
   'client') to .class files in your war/WEB-INF/src/ folder so all
   classes will be accessible on the server.

   Andreas

   On 7 Jul., 10:02, day_trader mwmcmul...@gmail.com wrote:

This is where I am rather confused. As when i move it to
a package which isn't named in the .gwt.xml file I receive
an error of cannot be resolved to a type. Which is fair enough,
as I assumed everything in the .gwt.xml was putting the classes
in 'view' of everything in the application? Or perhaps I'm very
muddled up!

Sorry for the continued annoyance! I very much apologise.

Malcolm

On Jul 7, 5:11 am, Sunny pratik.sachd...@gmail.com wrote:

 Hi day_trader

 As far as i can think is that you are trying to pass an object with
 the data of the class..

 now to make your class go to the server side all you need to do is to
 move it to a package that is in the package that is *not* mentioned in
 your your_gwt_xml.gwt.xml file as the classes in these
 packages,which are mentioned in the gwt.xml file, get ajaxified and
 sent on to the client.

 Hope this helps.

 Sunny.

 On Jul 6, 5:04 pm, day_trader mwmcmul...@gmail.com wrote:

  Thanks for the replies thus far.

  That all makes sense. I did have strong doubts about the likelihood 
  of
  what I wanted but as I am not an expert in the field I thought it 
  was
  better to make sure.

  Actually, my problems would be solved quite quickly if I got around 
  my
  initial problem that led to this posting. Basically, there is a 
  class
  in my client side, under myApp.client.models.SomeModel that I need 
  to
  pass to the server. The problem is that the server cannot see this
  class as I get an error when I try to compile it. My question is: 
  How
  do I check if the class is on my SERVER classpath?

  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.



MVP : model and duplicate

2010-07-07 Thread SimonM
Hi,

I have some troubles with MVP : as I have understood, the model should
just be business objects which are present in a shared package, so
client and server can access them from a GWT point of view.

In a three layered application how do you not duplicate these business
objects, while you have beans used in the business layer ? From what I
understand they are the same objects but in two different layers, so
we need two different classes.

Where is my mistake ?

Simon

-- 
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: onSuccess() return value other than void?

2010-07-07 Thread day_trader
Does not appear to be working even with the source path=''/,
assuming I'm giving the correct path. Is the path of the form of a
directory or package?

On Jul 7, 9:51 am, andreas horst.andrea...@googlemail.com wrote:
 The inherits tag is for inheriting GWT modules not for inheriting Java
 files or similar (afaik).

 You add packages to the GWT translatable sources via source tag:

 source path='client'  /

 This should be enough assuming your GWT module is in 'com.myApp'.

 Andreas

 On 7 Jul., 10:44, day_trader mwmcmul...@gmail.com wrote:



  It could possibly be because I am using Enunciate to develop my
  application with. Here is my complete error:

  [INFO]
  
  [ERROR] BUILD ERROR
  [INFO]
  
  [INFO] Problem assembling the enunciate app.

  Embedded error: Class not found: TreeModel

  I've just tried putting TreeModel into my gwt.xml file : inherits
  name='com.myApp.client.models.TreeModel'/ however this doesn't appear
  to work either. I have posted this to the Enunciate Mailing List as
  well, so hopefully one of those guys can enlighten me if it's a
  probably with Enunciate and not GWT/GXT.

  Malcolm

  On Jul 7, 9:28 am, andreas horst.andrea...@googlemail.com wrote:

   Sorry, it's war/WEB-INF/classes/.

   On 7 Jul., 10:26, andreas horst.andrea...@googlemail.com wrote:

You do not have to move something out of 'client' packages to have it
on your server. This is definitely wrong!

You do have to move classes you want to have on the client or both
client and server into the client packages (or declare those packages
in your *.gwt.xml files).

Since you want your class to be passed from the client to the server
this class definitely needs to be in your 'client' package. I don't
know why you get an error on compiling, maybe you can give more
informations on this one. GWT compiles all Java files (also those in
'client') to .class files in your war/WEB-INF/src/ folder so all
classes will be accessible on the server.

Andreas

On 7 Jul., 10:02, day_trader mwmcmul...@gmail.com wrote:

 This is where I am rather confused. As when i move it to
 a package which isn't named in the .gwt.xml file I receive
 an error of cannot be resolved to a type. Which is fair enough,
 as I assumed everything in the .gwt.xml was putting the classes
 in 'view' of everything in the application? Or perhaps I'm very
 muddled up!

 Sorry for the continued annoyance! I very much apologise.

 Malcolm

 On Jul 7, 5:11 am, Sunny pratik.sachd...@gmail.com wrote:

  Hi day_trader

  As far as i can think is that you are trying to pass an object with
  the data of the class..

  now to make your class go to the server side all you need to do is 
  to
  move it to a package that is in the package that is *not* mentioned 
  in
  your your_gwt_xml.gwt.xml file as the classes in these
  packages,which are mentioned in the gwt.xml file, get ajaxified 
  and
  sent on to the client.

  Hope this helps.

  Sunny.

  On Jul 6, 5:04 pm, day_trader mwmcmul...@gmail.com wrote:

   Thanks for the replies thus far.

   That all makes sense. I did have strong doubts about the 
   likelihood of
   what I wanted but as I am not an expert in the field I thought it 
   was
   better to make sure.

   Actually, my problems would be solved quite quickly if I got 
   around my
   initial problem that led to this posting. Basically, there is a 
   class
   in my client side, under myApp.client.models.SomeModel that I 
   need to
   pass to the server. The problem is that the server cannot see this
   class as I get an error when I try to compile it. My question is: 
   How
   do I check if the class is on my SERVER classpath?

   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.



Re: onSuccess() return value other than void?

2010-07-07 Thread andreas
http://lmgtfy.com/?q=gwt+module+xml+source

http://www.gwtapps.com/doc/html/com.google.gwt.doc.DeveloperGuide.Fundamentals.Modules.ModuleXml.html
http://www.gwtapps.com/doc/html/com.google.gwt.doc.DeveloperGuide.Fundamentals.Modules.html

It's a subpackage of the package your module is located in (your
*.gwt.xml).

Andreas

On 7 Jul., 11:44, day_trader mwmcmul...@gmail.com wrote:
 Does not appear to be working even with the source path=''/,
 assuming I'm giving the correct path. Is the path of the form of a
 directory or package?

 On Jul 7, 9:51 am, andreas horst.andrea...@googlemail.com wrote:



  The inherits tag is for inheriting GWT modules not for inheriting Java
  files or similar (afaik).

  You add packages to the GWT translatable sources via source tag:

  source path='client'  /

  This should be enough assuming your GWT module is in 'com.myApp'.

  Andreas

  On 7 Jul., 10:44, day_trader mwmcmul...@gmail.com wrote:

   It could possibly be because I am using Enunciate to develop my
   application with. Here is my complete error:

   [INFO]
   
   [ERROR] BUILD ERROR
   [INFO]
   
   [INFO] Problem assembling the enunciate app.

   Embedded error: Class not found: TreeModel

   I've just tried putting TreeModel into my gwt.xml file : inherits
   name='com.myApp.client.models.TreeModel'/ however this doesn't appear
   to work either. I have posted this to the Enunciate Mailing List as
   well, so hopefully one of those guys can enlighten me if it's a
   probably with Enunciate and not GWT/GXT.

   Malcolm

   On Jul 7, 9:28 am, andreas horst.andrea...@googlemail.com wrote:

Sorry, it's war/WEB-INF/classes/.

On 7 Jul., 10:26, andreas horst.andrea...@googlemail.com wrote:

 You do not have to move something out of 'client' packages to have it
 on your server. This is definitely wrong!

 You do have to move classes you want to have on the client or both
 client and server into the client packages (or declare those packages
 in your *.gwt.xml files).

 Since you want your class to be passed from the client to the server
 this class definitely needs to be in your 'client' package. I don't
 know why you get an error on compiling, maybe you can give more
 informations on this one. GWT compiles all Java files (also those in
 'client') to .class files in your war/WEB-INF/src/ folder so all
 classes will be accessible on the server.

 Andreas

 On 7 Jul., 10:02, day_trader mwmcmul...@gmail.com wrote:

  This is where I am rather confused. As when i move it to
  a package which isn't named in the .gwt.xml file I receive
  an error of cannot be resolved to a type. Which is fair enough,
  as I assumed everything in the .gwt.xml was putting the classes
  in 'view' of everything in the application? Or perhaps I'm very
  muddled up!

  Sorry for the continued annoyance! I very much apologise.

  Malcolm

  On Jul 7, 5:11 am, Sunny pratik.sachd...@gmail.com wrote:

   Hi day_trader

   As far as i can think is that you are trying to pass an object 
   with
   the data of the class..

   now to make your class go to the server side all you need to do 
   is to
   move it to a package that is in the package that is *not* 
   mentioned in
   your your_gwt_xml.gwt.xml file as the classes in these
   packages,which are mentioned in the gwt.xml file, get ajaxified 
   and
   sent on to the client.

   Hope this helps.

   Sunny.

   On Jul 6, 5:04 pm, day_trader mwmcmul...@gmail.com wrote:

Thanks for the replies thus far.

That all makes sense. I did have strong doubts about the 
likelihood of
what I wanted but as I am not an expert in the field I thought 
it was
better to make sure.

Actually, my problems would be solved quite quickly if I got 
around my
initial problem that led to this posting. Basically, there is a 
class
in my client side, under myApp.client.models.SomeModel that I 
need to
pass to the server. The problem is that the server cannot see 
this
class as I get an error when I try to compile it. My question 
is: How
do I check if the class is on my SERVER classpath?

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.



Re: onSuccess() return value other than void?

2010-07-07 Thread day_trader
I managed to find that after my last post. Whilst they were good links
it still does not seem to work. Something fundamental is wrong but I
can't work out what. I appreciate the help thus far but it appears I'm
in some eternal loop!

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



Hiding module name from curious users

2010-07-07 Thread Aekold
Good day all!

Tell me please what is the best way to hide module name and all
possible branding stuff from users?

The problem is, I am working on application that will be reselled, and
reseller does not want end users to see the name of developer company
at all. At the same time I do not want to cripple java packages and
GWT module name.

The first solution that comes in mind - to separate all my stuff in
library, create project with entry point and simple name that will
inherit from library. But what to do with RPCs then if they have to be
declared in web.xml? Maybe use Guice to use single Guice servlet and
annotation-based mappings for servlets, but not sure if it will
work...

The other solution that comes in mind - to use some fancy obfuscator
that will be smart enough to change modulename.gwt.xml and main.html,
but I find it hard to believe obfuscators can be that smart...

Any way, any suggestions and ideas are appreciated.

-- 
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: I18N and dynamic texts

2010-07-07 Thread arjanDOTTYbroerATgmailDOTTYcom
Thanks for the answer Andre.

I'll try to describe the way i have chosen to solve this.

I have created a TextBundle that is pretty much a simple MapString,
String. I have also created a TextPresenter interface that defines
two methods.

SetString getTextKey()
void setTextBundle(TextBundle texts)

There is also a clientside TextManager that takes a TextPresenter and
does a async call to the server to get the bundle for the keys. When
it gets the bundle the TextManager will call the setTextBundle on the
TextPresenter and leaves it to the TextPresenter to update the view
with new texts.

Regards,
  Arjan

On 5 jul, 22:54, André Moraes andr...@gmail.com wrote:
 Well,

 You can create a class that wraps a JavaScriptObject which contains a
 Dictionary with your keys and values.

 And before starting your application you can make a HTTP Request to
 fetch the JSON data (or part of it).

 Than in the server-side your write some code that send the values from
 the database in the JSON format.

 Of course you should not download all the keys from the DB at the same
 time, but you can download part of it when you need.

 Since you will use the MVP, you can write custom events when the
 download of the JSON strings success or fail.

 On 5 jul, 17:14, arjanDOTTYbroerATgmailDOTTYcom



 arjan.br...@gmail.com wrote:
  Hi there,
  For a client i'm in search for a solution to I18N and dynamic texts.
  Could you help me out in finding the most suitable design strategy for
  this problem?

  The application has some texts like menu items, headers, introduction
  paragraphs and help texts. These texts should come from some database
  tables and should be in different languages. Texts may also very on
  the user role and the company where the user is employed.

  Of course i would like to inject the views (i'm using the MVP pattern
  from the Contacts example) with some class that implements a
  textBundle interface or something like that. The Messages and
  Constants strategy comes very close, but it depends on property files.
  The client really wants to connect to the database with a homebrew MS
  Access client.

  Any suggestions are welcome.

  Regards,
    Arjan

-- 
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: Problem with code which works in compiled mode and fails in hosted mode

2010-07-07 Thread CarToro
Hi Alan,

I think I misled you with my answer. It turns out that the GWT-G3D had
a very similar problem, but not quite the same.

I started using the GWT-GL wrapper, and now I'm having the same
problem as you are!

For some reason, the method
glContext.getUniformLocation(shaderProgram, perspectiveMatrix);

expects an fails because, as you pointed it out, the OOPHM object
expects an int.

Sorry for the mess.

-- 
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: Hiding module name from curious users

2010-07-07 Thread San0
I'm not sure if I got it right...

But you would like to use:

in src/com/foo/bar/Dashboard.gwt.xml:
module rename-to=dashboard  - there is also annotation afaik
in HTML:
script type=text/javascript language=javascript src=dashboard/
dashboard.nocache.js/script
in web.xml:
url-pattern/dashboard/dashboard.rpc/url-pattern

Hope it helps (even if I didnt get the question right ;)).

-- 
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 for sending e-mail using rpc / gwt

2010-07-07 Thread vishwa
Hello Abhi,

I have sent you mail as I was not able to post request here. Your
example above shows file from file system. My requirement is user will
attach the file to email from his desktop. How do we handle this
situation.
Thank you in advance.

Thanks

On May 12, 2:05 am, kozura koz...@gmail.com wrote:
 What have you tried?  For example, have you looked at the plentiful
 example code included withGWT, which includes examples of how to do
 RPC:

 http://code.google.com/webtoolkit/examples/

 And of course the RPC documentation with example code:

 http://code.google.com/webtoolkit/doc/latest/DevGuideServerCommunicat...

 The xxxService and xxxServiceAsync are interfaces, which you implement
 on the server side (xxxService) and call on the client side
 (xxxServiceAsync), as shown in those examples.  Not going to write
 yourapplicationfor you...but certainly willing to help you out with
 specific questions or problems..

 On May 11, 11:02 am, Felipe Guarda felip...@gmail.com wrote:

  Abhi, you could best describe what must be put on every piece of code?
  You sent me a piece of code that must remain in the Class
  EmailServiceImpl server.side. My doubts are now, I need to create some
  kind of interface EmailService and EmailServiceAsync?
  In cliente.side.code how do I send the e-mail? Should I instantiate
  that class?
  Sorry for the stupid questions, I am now getting this world java /
 gwt.

  thanks,

  Felipe

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

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



RequestFactory Considered Mostly Harmless

2010-07-07 Thread Jeff
I've spent a bit of time over last five days reviewing the
RequestFactory and I have to say it rocks.  I started with the
STS-2.3.3-M1 roo generated projects and just kept digging into what
was driving them.  I found a few waves and have been reading through
the code reviews and commits, but perhaps you could answer a few
questions to help my research?

How much is different between what's in the bikeshed project in
gwt-2.1.0-M1 and the M2 classes (small, medium, large)?  I do see a
few interfaces have been removed (ServerOperation and ServerType) - I
just haven't had time to do a deep comparison.  I would suppose it is
safe to just use M2 for playing with this new API?

The best overview I've found was on this wave:
https://wave.google.com/wave/?pli=1#restored:wave:googlewave.com!w%2BWU4iAICkI

Of course I'm eager to see this all come together.

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



the button and its infoLabel problem...

2010-07-07 Thread Shelley
hello all:
   i came across a strange problem which seems quite simple:

   i have a button and a label on a panel, the button has been
registered a listener:

  Button searchButton = new Button( Search );
searchButton.addClickHandler( new ClickHandler()
{
@Override
public void onClick( ClickEvent event )
{
infoLabel.setText(Beginning);
//do a search operation here which will take more than
5 seconds...
infoLabel.setText(Completed...);
}
} );

that's all, but i never see the Beginning“ on the label, but only
see the completed..., seem the label will not refresh it's text
until onClick is  finished? how can i achieved the function that
display beginning... first and Completed... when the operation
completed?

thanks in advance.

-Shelley

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



Who does the bikeshed expense report get populated?

2010-07-07 Thread nalf
I've checked out bikeshed from branch and followed the instructions in
eclipse.README and everything appears to be working. When I go to Run
As -- Web Application -- Expenses.html.it loads fine but
with no data pre-populated..my question is how do I populate this
sample application?

How does Run As -- Web Application --loadExpensesDB.html work?

When run this app, a screen with 5 buttons appears...the last button
is to generate data, but when I click it, I get the following error

Data generation failed
0 Employees
0 Reports
0 Expenses

Bottom line, can anyone point me in the right direction on how to
populate the bikeshed expense report?

If bikeshed is incomplete, is there a hack I can use to populate the
data?

thanks in advance

f

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



Smart Gwt RPC

2010-07-07 Thread thrivikram c
Hi,

I am working on smartgwt, can any one help me, with simple example that show
the smrtgwt working with rpc

Regards,

Raju

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



Write GWT books - Packt Publishing.

2010-07-07 Thread Kshipra Singh
Hi All,

I represent Packt Publishing, the publishers of computer related
books.

We are planning to extend our range of Open Source books based on Java
technology (including GWT) and are currently inviting authors
interested in writing them. This doesn't require any past writing
experience. All that we expect from our authors is a good subject
knowlegde, a passion to share it with others and an ability to
communicate clearly in English.

So, if you love GWT and fancy writing a book, here's an opportunity
for you! Send us your book ideas at aut...@packtpub.com and our
editorial team will be happy to evaluate them. Even if you don't have
a book idea and are simply interested in writing a book, we are still
keen to hear from you.

Packt runs an Open Source royalty scheme so by writing for Packt you
will be giving back to the Open Source Community.

More details about this opportunity are available at:
http://authors.packtpub.com/content/calling-open-source-java-based-technology-enthusiasts-write-packt

Thanks
Kshipra Singh
Author Relationship Manager
Packt Publishing
www.PacktPub.com

Skype: kshiprasingh15
Twitter: http://twitter.com/packtauthors


-- 
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: the button and its infoLabel problem...

2010-07-07 Thread aditya sanas
Is that a RPC call for searching...?

Please explain what are you doing actually for searching...?


--
Aditya


On Wed, Jul 7, 2010 at 1:52 PM, Shelley gsun...@gmail.com wrote:

 hello all:
   i came across a strange problem which seems quite simple:

   i have a button and a label on a panel, the button has been
 registered a listener:

  Button searchButton = new Button( Search );
searchButton.addClickHandler( new ClickHandler()
{
@Override
public void onClick( ClickEvent event )
{
infoLabel.setText(Beginning);
//do a search operation here which will take more than
 5 seconds...
infoLabel.setText(Completed...);
}
} );

 that's all, but i never see the Beginning“ on the label, but only
 see the completed..., seem the label will not refresh it's text
 until onClick is  finished? how can i achieved the function that
 display beginning... first and Completed... when the operation
 completed?

 thanks in advance.

 -Shelley

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



-- 
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: the button and its infoLabel problem...

2010-07-07 Thread andreas
Hey Shelley,

a bit of further information is missing but may it be that you issue
an RPC between infoLabel.setText(Beginning); and
infoLabel.setText(Completed);?

If so you simply forgot the async nature of GWT RPC. Your code in
onClick(...) will not sort of stop or wait until the RPC finishes and
continue afterwards. That's why infoLabel.setText(Completed);
will be immediately executed after infoLabel.setText(Beginning);
and you're simply way to slow to see it.

What you could do instead is call infoLabel.setText(Completed);
in your onSuccess(...) in case I'm right with RPC or in the callback
of whatever request you do for your search operation.

Andreas

On 7 Jul., 10:22, Shelley gsun...@gmail.com wrote:
 hello all:
    i came across a strange problem which seems quite simple:

    i have a button and a label on a panel, the button has been
 registered a listener:

   Button searchButton = new Button( Search );
         searchButton.addClickHandler( new ClickHandler()
         {
             @Override
             public void onClick( ClickEvent event )
             {
                 infoLabel.setText(Beginning);
                 //do a search operation here which will take more than
 5 seconds...
                 infoLabel.setText(Completed...);
             }
         } );

 that's all, but i never see the Beginning“ on the label, but only
 see the completed..., seem the label will not refresh it's text
 until onClick is  finished? how can i achieved the function that
 display beginning... first and Completed... when the operation
 completed?

 thanks in advance.

 -Shelley

-- 
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: MVP : model and duplicate

2010-07-07 Thread Gal Dolber
I think you should avoid duplicate the model objects. Find the way to share
them between all you application or cut off one layer :P

2010/7/7 SimonM simon.manqu...@gmail.com

 Hi,

 I have some troubles with MVP : as I have understood, the model should
 just be business objects which are present in a shared package, so
 client and server can access them from a GWT point of view.

 In a three layered application how do you not duplicate these business
 objects, while you have beans used in the business layer ? From what I
 understand they are the same objects but in two different layers, so
 we need two different classes.

 Where is my mistake ?

 Simon

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




-- 
http://gwtupdates.blogspot.com/

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-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: -XdisableClassMetadata compiler flag - Was [Re: Hiding fully qualified class name sent to the browser]

2010-07-07 Thread Gal Dolber
-XdisableClassMetadata cut off from the compiled code all class metadata as
SomeInstance.getClass().getName(); - this won't be available
*But I am not sure that it will completely remove the classes names from the
compiled code, cause it also uses them on rpc calls
*
2010/7/7 moorsu moo...@gmail.com

 Hi,

 I tried to use the compiler flag *-XdisableClassMetadata* to replace the
 classnames
 as suggested by Olivier. But the classnames still appear in the
 *.cache.html files.

 I tried both in maven POM.xml also in the Google Eclipse Plugin.

 My POM.xml code snippet like this

 plugin
 groupIdorg.codehaus.mojo/groupId
 artifactIdgwt-maven-plugin/artifactId
 version${gwt-maven-plugin.version}/version
 configuration
 disableCastCheckingtrue/disableCastChecking
 disableClassMetadatatrue/disableClassMetadata
 resourcesOnPathfalse/resourcesOnPath
 runTargetsrc/main/webapp/index.html/runTarget
 webappDirectorysrc/main/webapp/webappDirectory
 styleOBF/style
 extraJvmArgs-Xmx2048m -Xss4024k/extraJvmArgs
 /configuration
 executions
 execution
 goals
 goalcompile/goal
 /goals
 /execution
 /executions
 /plugin

 What is the right way to achieve this?

 thanks
 moorsu.



 On Wed, Jun 23, 2010 at 8:50 PM, Olivier Monaco olivier.mon...@free.frwrote:

 Hi,

 If your problem comes from class name included in the JavaScript files
 (and affected to some properties of JavaScript object), you can try to
 use the following optimization:


 http://code.google.com/p/google-web-toolkit/wiki/NoClassMetadataOptimization

 Olivier

 On Jun 22, 3:55 pm, moorsu moo...@gmail.com wrote:
  Hi,
 
  Would it be possible to obfuscate the fully qualified class name which
  is
  visible at the browser if you use firebug?.
 
  I would like to see it as a.b.c.d instead
  com.mycompany.myproduct.mypackage.MyClassName.
  Also I do not use the same domain object as model but use Lists and
  Maps to send data to
  browser.
 
  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.comgoogle-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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.




-- 
http://gwtupdates.blogspot.com/

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-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 get the row number of a flex table

2010-07-07 Thread Professor Vagner
Hello friends,

try this:

ClickHandler clickHandler = new ClickHandler() {

@Override
public void onClick(ClickEvent event) {
com.google.gwt.user.client.ui.HTMLTable.Cell cell =
flexTable.getCellForEvent(event);
Window.alert(Row Index  + cell.getRowIndex());
}
};

Button yourButton1 = new Button(your button 1);
yourButton1.addClickHandler(clickHandler);
flexTable.setWidget(0, 0, yourButton1);

Button yourButton2 = new Button(your button 2);
yourButton2.addClickHandler(clickHandler);
flexTable.setWidget(1, 0, yourButton2);

Button yourButton3 = new Button(your button 3);
yourButton3.addClickHandler(clickHandler);
flexTable.setWidget(2, 0, yourButton3);

Button yourButton4 = new Button(your button 4);
yourButton4.addClickHandler(clickHandler);
flexTable.setWidget(3, 0, yourButton4);


-- 
Professor Vagner

O PLANETA É O MEU PAÍS, E A CIÊNCIA É A MINHA RELIGIÃO ! INDO AO INFINITO E
ALÉM... !!

-- 
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: Google Plugin for Eclipse 1.4 M2

2010-07-07 Thread Jason Parekh
Hi Jaroslav,

I'm pretty sure it's required for some minor changes needed to get Speed
Tracer to open automatically when launched from GPE.  Have you looked into
(or opened a bug about) the profile issues you're having with the dev
channel?

Yes, the clean installation is recommended for milestones only -- mainly
because the code may have a few issues due to its milestone status, so we
wouldn't want your existing stable Eclipse environment to become unusable.
 If this doesn't concern you, feel free to install it over your existing GPE
installation (the upgrade path from GPE 1.3 to GPE 1.4 M2 does indeed work.)

jason

2010/7/2 Jaroslav Záruba jaroslav.zar...@gmail.com

 Sounds great. :)

 Will (is?) it be possible to use Speed Tracer with stable channel Chrome?
 Last time I checked (week ago) development channel Chrome was required;
 unfortunately it does not seem to support profiles. (Ctrl+M did not work
 with --enable-udd-profiles.)

 Also does the clean-Eclipse-installation recommendation apply to the
 milestone only?
 It is kinda weird to d/l and re-install Eclipse because of plugin update.
 :(

 Regads
   J. Záruba

 On Fri, Jul 2, 2010 at 11:21 PM, Jason Parekh jasonpar...@gmail.comwrote:

 Excited about Google Web Toolkit 2.1 
 M2http://googlewebtoolkit.blogspot.com/2010/07/gwt-21-milestone-2-is-now-available.html?
  There's also a new Google Plugin for Eclipse 1.4 M2 to go along with it.
  Check out the new Speed 
 Tracerhttp://code.google.com/webtoolkit/speedtracer/integration -- a 
 simple toolbar button will launch Chrome and Speed Tracer
 to help you identify and fix performance problems in your web apps.  Once
 you find an issue, you can click on a link in Speed Tracer to jump directly
 to that line of code in Eclipse.  There are also many bug fixes, and smaller
 features like the ability to double-click URLs in the Development Mode view
 or the ability to halt an in-progress Deploy to App Engine or GWT compile.

 We recommend you install this on a clean Eclipse installation.  Here are
 the update sites:

- Eclipse Helios (3.6):
http://google-web-toolkit.googlecode.com/svn/2.1.0.M2/eclipse/plugin/3.6
- Eclipse Galileo (3.5):
http://google-web-toolkit.googlecode.com/svn/2.1.0.M2/eclipse/plugin/3.5
- Eclipse Ganymede (3.4):
http://google-web-toolkit.googlecode.com/svn/2.1.0.M2/eclipse/plugin/3.4
- Eclipse Europa (3.3):
http://google-web-toolkit.googlecode.com/svn/2.1.0.M2/eclipse/plugin/3.6

 Enjoy!


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


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


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



DockLayoutPanel and MVP

2010-07-07 Thread xworker
Hi

I want to create a simple app with a DockLayoutPanel with a tree for
navigation west and a content panel center which switches when
selection a node in the tree. I'm using the MVP pattern with
Presenters,Views and ui bindings. All my components work by them selfs
but when I try to load the Dock nothing besides the top is shown.
(north)

this is my ui.xml:

ui:style
.header {
background-color: #00;
}

/ui:style


g:DockLayoutPanel unit='EM'
g:north size='15'
g:Label styleName={style.header}Header/g:Label
/g:north


g:center
g:SplitLayoutPanel
g:west size='15'
contacts:MyTree ui:field=treeView /
/g:west

g:center
contacts:ContactsView 
ui:field='contactsView' /
/g:center
/g:SplitLayoutPanel
/g:center
/g:DockLayoutPanel

What could be wrong?

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.



Re: DockLayoutPanel and MVP

2010-07-07 Thread xworker
Please ignore this... OFC I was using the RootPanel instead of the
RootLayoutPanel.

/A

On 7 Juli, 15:58, xworker blomqvist.andr...@gmail.com wrote:
 Hi

 I want to create a simple app with a DockLayoutPanel with a tree for
 navigation west and a content panel center which switches when
 selection a node in the tree. I'm using the MVP pattern with
 Presenters,Views and ui bindings. All my components work by them selfs
 but when I try to load the Dock nothing besides the top is shown.
 (north)

 this is my ui.xml:

         ui:style
                 .header {
                         background-color: #00;
                 }

         /ui:style

         g:DockLayoutPanel unit='EM'
                 g:north size='15'
                         g:Label styleName={style.header}Header/g:Label
                 /g:north

                 g:center
                         g:SplitLayoutPanel
                                 g:west size='15'
                                         contacts:MyTree ui:field=treeView 
 /
                                 /g:west

                                 g:center
                                         contacts:ContactsView 
 ui:field='contactsView' /
                                 /g:center
                         /g:SplitLayoutPanel
                 /g:center
         /g:DockLayoutPanel

 What could be wrong?

 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.



Re: -XdisableClassMetadata compiler flag - Was [Re: Hiding fully qualified class name sent to the browser]

2010-07-07 Thread Thomas Broyer


On 7 juil, 15:03, Gal Dolber gal.dol...@gmail.com wrote:
 -XdisableClassMetadata cut off from the compiled code all class metadata as
 SomeInstance.getClass().getName(); - this won't be available
 *But I am not sure that it will completely remove the classes names from the
 compiled code, cause it also uses them on rpc calls

...unless you also inherits
name='com.google.gwt.user.RemoteServiceObfuscateTypeNames' /

-- 
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: MVP : model and duplicate

2010-07-07 Thread Stefan Bachert
Hi Simon,

One question is what do you mean with duplicate?

In a client-server environment there is an absolute need to duplicate
the value of an object.
Because you need it on server and client side. The process is called
serialization.
However, you can use the same class on both sides.

 When you client just need a smaller set of attributes than your
domain object offers, you need different classes.
The latter happens when multiple applications are working on the same
domain objects.

There are a lot of object/classes which are some how similar but used
in different technical context( e.g with/without lazy loading from
database)
- objects representing database entities (ENTITES)
- objects representing domain objects/model objects (DomainObject,
Business Objects)
- objects representing a snapshot of domain objects
(DataTransferObjects, ValueObject)


Stefan Bachert
http://gwtworld.de



On 7 Jul., 11:10, SimonM simon.manqu...@gmail.com wrote:
 Hi,

 I have some troubles with MVP : as I have understood, the model should
 just be business objects which are present in a shared package, so
 client and server can access them from a GWT point of view.

 In a three layered application how do you not duplicate these business
 objects, while you have beans used in the business layer ? From what I
 understand they are the same objects but in two different layers, so
 we need two different classes.

 Where is my mistake ?

 Simon

-- 
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: Hiding module name from curious users

2010-07-07 Thread Aekold
Thanx alot! It's exactly what I wanted in the first place!

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



[Announcement] Piriti 0.4 / Totoe 0.1

2010-07-07 Thread Harald Pehl
Hi everyone,
I'm pleased to announce Piriti 0.4. Piriti is a JSON and XML mapper
for GWT. New in this version is the support for namespaces in the XML
document and XPath expressions. Therefore I wrote Totoe - a new XML
parser for GWT which supports namespaces.

Piriti resources:
- Project page: http://code.google.com/p/piriti/
- Features: http://code.google.com/p/piriti/wiki/Features
- Namespaces: http://code.google.com/p/piriti/wiki/Namespaces
- Sample application: http://piriti-sample.appspot.com/

Totoe resources:
- Project page: http://code.google.com/p/totoe/
- Usage: http://code.google.com/p/totoe/wiki/Usage
- Test application: http://code.google.com/p/totoe/wiki/TestApplication

Have fun,
Harald

http://haraldpehl.blogspot.com/

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-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: gwt plugin for firefox 4 beta 1

2010-07-07 Thread Chris Conroy
https://groups.google.com/group/google-web-toolkit/browse_thread/thread/6cd0bfee74691aa3/05e091ae577948af

On Wed, Jul 7, 2010 at 1:20 AM, Vik vik@gmail.com wrote:

 Hie

 I am unable to run gwt stuff on firefox 4 beta 1 due to missing google gwt
 plugin. How to get it?

 Thankx and Regards

 Vik
 Founder
 www.sakshum.com
 www.sakshum.blogspot.com

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




-- 
Chris Conroy
Software Engineer
Google, Atlanta

-- 
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: IS there a way to add buttons to stack panel header?

2010-07-07 Thread Stefan Bachert
Hi,

stackLayoutPanel accepts a widget for the header.
use this instead of stackPanel

Stefan Bachert
http://gwtworld.de

On 6 Jul., 03:05, lou_tribal lou.tri...@gmail.com wrote:
 Hello, I would like to use a stack panel to control a list of data and
 would like to know if there is a way to add buttons to a stack panel
 header? I managed to create the content of the stack panel header with
 a title on the left and a label on the right as button or link but
 I cannot find out how to add any click handler on it. Is there a way
 to put a button in a stackpanel header or should I code my own
 stackpanel supporting that feature? Thank you.

-- 
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: Smart Gwt RPC

2010-07-07 Thread MamboJumbo
you can find it on their foum.

http://forums.smartclient.com/showthread.php?t=10850highlight=gwt+rpc


On Jul 7, 11:56 am, thrivikram c
thrivikramarajarao.cheruk...@gmail.com wrote:
 Hi,

 I am working on smartgwt, can any one help me, with simple example that show
 the smrtgwt working with rpc

 Regards,

 Raju

-- 
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: Urgent!!!!!!!!!!!!!!!!!!!!!!!!!!! GWT 2 Memory leak

2010-07-07 Thread Stefan Bachert
Hi,

IE are known to have memory leaks. There is not much GWT can do .
You can avoid to create and delete DOM-elements. Try to reuse them.
Thats the best you can do with IE.
Or convince your customer to use a modern browser like Safari/Chrome/
Firefox.

Stefan Bachert
http://gwtworld.de

On 6 Jul., 15:53, tarik kandil tarikkan...@gmail.com wrote:
 when I am testing my application on IE6, the problem that I find, is that
 the memory consumption keeps increasing. The same thing for Firefox.
 Besides, I apologize because my web application is running but once  I click
 too many times the memory increases and it crashes. Can you please tell me
 how I can fix this? Thank you in advance. I am using a data table that has
 been developed in JQuery. And it seems that when I go to another page My
 application still references the same datatable. I want to know if there
 exist a way to delete all the doms and divisions that every time I create my
 table. If there exist any methods that I can add on the unload method when I
 detach my widget. Honestly it is an urgent matter, can you help me please?
 Thank you.

 On Tue, Jul 6, 2010 at 1:16 PM, Daniel Le Clere 
 daniel.lecl...@gmail.comwrote:



  Use the new data table widget in gwt 2.1 M2

  On Jul 6, 10:40 pm, metrixon metri...@gmail.com wrote:
   First of all: DON'T PANIC - the possibility of a good answer does
   not correlate with the number of exclamation marks used in the subject
   or text.

   Now concerning your problem:
   your problem description is very vague - essentially you are saying:
   my application does not work - tell me how to fix it. If the memory
   consumption increases on the machine that is hosting your application,
   the problem has nothing to do with GWT at all, since all the
   javascript code is generated at compile time and executed on the
   client side (in the browser).
   Your description indicates that your server side code is leaking
   memory. The best way to fix this problem is to thoroughly analyse your
   application's runtime behaviour by profiling the application with
   tools like JProfiler, Yourkit or the NetBeans Profiler.

   On 6 Jul., 11:12, tarik tarikkan...@gmail.com wrote:

Dear Sir,
We are developing an application using GWT, this application is very
heavy of widgets, we are using a datatable that is developed in
JQuery. We are suffering from a big memory leak. I did not find yet a
way to resolve this problem can anyone help me please. The problem we
have is that the memory on the hosted machine keeps increasing all the
time. Can you please propose anyway to decrease the consumption of
memory on my application? Please it is an urgent matter.
nd
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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
  .
  For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.

 --
 Tarik Kandil
 Consultant Informatique

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



RPC method will be called multiple times instead of one time in development mode????

2010-07-07 Thread crojay78
Hi,

I am observing a strange behaviour in the development mode of my
application. I have a RPC call which will store my data in the
background. But this method will be called 5 times on my server??? I
dont get it why this happens, I checked if I make this call anywhere
else in my code, it should be processed only one time.

Does anyone know why this happens and how I can fix it?

Here is the RPC call, which I am doing in the Appcontroller

eventBus.addHandler(StoreConfigurationEvent.TYPE, new
StoreConfigurationEventHandler() {

public void 
onStoreConfiguration(StoreConfigurationEvent event) {

InstanceMailAgentConfig config =
ConfigDataManager.getInstance().getImaConfig();

rpcService.storeConfigForForm(config, new 
AsyncCallbackBoolean()
{

public void onFailure(Throwable caught) 
{
GWT.log(storing of config 
failed, reason was  +
caught.getMessage());

}

public void onSuccess(Boolean result) {
if (result){
GWT.log(config for 
form  +
ConfigDataManager.getInstance().getImaConfig().getFormid() +
successully stored to database);
eventBus.fireEvent(new 
StatusChangedEvent(true));
}
else{
GWT.log(config form  +
ConfigDataManager.getInstance().getImaConfig().getFormid() +  not
stored to database, check logs... something went wrong);
eventBus.fireEvent(new 
StatusChangedEvent(false));
}

}
});

}
});



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.



Re: RequestFactory Considered Mostly Harmless

2010-07-07 Thread Thomas Broyer


On 7 juil, 11:12, Jeff jeffery.caldw...@gmail.com wrote:
 I've spent a bit of time over last five days reviewing the
 RequestFactory and I have to say it rocks.  I started with the
 STS-2.3.3-M1 roo generated projects and just kept digging into what
 was driving them.  I found a few waves and have been reading through
 the code reviews and commits, but perhaps you could answer a few
 questions to help my research?

 How much is different between what's in the bikeshed project in
 gwt-2.1.0-M1 and the M2 classes (small, medium, large)?  I do see a
 few interfaces have been removed (ServerOperation and ServerType) - I
 just haven't had time to do a deep comparison.

The major change is r8309
http://code.google.com/p/google-web-toolkit/source/detail?r=8309

 I would suppose it is
 safe to just use M2 for playing with this new API?

 The best overview I've found was on this wave:
 https://wave.google.com/wave/?pli=1#restored:wave:googlewave.com!w%2B...

There are still some show-blockers (for us) in M2, mainly the fact
that each server-side object must have a static findXxx() and instance
persist() and remove() methods.

 Of course I'm eager to see this all come together.

So am I!

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



Shared CSS

2010-07-07 Thread Hethcox
Hello,
I have a GUI library that is used by several GWT apps. I would like
the widgets in the library to use a standard sets of CSS classes from
the library so that they don't have to be copied and maintained in the
apps that  use the library. The library is deployed as a jar
currently, but that can change.

I've read a lot of posts on this topic, but none of them seems to do
the trick. My target platform is JBoss and the closest solution I've
found so far is to put the library CSS file in ROOT.war/css at deploy-
time. Is there a build-time trick to get the GWT apps to deploy the
CSS file when it cross-compiles the library widgets?

Cheers,
John

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



Manual RPC using RPC.invokeAndEncodeResponse()

2010-07-07 Thread Bálint Kriván
Hiho!

I'm using Atmosphere and I would like to do streaming with GWT-RPC,
currently I'm having a working example, something like this:

My remoteService:
public interface EventService extends RemoteService {
MyEvent getEvent();
}

So on the server side, I'm doing this:
Method method = this.getClass().getMethod(getEvent, null);
String encoded = RPC.invokeAndEncodeResponse(this, method, null);

Now I can broadcast this encoded string as payload and on the client side,
using this I can get the broadcasted object:
(MyEvent) ssf.createStreamReader(message).readObject();
where message is the payload which was broadcasted and ssf is defined like
this: protected static final SerializationStreamFactory ssf =
GWT.create(EventService.class);

This is great, it works like a charm. Then I've discovered this stuff:
com.google.gwt.user.RemoteServiceObfuscateTypeNames. Which would be great
for production. So I've tested it, and of course it breaks my working stuff,
I've modified like this, but still not working:
Method method = this.getClass().getMethod(getEvent, null);
Stringencoded = RPC.invokeAndEncodeResponse(this, method, null,
getSerializationPolicy(
 http://127.0.0.1:/kfc/;, DD98F5EAEFEC65CD76A0D7BC1E3C8E8D));
where getSerializationPolicy() looks like this:

public SerializationPolicy getSerializationPolicy(String moduleBaseURL,
String strongName) {
String modulePath = null;
if (moduleBaseURL != null) {
try {
modulePath = new URL(moduleBaseURL).getPath();
} catch (MalformedURLException ex) {
System.err.println(Malformed moduleBaseURL:  +
moduleBaseURL);
}
}

SerializationPolicy serializationPolicy = null;

String contextPath = servletRequest.getContextPath();
String contextRelativePath =
modulePath.substring(contextPath.length());
String serializationPolicyFilePath = SerializationPolicyLoader
.getSerializationPolicyFileName(contextRelativePath +
strongName);

InputStream is =
context.getResourceAsStream(serializationPolicyFilePath);
if (is != null) {
try {
serializationPolicy =
SerializationPolicyLoader.loadFromStream(is, null);
} catch (ParseException e) {
e.printStackTrace(System.err);
} catch (IOException e) {
e.printStackTrace(System.err);
}
}

return serializationPolicy;
}
It's merely copied from RemoteServiceServlet IIRC. I have 2 problems: what
can I do to not hardcode strongName for gwt.rpc file and the moduleBaseURL?
And finally, why isn't it working? It still makes payload as I would do
without inheriting com.google.gwt.user.RemoteServiceObfuscateTypeNames module,
which is bad, because the client can't deserialize it and throwing
SerializationException.

If you could help me to solve my problem, I would be grateful, thanks!

-- 
Regards,
Bálint Kriván

-- 
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: MVP : model and duplicate

2010-07-07 Thread SimonM
My bad, you're right. I was confused and forgot about Serialization.

Thank you for pointing it out !

Simon


On 7 juil, 16:19, Stefan Bachert stefanbach...@yahoo.de wrote:
 Hi Simon,

 One question is what do you mean with duplicate?

 In a client-server environment there is an absolute need to duplicate
 the value of an object.
 Because you need it on server and client side. The process is called
 serialization.
 However, you can use the same class on both sides.

  When you client just need a smaller set of attributes than your
 domain object offers, you need different classes.
 The latter happens when multiple applications are working on the same
 domain objects.

 There are a lot of object/classes which are some how similar but used
 in different technical context( e.g with/without lazy loading from
 database)
 - objects representing database entities (ENTITES)
 - objects representing domain objects/model objects (DomainObject,
 Business Objects)
 - objects representing a snapshot of domain objects
 (DataTransferObjects, ValueObject)

 Stefan Bacherthttp://gwtworld.de

 On 7 Jul., 11:10, SimonM simon.manqu...@gmail.com wrote:



  Hi,

  I have some troubles with MVP : as I have understood, the model should
  just be business objects which are present in a shared package, so
  client and server can access them from a GWT point of view.

  In a three layered application how do you not duplicate these business
  objects, while you have beans used in the business layer ? From what I
  understand they are the same objects but in two different layers, so
  we need two different classes.

  Where is my mistake ?

  Simon

-- 
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: gson module problem

2010-07-07 Thread Ahmed Shoeib
i need to convert JSON to/From Java Object

how to do it ?
i don't know how to use this way

On Jul 6, 10:35 pm, eggsy84 jimbob...@hotmail.com wrote:
 Hi all,

 With the latest versions of GWT you don't have to use any other
 libraries.

 GWT now comes with something known as Javascript Overlays that you can
 utilise to convert JSON into Objects.

 See here:

 http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsOver...

 Also I have made a bit of a discussion on my blog here:

 http://eggsylife.co.uk/2010/04/22/gwt-2-jsonp-and-javascript-overlays...

 Hope this helps,

 Eggsy

 On Jul 6, 1:38 pm, Harald Pehl harald.p...@googlemail.com wrote:

  You cannot use gson in GWT. 
  Seehttp://groups.google.com/group/google-gson/browse_thread/thread/6c3d6...
  for more infos.

  If you need a JSON parser for GWT take a look at Piriti (http://
  code.google.com/p/piriti/).

  - Harald

  On 6 Jul., 12:30, Ahmed Shoeib ahmedelsayed.sho...@gmail.com wrote:

   Welcome ,

   i add gson lib version 1.4

   and i face a problem when trying to inherit it in the gwt.xml file

   how i can fix this problem ???

   thanks ,
   ahmed shoeib

-- 
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: -XdisableClassMetadata compiler flag - Was [Re: Hiding fully qualified class name sent to the browser]

2010-07-07 Thread Gal Dolber
Good to know! thanks!

2010/7/7 Thomas Broyer t.bro...@gmail.com



 On 7 juil, 15:03, Gal Dolber gal.dol...@gmail.com wrote:
  -XdisableClassMetadata cut off from the compiled code all class metadata
 as
  SomeInstance.getClass().getName(); - this won't be available
  *But I am not sure that it will completely remove the classes names from
 the
  compiled code, cause it also uses them on rpc calls

 ...unless you also inherits
 name='com.google.gwt.user.RemoteServiceObfuscateTypeNames' /

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




-- 
http://gwtupdates.blogspot.com/

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-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.



FlexTables - store invisible database key in row?

2010-07-07 Thread Magnus
Hi,

I would like to use a FlexTable as a list of users and I need to
attach a user id to each row somehow, in order to identify the user
when a row is selected.

I tried to use a column of width 0px, but this column is visible...

How would you do that?

Thanks
Magnus

-- 
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: Error using my own widgets with UIBinder

2010-07-07 Thread Blessed Geek
There is a design deficiency in UiBinder which I am desperately hoping
GWT architects are putting top priorities at rectifying it - you
cannot, for most and practical cases, use your custom-extended
UiBinderable classes with Uibinder, unless you are willing to kludgify
your use of uibinder.

These are the apparent rules that you need to stick to when making a
class uibinderable:
* A class to be used as a parent node of GWT Widgets must implement
HasWidget,
* and any class that is its candidate child node must be an extension
of GWT Widget class.
* A class to be used as parent node of HTML contents must implement
HasHTML.
* A class to be used as a node for encapsulating text content must
implement HasText?.

These are the problems/issues:
* The GWT compiler ignores HasHTML or HasText when HasWidget is
implemented.
* Therefore, a custom UiBinder node cannot have a mix of Widget nodes
with HTML and Text node.
* Most uibinder classes that came off-the-shelf with GWT engage in
insider-trading - they are allowed to skirt around the above rules by
having their own respective parsers.
* That is why insider-traded uibinderable classes can have nodes like
north, south, top, bottom, ..., etc.
* When you extend an insider-traded class, for the most part, the GWT
compiler would consequently create a temporary java source file that
at some point performs the equivalent of.
ExtendedClass uiname = new instance of OriginalClass.
Now, in Java, you can assign variable of an original class to an
instance of its extended class but not vice versa. I do not know if
this is hard-coded in the GWT compiler or in every individual parser.
* For hierarchically related classes like TabBar - Tab or MenuBar -
Menu, the GWT compiler/uibinder parser attempts to look for the child
class from under the same package, disregarding what you declare as
the package namespace in your extension class.

These are the entry-barriers towards investing efforts to customise
your use of uibinder:
* At current state of affairs, we cannot attain the same level of
karma as the insider-traded uibinderable classes because GWT compiler
does not provide a means for us to insert our own parsers.
* More accurately, we can insert our own parsers if we are willing to
make some minor modification to the GWT compiler source and rebuild
GWT from source.

There are the kludgifications that could mitigate the current state of
affairs with uibinder. For example, you could hijack the namespace
com.google.gwt.user.client.ui when extending classes that have a
hierarchical relationship, which I demonstrate here:
http://h2g2java.blessedgeek.com/2010/04/patch-extending-insider-traded-uibinder.html.
Or hijack the original classes altogether by replacing and appending
the original source with code of your personally preferred behaviour.

However, the elegant solution is of course to rectify the behaviour
and characteristics of the GWT compiler rather than having us resort
to such neck-breaking kludgifications.

I believe the gwt-mosaic uses its own patch for the gwt compiler to
allow it to insert is own parsers: project http://code.google.com/p/gwt-mosaic/

Perhaps, and if I could beg y'all for a pardon, we should come
together and agree on a way to patch gwt compiler and set up a google
code project for this patching, while we let the gwt architects to
peacefully mull over what the best way should be to treat these
uibinder deficiencies. Which means, we would need to mirror every GWT
release with this patched GWT.

-- 
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: FlexTables - store invisible database key in row?

2010-07-07 Thread Subhrajyoti Moitra
one way might be to use a ListUser userList private variable in the
widget..
the state of the flextable is same as the state of the userList.

when a row is selected.. depending on what event selects the row (mouse
over, mouseclick..).. update a private User currentUser object.

public class MyUserListView extends Composite {
private FlexTable userListTable;
private ArrayListUser userList=new ArrayListUser();
private User currentSelection;
public MyUserListView() {
userListTable=new FlexTable();
userListTable.setBorderWidth(1);
DOM.setStyleAttribute(userListTable.getElement(), cursor,
pointer);

initWidget(userListTable);
userListTable.addClickHandler(new ClickHandler() {

@Override
public void onClick(ClickEvent event) {
Cell cellClicked= userListTable.getCellForEvent(event);
int rowIndex=cellClicked.getRowIndex();
currentSelection=userList.get(rowIndex);
Window.alert(U have choosen User:
+currentSelection.getFirstname());

}
});
}
/**
 * This will mostly be defined in the Presenter view interface.
 * @param u
 */
public void addUserToUserTable(User u){
userList.add(u);
int row=userListTable.getRowCount();
userListTable.setWidget(row, 0, new HTML(u.getFirstname()));
userListTable.setWidget(row, 1, new HTML(u.getLastname()));

}

public User getCurrentSelection() {
return currentSelection;
}



}

in the client class that uses this widget,

MyUserListView mul=new MyUserListView();
mul.addUserToUserTable(new User(Firstname1,lastname1));
mul.addUserToUserTable(new User(Firstname2,lastname2));
mul.addUserToUserTable(new User(Firstname3,lastname3));
mul.addUserToUserTable(new User(Firstname4,lastname4));
mul.addUserToUserTable(new User(Firstname5,lastname5));
outerPanel.add(mul);

There are a lot of limitations to this as, u can point out. but it sorts the
basic issue of maintaining the current state of selected row. there should
be better ways to handle this. Experts please comment.

Thanks,
Subhro.

On Wed, Jul 7, 2010 at 10:24 PM, Magnus alpineblas...@googlemail.comwrote:

 Hi,

 I would like to use a FlexTable as a list of users and I need to
 attach a user id to each row somehow, in order to identify the user
 when a row is selected.

 I tried to use a column of width 0px, but this column is visible...

 How would you do that?

 Thanks
 Magnus

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



-- 
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: gson module problem

2010-07-07 Thread Marcus Vinícius Bastos de Andrade
Use JSON in GWT ? It looks like PHP programming!

On Wed, Jul 7, 2010 at 1:41 PM, Ahmed Shoeib
ahmedelsayed.sho...@gmail.comwrote:

 i need to convert JSON to/From Java Object

 how to do it ?
 i don't know how to use this way

 On Jul 6, 10:35 pm, eggsy84 jimbob...@hotmail.com wrote:
  Hi all,
 
  With the latest versions of GWT you don't have to use any other
  libraries.
 
  GWT now comes with something known as Javascript Overlays that you can
  utilise to convert JSON into Objects.
 
  See here:
 
  http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsOver...
 
  Also I have made a bit of a discussion on my blog here:
 
  http://eggsylife.co.uk/2010/04/22/gwt-2-jsonp-and-javascript-overlays...
 
  Hope this helps,
 
  Eggsy
 
  On Jul 6, 1:38 pm, Harald Pehl harald.p...@googlemail.com wrote:
 
   You cannot use gson in GWT. Seehttp://
 groups.google.com/group/google-gson/browse_thread/thread/6c3d6...
   for more infos.
 
   If you need a JSON parser for GWT take a look at Piriti (http://
   code.google.com/p/piriti/).
 
   - Harald
 
   On 6 Jul., 12:30, Ahmed Shoeib ahmedelsayed.sho...@gmail.com wrote:
 
Welcome ,
 
i add gson lib version 1.4
 
and i face a problem when trying to inherit it in the gwt.xml file
 
how i can fix this problem ???
 
thanks ,
ahmed shoeib

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




-- 
Marcus Vinícius Bastos de Andrade
http://twitter.com/mynameisflaw
+55 31 9823-3606

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



problems aligning widgets in DockLayoutPanel

2010-07-07 Thread Thad
I've just completed substituting a DockLayoutPanel for a DockPanel in
one of my application's widgets.  This has *not* been easy, primarily
because of what appear to me to be bugs with the alignment of widgets
along the north, south, east, and west of the DockLayoutPanel.  I have
managed work-arounds.  Let me explain:

In my old code, I could say

DockPanel panel = new DockPanel();
panel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER);
panel.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE);

Now when I use panel.add(upArrowBtn, DockPanel.NORTH) etc. each
button centers.

In the new code, alignment in the cardinal subpanels works differently
between IE7 and Mozilla 3.6.6.  I have found what I believe are bugs
with each.

First, with the north and south directions, this technique works to
center my buttons (which are 16x16 PushButtons):

DockLayoutPanel panel = new DockLayoutPanel(Style.Unit.PX);
panel.addNorth(upArrowBtn, 18.0);
panel.getWidgetContainerElement(upArrowBtn).setAttribute(width,
100%);
panel.getWidgetContainerElement(upArrowBtn).setAttribute(align,
center);

However, this does NOT work with east and west. When I use

panel.addWest(leftArrowBtn, 18.0);
panel.getWidgetContainerElement(leftArrowBtn).setAttribute(height,
100%);
panel.getWidgetContainerElement(leftArrowBtn).setAttribute(verticalAlign,
middle);

the leftArrowBtn is not centered vertically. Looking with Firebug, I
see why:  In the north and south panels, only style height is other
than zero (style=position: absolute; overflow: hidden; left: 0px;
right: 0px; bottom: 0px; height: 18px;), whereas in the east and west
panels, only right is zero (position: absolute; overflow: hidden;
top: 18px; right: 0px; bottom: 18px; width: 18px;).  Moreover,
verticalAlign has NOT been translated from camelcase to hyphenated
vertical-align.  (This also seems the case with IE7 and Safari 4,
but in IE my Developer Toolbar is broke--it won't display.)

I've managed to get east and west to align using a LayoutPanel:

LayoutPanel lpW = new LayoutPanel();
lpW.add(leftArrowBtn);
lpW.setWidgetTopHeight(leftArrowBtn, 50.0, Style.Unit.PCT, 100.0,
Style.Unit.PCT);
panel.addWest(lpW, 18.0);

LayoutPanels also work for north and south in Firefox and Safari, but
are broke in IE7.  When I use

LayoutPanel lpN = new LayoutPanel();
lpN.add(upArrowBtn);
lpN.setWidgetLeftWidth(upArrowBtn, 50.0, Style.Unit.PCT, 100.0,
Style.Unit.PCT);
panel.addNorth(lpN, 18.0);

I get centered buttons in Firefox and Safari, but in IE7, the buttons
are shoved to the far right, as if the left edge of 50% is being
ignored.

So, getWidgetContainerElement for north and south, LayoutPanels for
east and west.  This does not seem right.

-- 
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: NumberFormat on integer

2010-07-07 Thread Patrick Tucker
Nobody knows??

On Jun 23, 10:28 am, Patrick Tucker tucker...@gmail.com wrote:
 Why does GWT not have a getIntegerInstance() in NumberFormat??

 It seems simple enough to implement and it is part of java...

 Is it implemented somewhere else?

 Thanks,
 Pat

-- 
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: NumberFormat on integer

2010-07-07 Thread Isaac Truett
I know that patches are always
welcomehttp://code.google.com/webtoolkit/makinggwtbetter.html
.


On Wed, Jul 7, 2010 at 1:36 PM, Patrick Tucker tucker...@gmail.com wrote:

 Nobody knows??

 On Jun 23, 10:28 am, Patrick Tucker tucker...@gmail.com wrote:
  Why does GWT not have a getIntegerInstance() in NumberFormat??
 
  It seems simple enough to implement and it is part of java...
 
  Is it implemented somewhere else?
 
  Thanks,
  Pat

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



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



Can't install gwt plugin!

2010-07-07 Thread Sean
Having trouble installing the GWT plugin for Eclipse 3.5.  I have
added this site to Eclipse:

http://dl.google.com/eclipse/plugin/3.5

But I get this error when trying to install:

Cannot complete the install because one or more required items could
not be found.
  Software being installed: Google Plugin for Eclipse 3.5
1.3.3.v201006111302
(com.google.gdt.eclipse.suite.e35.feature.feature.group
1.3.3.v201006111302)
  Missing requirement: Google Plugin for Eclipse 3.5
1.3.3.v201006111302
(com.google.gdt.eclipse.suite.e35.feature.feature.group
1.3.3.v201006111302) requires 'org.eclipse.wst.sse.ui 0.0.0' but it
could not be found


Anyone have any ideas?

Thanks

Sean

-- 
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: Google web toolkit libraries...

2010-07-07 Thread خليل ابو عواد
2010/7/5 Mian mianas...@gmail.com

 Hi,
  I like to have a look of libraries of Google Web Toolkit, can any one
 please guide me where can I download the libraries. I will highly
 appreciate.

 Thanks
 Mian.
 مرحبا ،
  أود أن ننظر لها من المكتبات من مجموعة أدوات ويب ، يمكن لأي واحد
 يرجى دليل لي أين يمكنني تحميل المكتبات. وسوف جدا
 نقدر.

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



-- 
www.abuawad@gmail.com

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-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.



Timeline for support of Firefox (Minefield) 4.0b2pre?

2010-07-07 Thread e...@2010
Currently the GWT developer plugin only supports Firefox versions 3.0
and 3.5. Do we know what the timeline is for supporting 4.0b2pre? I
need to use version 4.0 for its support of WebGL.

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.



GWT 2.0.4 caused Class Not Found, TransformerFactoryImpl

2010-07-07 Thread emurmur
I have an Java App Engine project using SDK 1.3.5 and the latest
Restlet GAE 2.0rc4 to implement some restful services.  Everything
worked well (this has been in production for 6 months) until I added
GWT 2.0.4 to the project.  As soon as I check use GWT on in the
control panel in Eclipse (without even adding a module) my services
start to fail in the development server with the following class not
found exception:

Couldn't write the XML representation: Provider
org.apache.xalan.processor.TransformerFactoryImpl not found

This exception happens on the way out of my Restlet, after a GET of a
lists of entities, as it tries to turn my DomRepresentation into the
response payload.  I've found that if I remove the gwt-dev.jar, the
exception does not happen.  Of course, I can't use the development
server if I do that.   Again, this all works fine without GWT.

Here is the relevant parts of the trace:

SEVERE: An exception occured writing the response entity
java.io.IOException: Couldn't write the XML representation: Provider
org.apache.xalan.processor.TransformerFactoryImpl not found
at
org.restlet.ext.xml.DomRepresentation.write(DomRepresentation.java:
287)
at
org.restlet.representation.WriterRepresentation.write(WriterRepresentation.java:
104)
at
org.restlet.engine.http.ServerCall.writeResponseBody(ServerCall.java:
502)
at org.restlet.engine.http.ServerCall.sendResponse(ServerCall.java:
439)
at
org.restlet.ext.servlet.internal.ServletCall.sendResponse(ServletCall.java:
451)
at
org.restlet.engine.http.adapter.ServerAdapter.commit(ServerAdapter.java:
198)
at
org.restlet.engine.http.HttpServerHelper.handle(HttpServerHelper.java:
151)
at
org.restlet.ext.servlet.ServerServlet.service(ServerServlet.java:1037)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
at
org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.jav
a:1166)
at
com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.
java:51)
at
org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.jav
a:1157)
at
com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(Transactio
nCleanupFilter.java:43)
at
org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.jav
a:1157)
at
com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilte
r.java:122)
at
org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.jav
a:1157)
at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:
388)
at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:
216)
at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:
182)
at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:
765)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
418)
at
com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineW
ebAppContext.java:70)
at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
152)
at
com.google.appengine.tools.development.JettyContainerService
$ApiProxyHandler.han
dle(JettyContainerService.java:349)
at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
152)
at org.mortbay.jetty.Server.handle(Server.java:326)

-- 
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: cookies and expiry

2010-07-07 Thread dominic jansen
Hey Nataraj,

i have the same problem.

First of all, your code seems to be correct.
I did it in the same way following the class despriction. When you set
the expiring date to one week (Date expires = new Date(new
Date().getTime() + (1000 * 60 * 60 * 24 * 7));) it will work and you
get a cookie.
I tried it for two and three weeks and it works. For four weeks it fails.

It looks like there is a problem with longer expiring dates
Does anyone have a solution?

Cheers!



2010/6/4 Nataraj M Basappa natara...@gmail.com:
 Hi all,
  Just been pondering my head over this piece of code.

 Date expires = new Date(new Date().getTime() + (1000 * 60 * 60 * 24 *
 30));
 Cookies.setCookie(token, token, expires);
 Cookies.setCookie(secret, secret, expires, localhost, /,
 true);
 Cookies.setCookie(uname, ram, null);

  Can anyone correct me. First two calls completely fail to set
 cookies, last one does set it but expiry time is set to
 current browser session. (looking at googles test code for last call
 should have set to never expire)

 Cheers!

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



creating image file png/jpg file from mapwdiget content

2010-07-07 Thread kiran polisetty
hi all,

 I am stuck up with an issue and looking for a solution. I have
created a map-widget with pushpin overlay-ed on the map.  My client
has a requirement to capture the map-widget content as a PDF file..
so , my content in the map should be as a jpeg file to be captured in
the pdf.. i do not see any api which can get the content of the
mapwidget converted to any image format .. not sure how to go about it
as well. can you please provide me some direction as to how it can be
done.

Thanks
kiran

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



Another feature for 2.1

2010-07-07 Thread Pavel Lahoda
Congrats to the new M2 of 2.1 release of the GWT framework.
Is there any chance that we'll see some progress in the area of making
GWT Java API subset more complete to the original libraries ?
To be specific : is there any chance, that Reflection API gets
implemented ? There are some projects that do just that, so it is
proof it can be done, just none of them is complete (I haven't seen a
project that would allow reflection of annotations in the runtime)
plus it would be great if such a standard feature of the language
makes it into standard distribution. Please, make this happen. 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.



HowTo maintain a dynamic list of widgets to be shown on page

2010-07-07 Thread Nirmal
HI,
I am designing an application with GWT2.1 which is comprised of a page
full of widgets.
The widgets to be shown on the page are based on the values in URL
parameters.

How to go about implementing this?
Primary motives:
1) Only code for the widgets to be displayed should be downloaded.
2) The applicable widget list should be maintained dynamically. So
that the list of widgets to be shown for given set of URL parameters
can be altered without having to redeploy the application.

Regards,
Nirmal

-- 
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: JSON Problem

2010-07-07 Thread Ahmed Shoeib
hi ,
converting the java object to JSON Done using

SONObject json_obj = new JSONObject();
json_obj.put(Member_Email,new JSONString(symbol));
json_obj.put(Member_type, new JSONString(type));

and send it using post method using RequestBuilder

try {
rb.sendRequest(json_obj.toString(), new 
RequestCallback() {
.
.
.
.
}
}

i need to know how to get this object on the server and convert it to
object again

thanks ,
On Jul 6, 10:36 pm, eggsy84 jimbob...@hotmail.com wrote:
 Hi all,

 (As mentioned on the following 
 post:http://groups.google.com/group/google-web-toolkit/browse_thread/threa...
 )

 With the latest versions of GWT you don't have to use any other
 libraries.

 GWT now comes with something known as Javascript Overlays that you can
 utilise to convert JSON into Objects.

 See here:

 http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsOver...

 Also I have made a bit of a discussion on my blog here:

 http://eggsylife.co.uk/2010/04/22/gwt-2-jsonp-and-javascript-overlays...

 Hope this helps,

 Eggsy

 On Jul 6, 1:44 pm, André Moraes andr...@gmail.com wrote:

  I don't think that the Gson project can be used as a GWT module.

  Looks like it is for pure java development, not GWT development.

  Take a look at:http://code.google.com/p/piriti/

  http://code.google.com/p/piriti/This project is a GWT library that provide
  JSON and XML facilities.

  On Tue, Jul 6, 2010 at 5:22 AM, Ahmed Shoeib
  ahmedelsayed.sho...@gmail.comwrote:

   i face this problem
   how i can fix it

   the problem

   /AdminPanel.java'
           [ERROR] Line 139: No source code is available for type
   com.google.gson.Gson; did you forget to inherit a required module?

   Thanks,
   ahmed shoeib

   On Jul 5, 9:33 pm, André Moraes andr...@gmail.com wrote:
The response comes async.

When the response from the server arrives at the client the method
onResponseReceived in the RequestCallback object is called, if an
error hapens the the onErrormethod is called.

The RequestCallback object is the second parameter in the sendRequest
function call.

                                public void onResponseReceived(Request
request, Response response)
{
                                        if (response.getStatusCode()
== 200 || response.getStatusCode()
== 304)
                                        {
                                                JavaScriptObject
responseData =
JsonHelper.stringToJso(response.getText()).cast());
            // use the response
                                        }
                                        else
                                        {
            // invalid response
                                        }
                                }
                                @Override
                                public void onError(Request request,
Throwable exception) {
                                        // error on the resquest
                                }
                        });

On 5 jul, 15:01, Ahmed Shoeib ahmedelsayed.sho...@gmail.com wrote:

 you told me how to send request from client to server

 now i want how yo get data from server to use it in client

 and the data in json

 On Jul 5, 8:12 pm, André Moraes andr...@gmail.com wrote:

  This code is quite simple

  The line:

   re = rb.sendRequest(jsonrpc-call= + JsonHelper.jsoToString(call),
  new RequestCallback()

  prepare a AJAX call to the server and make your javascript object to
   a
  string using JsonHelper.jsoToString.
  In ther server the json-string will be accessible by the parameter
  jsonrpc-call.

  The line:

                                          if (response.getStatusCode()
  == 200 || response.getStatusCode()
  == 304)
                                          {
                                                  JavaScriptObject
  responseData =
  JsonHelper.stringToJso(response.getText()).cast());
              // use the response
                                          }

  get the response wrote by the server and make i availabe as a
  JavaScriptObject.

  You can use the JSONObject class to populate and read a
  JavaScriptObject.

  You can read more about JSON + GWT at:

  http://code.google.com/intl/webtoolkit/webtoolkit/doc/latest/DevGuide...
  andhttp://
   code.google.com/intl/webtoolkit/webtoolkit/articles/using_gwt_...
  On 5 jul, 12:50, Ahmed Shoeib ahmedelsayed.sho...@gmail.com wrote:

   i want a simple example to describe it
   cause i need it as soon as possible

   On Jul 5, 6:18 pm, André Moraes andr...@gmail.com wrote:

                        re = rb.sendRequest(jsonrpc-call= +
   JsonHelper.jsoToString(call),
new RequestCallback() {

              

Re: Timeline for support of Firefox (Minefield) 4.0b2pre?

2010-07-07 Thread Chris Conroy
just 3 hours ago I answered the same question (and the answer was a redirect
to another thread)

see this thread for the answer:
https://groups.google.com/group/google-web-toolkit/browse_thread/thread/6cd0bfee74691aa3/05e091ae577948af

More generally, please run a search on your question before asking it. If
you have follow-up questions, please add them to the existing thread. It
doesn't do anyone much good to have 8 threads answering the same question
over and over.

On Wed, Jul 7, 2010 at 12:58 PM, e...@2010 edwinfsm...@gmail.com wrote:

 Currently the GWT developer plugin only supports Firefox versions 3.0
 and 3.5. Do we know what the timeline is for supporting 4.0b2pre? I
 need to use version 4.0 for its support of WebGL.

 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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.




-- 
Chris Conroy
Software Engineer
Google, Atlanta

-- 
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: Can't install gwt plugin!

2010-07-07 Thread Jason Parekh
Hi Sean,

Check out http://code.google.com/eclipse/docs/faq.html#wstinstallerror , it
should get you past this issue.

jason

On Wed, Jul 7, 2010 at 12:32 PM, Sean m...@seanlangford.com wrote:

 Having trouble installing the GWT plugin for Eclipse 3.5.  I have
 added this site to Eclipse:

 http://dl.google.com/eclipse/plugin/3.5

 But I get this error when trying to install:

 Cannot complete the install because one or more required items could
 not be found.
  Software being installed: Google Plugin for Eclipse 3.5
 1.3.3.v201006111302
 (com.google.gdt.eclipse.suite.e35.feature.feature.group
 1.3.3.v201006111302)
  Missing requirement: Google Plugin for Eclipse 3.5
 1.3.3.v201006111302
 (com.google.gdt.eclipse.suite.e35.feature.feature.group
 1.3.3.v201006111302) requires 'org.eclipse.wst.sse.ui 0.0.0' but it
 could not be found


 Anyone have any ideas?

 Thanks

 Sean

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



-- 
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: Best way to style every other item?

2010-07-07 Thread Sean
I would extend Grid or Vertical Panel and on add or insert, update the
CSS of the new element (Cell or VP Widget) to a questions-odd or
questions-even.

Removing would cause you to remove the widget, then update all the CSS
of the ones below the removed question.

On Jul 6, 5:07 pm, Brett Thomas brettptho...@gmail.com wrote:
 Hey, I want to create a panel with a list of questions, with every other
 question shaded to make it more visible. Advice on the best way to do this
 in GWT?

 One option is the CSS :nth-item tag, but looks like that has incomplete
 support. When Drupal populates a list, it automatically adds a -even or -odd
 class to items; that seems better. Another option is to add a class like
 this manually when you add an item to the list, but then removing an item
 becomes a pain. Maybe there is a better way to do this automatically that I
 am missing? Let me know...

 Thanks for the help,
 Brett

-- 
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: JSON Problem

2010-07-07 Thread Thomas Broyer


On 7 juil, 20:47, Ahmed Shoeib ahmedelsayed.sho...@gmail.com wrote:
 hi ,
 converting the java object to JSON Done using

 SONObject json_obj = new JSONObject();
 json_obj.put(Member_Email,new JSONString(symbol));
 json_obj.put(Member_type, new JSONString(type));

 and send it using post method using RequestBuilder

 try {
                                 rb.sendRequest(json_obj.toString(), new 
 RequestCallback() {
 .
 .
 .
 .

 }
 }

 i need to know how to get this object on the server and convert it to
 object again

Using any JSON parser; see http://json.org/ for a list of Java (or
other language) implementations.
Note that GWT 2.1 M1 and M2 include org.json, needed for the
RequestFactory.

-- 
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: Another feature for 2.1

2010-07-07 Thread Thomas Broyer

On 7 juil, 17:25, Pavel Lahoda plah...@gmail.com wrote:
 Congrats to the new M2 of 2.1 release of the GWT framework.
 Is there any chance that we'll see some progress in the area of making
 GWT Java API subset more complete to the original libraries ?
 To be specific : is there any chance, that Reflection API gets
 implemented ? There are some projects that do just that, so it is
 proof it can be done, just none of them is complete (I haven't seen a
 project that would allow reflection of annotations in the runtime)
 plus it would be great if such a standard feature of the language
 makes it into standard distribution. Please, make this happen. Thanks.

Might I ask why you'd need it? (given that every single class is known
at compile-time, why couldn't you use some generator to do the hard-
work? of it'd probably mean organizing your code differently, but
allowing any kind of reflection at runtime would mean that the GWT
compiler don't prune any field or method from any class, which is
precisely what it does best!)

-- 
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: JSON Problem

2010-07-07 Thread Ahmed Shoeib
i don't know how to get the parameter from RequestBuilder

i tried

rb.sendRequest(json_mem=+json_obj.toString(), new RequestCallback()
{

... }

and on ther server
req.getparameter(json_mem) ;

and the result is null

how i can get the parameter in post method

On Jul 7, 11:08 pm, Thomas Broyer t.bro...@gmail.com wrote:
 On 7 juil, 20:47, Ahmed Shoeib ahmedelsayed.sho...@gmail.com wrote:



  hi ,
  converting the java object to JSON Done using

  SONObject json_obj = new JSONObject();
  json_obj.put(Member_Email,new JSONString(symbol));
  json_obj.put(Member_type, new JSONString(type));

  and send it using post method using RequestBuilder

  try {
                                  rb.sendRequest(json_obj.toString(), new 
  RequestCallback() {
  .
  .
  .
  .

  }
  }

  i need to know how to get this object on the server and convert it to
  object again

 Using any JSON parser; seehttp://json.org/for a list of Java (or
 other language) implementations.
 Note that GWT 2.1 M1 and M2 include org.json, needed for the
 RequestFactory.

-- 
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: Another feature for 2.1

2010-07-07 Thread Jim Douglas
It always annoys me when I post a how do I do X? question, and the
answer is why would you want to do X?, but in this case I really am
confused.  GWT is a development tool for generating static JavaScript
applications; what are you hoping to accomplish with the Java
reflection APIs?

On Jul 7, 1:17 pm, Thomas Broyer t.bro...@gmail.com wrote:
 On 7 juil, 17:25, Pavel Lahoda plah...@gmail.com wrote:

  Congrats to the new M2 of 2.1 release of the GWT framework.
  Is there any chance that we'll see some progress in the area of making
  GWT Java API subset more complete to the original libraries ?
  To be specific : is there any chance, that Reflection API gets
  implemented ? There are some projects that do just that, so it is
  proof it can be done, just none of them is complete (I haven't seen a
  project that would allow reflection of annotations in the runtime)
  plus it would be great if such a standard feature of the language
  makes it into standard distribution. Please, make this happen. Thanks.

 Might I ask why you'd need it? (given that every single class is known
 at compile-time, why couldn't you use some generator to do the hard-
 work? of it'd probably mean organizing your code differently, but
 allowing any kind of reflection at runtime would mean that the GWT
 compiler don't prune any field or method from any class, which is
 precisely what it does best!)

-- 
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: HowTo maintain a dynamic list of widgets to be shown on page

2010-07-07 Thread Thad
I'm not sure what you mean by #1.  GWT widgets are not server-side
objects.  They are created on the client side by client code.

That said, my I'm doing something similar to what you're looking at.
My application can add, edit, delete, and query for database records.
A table accessible by the client has a form definition which is kept
in XML on the server.  My approach is to ask the server (via an RPC
call) for a list of the forms.  Display the list.  When a user picks
one, I make an RPC request for the form.  When it's returned (as
text), I walk though the text and build GUI on the fly:  determine
form height and width and create an AbsolutePanel of that size; for a
text field, create a TextBox; for a label, a Label; for popup
selector, a ListBox; etc.  As each widget is created, place it on the
AbsolutePanel.

On Jul 7, 2:38 pm, Nirmal nirmaljpa...@gmail.com wrote:
 HI,
 I am designing an application with GWT2.1 which is comprised of a page
 full of widgets.
 The widgets to be shown on the page are based on the values in URL
 parameters.

 How to go about implementing this?
 Primary motives:
 1) Only code for the widgets to be displayed should be downloaded.
 2) The applicable widget list should be maintained dynamically. So
 that the list of widgets to be shown for given set of URL parameters
 can be altered without having to redeploy the application.

 Regards,
 Nirmal

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



GWT 2.1 MVP Tutorial

2010-07-07 Thread Marco De Angelis
Hi all.

While GWT team is clearly working hard to promote 2.1 to more mature
releases, some documentation would had been of help in evaluating the
impact of the new design (MVP, Activity, cell-based components) on
existing projects. While experimenting with GWT's recent branches, I
decided to write down a few notes of what I (think I) may have
understood from existing examples.

You may find this first part of the tutorial on the Model/DTO at:

http://www.over-look.com/site/index.php/documentation/techblog/item/gwt-2-1-tutorial-1-mvp-the-model

I hope this introduction may help you, at least until more official
documentation is ready.
Marco

-- 
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: gson module problem

2010-07-07 Thread lineman78
The easiest way to convert between JSON and GWT objects is to use
overlay objects.  Unfortunately, there is no type checking by doing
this, but you get the best performance.  Now, if you need to support
older versions of IE you will need to include json2.js in your
project, but you can use the JSON.parse and JSON.stringify functions
to convert between javascript objects and a JSON string.

http://code.google.com/p/google-web-toolkit/wiki/OverlayTypes


On Jul 7, 10:41 am, Ahmed Shoeib ahmedelsayed.sho...@gmail.com
wrote:
 i need to convert JSON to/From Java Object

 how to do it ?
 i don't know how to use this way

 On Jul 6, 10:35 pm, eggsy84 jimbob...@hotmail.com wrote:

  Hi all,

  With the latest versions of GWT you don't have to use any other
  libraries.

  GWT now comes with something known as Javascript Overlays that you can
  utilise to convert JSON into Objects.

  See here:

 http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsOver...

  Also I have made a bit of a discussion on my blog here:

 http://eggsylife.co.uk/2010/04/22/gwt-2-jsonp-and-javascript-overlays...

  Hope this helps,

  Eggsy

  On Jul 6, 1:38 pm, Harald Pehl harald.p...@googlemail.com wrote:

   You cannot use gson in GWT. 
   Seehttp://groups.google.com/group/google-gson/browse_thread/thread/6c3d6...
   for more infos.

   If you need a JSON parser for GWT take a look at Piriti (http://
   code.google.com/p/piriti/).

   - Harald

   On 6 Jul., 12:30, Ahmed Shoeib ahmedelsayed.sho...@gmail.com wrote:

Welcome ,

i add gson lib version 1.4

and i face a problem when trying to inherit it in the gwt.xml file

how i can fix this problem ???

thanks ,
ahmed shoeib

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



Widget that extends ListBox loses the width attribute in the UiBinder ui.xml file.

2010-07-07 Thread alan
I've got a class which extends ListBox.

public class ListBox extends com.google.gwt.user.client.ui.ListBox
implements HasCaption, HasWidgets {
...
}

In a ui.xml file the width attribute, which works fine for :

g:ListBox width=400px ui:field=searches /

The width attribute works when this is a GWT list box, but not an
extended ListBox. Has anyone seen this. What is the proper way to get
the width attribute working with the extended class also?

-- 
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: MVP Framework in GWT 2.1 M1 ?

2010-07-07 Thread Marco De Angelis
In M2, things have been cleaned up a bit. The framework has been moved
out of bikeshed into user folder, thus promoted into gwt.jar and out
of bikeshed.jar file (Bikeshed contains only the example apps now). If
you're using Roo, you have to fix the POM manually or wait for Roo M2
to be released (should happen this week).

I agree that Expenses contains a lot of hard-coded stuff. I believe
they wanted to show something impressive at Google I/O, focusing on
the core design separations (Activities, Places, RequestFactory,
Records), knowing that the API definition was not 100% clean nor
clear.

Just as an example, the left-side tree View is somewhat crumpled, as
it does not separate RequestFactory queries (which should take place
in an Activity) from the View. Also, Expanses Details views are fired
via direct calls instead of Places events, and so on.
But I am confident that the example will improve alongside with the
framework. Personally, I'm diving into what's available today. It's
better than nothing and gives me a good heads up on the changes.

On Jun 22, 9:33 am, Chris Boertien chris.boert...@gmail.com wrote:
 The one half of Expenses isnt even MVP. The one you access via
 Expenses.html is a hard-wired app. That is the one they were showing
 at Google I/O.

 The other part, the Scaffold app I believe is what Roo spits out found
 under Scaffold.html. I'm not sure as to just how much of that has been
 hand tweaked and how much is straight up codegen. Of course, all of
 that stuff is still under heavy development.



 On Mon, Jun 21, 2010 at 11:00 PM, M Shannon mshan...@gmail.com wrote:
  I've been taking a good look at this 2.1 MVP stuff - and in particular
  the Expenses example (rev 8291)

 http://google-web-toolkit.googlecode.com/svn/branches/2.1/bikeshed/sr...

  I'm certainly not the best developer/architect going round, but I like
  to think I'm pretty good at reading people's existing code/examples
  and adapting/running with them as if they were my own.
  This expenses example is a nightmare to follow.  The bindings/wiring
  of all the pieces both client and server is nuts.

  I sure hope Spring Roo can generate an excellent CRUD starter
  application for me based off my domain objects and their
  relationships, cause there is no way in the world I could have come up
  with anything like that application.

  I thought hand-crafiting files that comprise a JSF app was difficult,
  but this thing takes the cake. I sure hope the IDE has some new tools
  to support this stuff.

  On May 27, 11:38 pm, Anton Tanasenko atg.sleepl...@gmail.com wrote:
  Actually, it is on the javadoc page 
  athttp://google-web-toolkit.googlecode.com/svn/javadoc/2.1/index.html
  under com.google.gwt.app.place package.
  It also includes PlaceManager, Activity (presenter) mappings

  Bikeshed example, though clumpy, sheds plenty of light on how it can
  be used.

  On May 27, 3:24 pm, pjulien pjul...@gmail.com wrote:

   It exists but the javadoc wasn't included for some reason.  A
   presenter is called Activity.  I'm guessing to make it more familiar
   to Android development.

   You can see the code for activities and places here:

  http://code.google.com/p/google-web-toolkit/source/browse/branches/2

   On May 20, 4:44 am, metrixon metri...@gmail.com wrote:

I just downloaded the M1 release ofGWT2.1and was wondering where I
can find more information on the MVP framework that will be part 
ofGWT2.1.
I looked around the Javadocs but did not find anything like it. Is the
MVP framework already part of the M1 release ?

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

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

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@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: gson module problem

2010-07-07 Thread Ahmed Shoeib
i face this problem

Initializing AppEngine server
07/07/2010 10:57:34 م com.google.apphosting.utils.jetty.JettyLogger
info
INFO: Logging to JettyLogger(null) via
com.google.apphosting.utils.jetty.JettyLogger
07/07/2010 10:57:35 م
com.google.apphosting.utils.config.AppEngineWebXmlReader
readAppEngineWebXml
INFO: Successfully processed C:\Documents and Settings\Sho3ebovich\My
Documents\workspace\EventBuddy\war\WEB-INF/appengine-web.xml
07/07/2010 10:57:35 م
com.google.apphosting.utils.config.AbstractConfigXmlReader
readConfigXml
INFO: Successfully processed C:\Documents and Settings\Sho3ebovich\My
Documents\workspace\EventBuddy\war\WEB-INF/web.xml
The server is running at http://localhost:/
{Member_Email:t...@example.com, Member_type:Organizer}
07/07/2010 10:58:13 م com.google.apphosting.utils.jetty.JettyLogger
warn
WARNING: Error for /eventbuddy/member
java.lang.UnsatisfiedLinkError:
com.apphuset.eventbuddy.server.MembersServiceImpl.asArrayOfMember_JSON(Ljava/
lang/String;)Lcom/google/gwt/core/client/JsArray;
at
com.apphuset.eventbuddy.server.MembersServiceImpl.asArrayOfMember_JSON(Native
Method)
at
com.apphuset.eventbuddy.server.MembersServiceImpl.doPost(MembersServiceImpl.java:
43)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:713)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
511)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1166)
at
com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:
51)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1157)
at
com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:
43)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1157)
at
com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java:
122)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1157)
at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:
388)
at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:
216)
at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:
182)
at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:
765)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
418)
at
com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:
70)
at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
152)
at com.google.appengine.tools.development.JettyContainerService
$ApiProxyHandler.handle(JettyContainerService.java:349)
at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
152)
at org.mortbay.jetty.Server.handle(Server.java:326)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
542)
at org.mortbay.jetty.HttpConnection
$RequestHandler.content(HttpConnection.java:938)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:755)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:
409)
at org.mortbay.thread.QueuedThreadPool
$PoolThread.run(QueuedThreadPool.java:582)


how to solve it ?

On Jul 8, 12:54 am, lineman78 linema...@gmail.com wrote:
 The easiest way to convert between JSON and GWT objects is to use
 overlay objects.  Unfortunately, there is no type checking by doing
 this, but you get the best performance.  Now, if you need to support
 older versions of IE you will need to include json2.js in your
 project, but you can use the JSON.parse and JSON.stringify functions
 to convert between javascript objects and a JSON string.

 http://code.google.com/p/google-web-toolkit/wiki/OverlayTypes

 On Jul 7, 10:41 am, Ahmed Shoeib ahmedelsayed.sho...@gmail.com
 wrote:

  i need to convert JSON to/From Java Object

  how to do it ?
  i don't know how to use this way

  On Jul 6, 10:35 pm, eggsy84 jimbob...@hotmail.com wrote:

   Hi all,

   With the latest versions of GWT you don't have to use any other
   libraries.

   GWT now comes with something known as Javascript Overlays that you can
   utilise to convert JSON into Objects.

   See here:

  http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsOver...

   Also I have made a bit of a discussion on my blog here:

  http://eggsylife.co.uk/2010/04/22/gwt-2-jsonp-and-javascript-overlays...

   Hope this helps,

   Eggsy

   On Jul 6, 1:38 pm, Harald Pehl harald.p...@googlemail.com wrote:

You cannot use gson in GWT. 

Re: gson module problem

2010-07-07 Thread Ahmed Shoeib
The Problem line

java.lang.UnsatisfiedLinkError:
com.apphuset.eventbuddy.server.MembersServiceImpl.asArrayOfMember_JSON(Ljava/
lang/String;)Lcom/google/gwt/core/client/JsArray;
at
com.apphuset.eventbuddy.server.MembersServiceImpl.asArrayOfMember_JSON(Native
Method)
at
com.apphuset.eventbuddy.server.MembersServiceImpl.doPost(MembersServiceImpl.java:
43)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:713)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
511)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1166)
at
com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:
51)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1157)
at
com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:
43)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1157)
at
com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java:
122)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1157)
at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:
388)
at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:
216)
at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:
182)
at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:
765)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
418)
at
com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:
70)
at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
152)
at com.google.appengine.tools.development.JettyContainerService
$ApiProxyHandler.handle(JettyContainerService.java:349)
at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
152)
at org.mortbay.jetty.Server.handle(Server.java:326)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
542)
at org.mortbay.jetty.HttpConnection
$RequestHandler.content(HttpConnection.java:938)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:755)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:
409)
at org.mortbay.thread.QueuedThreadPool
$PoolThread.run(QueuedThreadPool.java:582)



On Jul 7, 8:29 pm, Marcus Vinícius Bastos de Andrade
mynameisf...@gmail.com wrote:
 Use JSON in GWT ? It looks like PHP programming!

 On Wed, Jul 7, 2010 at 1:41 PM, Ahmed Shoeib
 ahmedelsayed.sho...@gmail.comwrote:



  i need to convert JSON to/From Java Object

  how to do it ?
  i don't know how to use this way

  On Jul 6, 10:35 pm, eggsy84 jimbob...@hotmail.com wrote:
   Hi all,

   With the latest versions of GWT you don't have to use any other
   libraries.

   GWT now comes with something known as Javascript Overlays that you can
   utilise to convert JSON into Objects.

   See here:

  http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsOver...

   Also I have made a bit of a discussion on my blog here:

  http://eggsylife.co.uk/2010/04/22/gwt-2-jsonp-and-javascript-overlays...

   Hope this helps,

   Eggsy

   On Jul 6, 1:38 pm, Harald Pehl harald.p...@googlemail.com wrote:

You cannot use gson in GWT. Seehttp://
  groups.google.com/group/google-gson/browse_thread/thread/6c3d6...
for more infos.

If you need a JSON parser for GWT take a look at Piriti (http://
code.google.com/p/piriti/).

- Harald

On 6 Jul., 12:30, Ahmed Shoeib ahmedelsayed.sho...@gmail.com wrote:

 Welcome ,

 i add gson lib version 1.4

 and i face a problem when trying to inherit it in the gwt.xml file

 how i can fix this problem ???

 thanks ,
 ahmed shoeib

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

 --
 Marcus Vinícius Bastos de Andradehttp://twitter.com/mynameisflaw
 +55 31 9823-3606

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

Re: create web service inside GWT project

2010-07-07 Thread Jeff Chimene
On 07/05/2010 02:28 PM, Arian Prins wrote:
 Hello people,
 I have a hard time figuring out what would be the best approach for my
 problem.
 
 I'd like to communicate some info from the server (side logic) to an
 MS-Office macro. I could always use ODBC to let the office macro query
 the database directly but that just feels like a kludge. I've got a
 lot of objects in my application in which a lot of processing is
 already implemented.
 
 So, I figure, the best way would be to create a web service (SOAP?)
 inside the gwt server-side implementation that can be queried by
 outside applications.
 
 I've done a lot of searching, but haven't really found any definitive
 way that would be best. Should I use an existing RPC/SOAP/JSON library
 and try to integrate it into GWT's structure (how to configure
 web.xml? etc. etc.)? Is there something already provided by google or
 in de code projects?
 
 Any thoughts and tips would be greatly appreciated.
 
 Arian Prins.
 
 

Hi Arian,

I've written some fairly complex Office macros.

I'm not sure where GWT fits into your application. In your case, the
client side is MS Office macros, not a browser JavaScript instance. The
server side can be whatever you wish. You will probably want to use
XMLHTTPRequests (XHR) to communicate with the server; I think SOAP is a
bit heavy-handed to implement in an Office macro.

I doubt RPC will work for you, as the serialization logic is also a bit
much for an Office macro.

This leaves JSON, application-specific XML (as opposed to the
generalized SOAP DTD), CSV.

If you are planning to use the Google App Engine, I'm not sure how to
get Office macros to use Java RPC.

I'm leaning towards the XHR solution: it's lightweight, can be tested
independently of the macro environment, and straightforward to mock
inside the macro environment.

-- 
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: gson module problem

2010-07-07 Thread lineman78
Looks like you are using client side code on the server.  You need to
make sure you have a clear understanding of how you are handling
communications.  It looks to me that you have JSNI is a server class.
Remember, anything that has a nitave method cannot be loaded by the
server unless that native method is JNI not JSNI.  My preferred method
of communication is to use Jersey(JAX-RS) for the server-side JSON
generation and use the RequestBuilder/OverlayType method for the
client side.  This is not the only way to do this, this is just the
method that I have chosen to use the most modular and open approach.
If you are only going to be communicating back and forthe between your
own application, why not use GWT's RPC.  But if you are set on JSON, I
would suggest not writing any client code first, just the server and
use your browser to access the webservice and ensure that you are
indeed getting the expected JSON, then once you have verified that you
can use RequestBuilder to access the same URL and get the JSON as a
string at which point you can process it into an overlay type and use
it within GWT.

On Jul 7, 5:05 pm, Ahmed Shoeib ahmedelsayed.sho...@gmail.com wrote:
 The Problem line

 java.lang.UnsatisfiedLinkError:
 com.apphuset.eventbuddy.server.MembersServiceImpl.asArrayOfMember_JSON(Ljava/
 lang/String;)Lcom/google/gwt/core/client/JsArray;
         at
 com.apphuset.eventbuddy.server.MembersServiceImpl.asArrayOfMember_JSON(Native
 Method)
         at
 com.apphuset.eventbuddy.server.MembersServiceImpl.doPost(MembersServiceImpl.java:
 43)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:713)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
         at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
 511)
         at org.mortbay.jetty.servlet.ServletHandler
 $CachedChain.doFilter(ServletHandler.java:1166)
         at
 com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:
 51)
         at org.mortbay.jetty.servlet.ServletHandler
 $CachedChain.doFilter(ServletHandler.java:1157)
         at
 com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:
 43)
         at org.mortbay.jetty.servlet.ServletHandler
 $CachedChain.doFilter(ServletHandler.java:1157)
         at
 com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java:
 122)
         at org.mortbay.jetty.servlet.ServletHandler
 $CachedChain.doFilter(ServletHandler.java:1157)
         at
 org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:
 388)
         at
 org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:
 216)
         at
 org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:
 182)
         at
 org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:
 765)
         at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
 418)
         at
 com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:
 70)
         at
 org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
 152)
         at com.google.appengine.tools.development.JettyContainerService
 $ApiProxyHandler.handle(JettyContainerService.java:349)
         at
 org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
 152)
         at org.mortbay.jetty.Server.handle(Server.java:326)
         at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
 542)
         at org.mortbay.jetty.HttpConnection
 $RequestHandler.content(HttpConnection.java:938)
         at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:755)
         at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
         at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
         at
 org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:
 409)
         at org.mortbay.thread.QueuedThreadPool
 $PoolThread.run(QueuedThreadPool.java:582)

 On Jul 7, 8:29 pm, Marcus Vinícius Bastos de Andrade

 mynameisf...@gmail.com wrote:
  Use JSON in GWT ? It looks like PHP programming!

  On Wed, Jul 7, 2010 at 1:41 PM, Ahmed Shoeib
  ahmedelsayed.sho...@gmail.comwrote:

   i need to convert JSON to/From Java Object

   how to do it ?
   i don't know how to use this way

   On Jul 6, 10:35 pm, eggsy84 jimbob...@hotmail.com wrote:
Hi all,

With the latest versions of GWT you don't have to use any other
libraries.

GWT now comes with something known as Javascript Overlays that you can
utilise to convert JSON into Objects.

See here:

   http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsOver...

Also I have made a bit of a discussion on my blog here:

   http://eggsylife.co.uk/2010/04/22/gwt-2-jsonp-and-javascript-overlays...

Hope this helps,

Eggsy

On Jul 6, 1:38 pm, Harald Pehl harald.p...@googlemail.com wrote:

 You 

Re: How to access particular text in RichText area to read back attributes or alter them?

2010-07-07 Thread Jeff Chimene
On 07/05/2010 07:28 PM, UncleBob wrote:
 I sent a version of the note below to the GWT Rich-Text Editor group.
 But then I noticed that there are a number of discussions of RichText
 in this much larger group.  I need all the help I can get  ;-)
 
 
 I would like some guidance on how to go about designing an app that
 would do things such as the following:
 
 The server downloads text, as an array (Collection) of tokens
 (Strings), which would be displayed in the text area.
 Other arrays of information would be downloaded that could be used to
 decorate the text.
 For example, say we downloaded information about which of the tokens
 or token groups are the names of companies.
 The user would have a menu that includes the item Companies.
 When that menu item is selected, the text for the companies would be
 highlighted in red.

My initial response was Don't use a RichTextArea (RTA) for this. After
re-reading the post, I think what you want to accomplish is outside the
scope of the GWT RTA widget.

Have you looked at TinyMCE? http://en.wikipedia.org/wiki/Tinymce

It's probably going to give you more horsepower than the GWT RTA.


 The basic question for this type of app is: How do I access particular
 Strings and alter their styling?
 Is DOM the way to go?
 In the dual problem, how would I discover a String that the user has
 selected and designated as a company - one that was not on the
 original list?
 The String chosen would be returned to the server to update its list
 of company names.
 
 This type of application is typical of many apps that would be of
 great benefit to researchers in natural language processing.
 There are about 600 members of the mailing list at my site,
 bionlp.org, many of who would be interested in such apps.
 
 Any and all suggestions, leads, etc., most welcome.
 
- Bob
 
 

-- 
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: Urgent!!!!!!!!!!!!!!!!!!!!!!!!!!! GWT 2 Memory leak

2010-07-07 Thread lineman78
If it is an obvious problem in your code, you should be seeing memory
leaks in all browsers(which I believe you said you have).  If that is
the case, you should be able to use the Speed Tracer plugin for
chrome.  It tells you how many instances of which objects are being
created so that you can try and debug where you are holding a
reference to the object.  Remember, in javascript there is no concept
of weak or soft references, so you have to be holding on to an object
somewhere in the DOM in order for there to be a memory leak.  A memory
leak is not something that people here will be able to help you solve
directly, we can only give you pointers on ways to narrow down the
search.  Also, if you are using flash, it is a common source of memory
leaks and it would explain the leaks persisting beyond the single
page(this could also be explained by a Java applet because only one
JVM is used throughout the entire browser).

On Jul 6, 6:15 pm, tarik kandil tarikkan...@gmail.com wrote:
 First, I would like to mention that I am using GWT2.0. I have a problem in a
 data table that I have developed using JQuery, I have many widgets, and I am
 using gwittir binding. Besides, I am using bindable collection in my
 datatable. After analysing my application, I found that there are some
 elements that are not deleted in IE6. Also, the memory keeps incrceasing all
 the time. Even if i change to a new page or i refresh the memory keeps
 increasing when i filtre or go to another page or I do any action(memory
 leak). Can you please tell me how to avoid the increasing of the memory
 through the whole application, add methods to delete elements when i go from
 page to page, or something like this. Thank you in advance.

 2010/7/6 Matthias Groß f0r7y@googlemail.com



  Hi,

  I doubt that you will get any definite answers if you don't provide a
  more thorough analysis of your problem.

  Generally just try to release all references to heavy-weight objects
  you don't need anymore as soon as possible. This holds true especially
  for global instances, e.g. singletons.
  If that doesn't help consider using weak references (see
 http://java.sun.com/j2se/1.4.2/docs/api/java/lang/ref/WeakReference.html).

  /Matthias

  P.S.:
  Also use less exclamation marks please.

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

 --
 Tarik Kandil
 Consultant Informatique

-- 
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: Smart Gwt RPC

2010-07-07 Thread Blessed Geek
When I work with smartgwt, there is no difference between RPC in GWT
and smartgwt.

Are you new to GWT too?

Perhaps, you do not realise that smartgwt is not part of gwt.

So your question should be looking for examples of RPC in GWT. Once
you understand RPC in GWT, you should have no problem using RPC with
smartgwt.

-- 
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: remove old javascript file

2010-07-07 Thread bhomass
I don't understand something. according to you, none of the generated
js would fall under cache for sometimes. That means all the js files
except nocache.js would be cached forever. and GWT takes care that new
file names will be generated when this type filed change. By this
logic, there could never be any stale js problem. yet, I see in
repeated cases, where someone's browser displays old app design, and
clearing browser cache brings up the latest. How can that be?

On Jun 26, 6:44 pm, André Severo Meira andrex1...@gmail.com wrote:
 Nice!

 2010/6/26 bhomass bhom...@gmail.com

  do you mean to set a limited cache lifetime or to not cache at all?

  I do normally want the javascript files to be cached for performance
  purposes.

  On Jun 17, 10:02 pm, Sripathi Krishnan sripathi.krish...@gmail.com
  wrote:
   No, you can't do that. But if you set appropriate cache headers, there is
   never a need to delete old files.

   --Sri

   On 18 June 2010 06:10, bhomass bhom...@gmail.com wrote:

is there any way to programmatically get user browser to delete all
its cached javascript files in order to push down new ones?

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



Re: the button and its infoLabel problem...

2010-07-07 Thread Shelley
thank Andreas and Aditya for your explanation.

however the problem has nothing to do with RPC, the search operation
i mentioned above is simply a local operation such as sort a large
chunk of data which will take seconds to completed. meanwhile the
client is unresponsive until the click OnClick() is completed, you can
simply simulate this situation by doing a  while loop.

is there other way i can see the beginning... ? or GWT has the
ability to make UI responsive when it doing a time-consuming operation
in client?

thanks.

-Shelley


On Jul 7, 8:44 pm, andreas horst.andrea...@googlemail.com wrote:
 HeyShelley,

 a bit of further information is missing but may it be that you issue
 an RPC between infoLabel.setText(Beginning); and
 infoLabel.setText(Completed);?

 If so you simply forgot the async nature of GWT RPC. Your code in
 onClick(...) will not sort of stop or wait until the RPC finishes and
 continue afterwards. That's why infoLabel.setText(Completed);
 will be immediately executed after infoLabel.setText(Beginning);
 and you're simply way to slow to see it.

 What you could do instead is call infoLabel.setText(Completed);
 in your onSuccess(...) in case I'm right with RPC or in the callback
 of whatever request you do for your search operation.

 Andreas

 On 7 Jul., 10:22,Shelleygsun...@gmail.com wrote:



  hello all:
     i came across a strange problem which seems quite simple:

     i have a button and a label on a panel, the button has been
  registered a listener:

    Button searchButton = new Button( Search );
          searchButton.addClickHandler( new ClickHandler()
          {
              @Override
              public void onClick( ClickEvent event )
              {
                  infoLabel.setText(Beginning);
                  //do a search operation here which will take more than
  5 seconds...
                  infoLabel.setText(Completed...);
              }
          } );

  that's all, but i never see the Beginning“ on the label, but only
  see the completed..., seem the label will not refresh it's text
  until onClick is  finished? how can i achieved the function that
  display beginning... first and Completed... when the operation
  completed?

  thanks in advance.

  -Shelley

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



Have one of the edge widget of a DockLayoutPanel overflow into the center

2010-07-07 Thread PhilBeaudoin
I use a DockLayoutPanel to split my screen in a left navigation column
and a center area. My problem is that the app skinning requires that a
selected tab in the navigation column overwrite a 1 pixel wide
column of the central area. Is there a way to setup my DockLayoutPanel
to do this?

(Cross-posted to Stack Overflow.)

-- 
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: Smart Gwt RPC

2010-07-07 Thread thrivikram c
Yes, i am new to gwt,
and i understands the flow of rpc

Thanks
On Thu, Jul 8, 2010 at 7:08 AM, Blessed Geek blessedg...@gmail.com wrote:

 When I work with smartgwt, there is no difference between RPC in GWT
 and smartgwt.

 Are you new to GWT too?

 Perhaps, you do not realise that smartgwt is not part of gwt.

 So your question should be looking for examples of RPC in GWT. Once
 you understand RPC in GWT, you should have no problem using RPC with
 smartgwt.

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



-- 
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: [gwt-contrib] JSIO vs Overlay Types

2010-07-07 Thread Eric Ayers
The author of that library has plans to migrate to overlay types.
We've got a change branch going on
http://code.google.com/p/gwt-google-apis under changes/vinays/.

http://code.google.com/p/gwt-google-apis/source/browse/#svn/changes/vinays/gwt-google-maps-v3

On Tue, Jul 6, 2010 at 10:08 PM, Daniel Bell daniel.r.b...@gmail.com wrote:
 Thanks for the feedback. The reason I'm not using the official Maps API is
 that I need to use version 3 of the JavaScript API, which isn't supported by
 the GWT Google APIs project yet. The more developed of the GWT Maps
 Libraries (http://code.google.com/p/gwt-google-maps-v3/) uses JSIO for
 everything, rather than overlay types, so I'm concerned about performance in
 the case that lots (hundreds or so) of objects are being rendered on the
 map. At the moment it's looking like I'll contribute some changes there.
 Thanks again,
 Daniel

 On 7 July 2010 03:20, Eric Ayers zun...@google.com wrote:

 Overlay types are the way to go.  The gwt-maps API use jsio because it
 predates overlay types.

 On Jul 6, 2010 11:18 AM, John Tamplin j...@google.com wrote:
  On Tue, Jul 6, 2010 at 3:08 AM, Daniel Bell daniel.r.b...@gmail.com
  wrote:
 
  I have a question for you about Overlay Types and the JSIO library.
  I'm working on a GWT interface to the Google Maps JavaScript API, and
  am wondering about the difference in performance between the two
  approaches.
  With JSIO I've been using wrapper objects that each contain an
  instance of a JavaScriptObject being wrapped, and contain a reference
  to a singleton instance of the flyweight wrapper. My guess is that the
  performance would be better if I used Overlay Types instead, but I am
  just guessing. Do you know (roughly) what the difference in
  performance is between the two approaches?
 
 
  First question - why aren't you using the official GWT APIs for Maps
  instead
  of writing your own? http://code.google.com/p/gwt-google-apis/ If there
  is
  something you need that isn't included, why not contribute to that
  rather
  than create your own from scratch?
 
  Overlay types are a bit more efficient and don't require a generator
  running
  which makes DevMode faster, but I don't think there is a lot of
  difference.
 
  --
  John A. Tamplin
  Software Engineer (GWT), Google
 
  --
  http://groups.google.com/group/Google-Web-Toolkit-Contributors

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

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



-- 
Eric Z. Ayers
Google Web Toolkit, Atlanta, GA USA

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


Re: [gwt-contrib] JSIO vs Overlay Types

2010-07-07 Thread Eric Ayers
Oh, and I meant to say that your contributions are welcome!

On Wed, Jul 7, 2010 at 7:38 AM, Eric Ayers zun...@google.com wrote:
 The author of that library has plans to migrate to overlay types.
 We've got a change branch going on
 http://code.google.com/p/gwt-google-apis under changes/vinays/.

 http://code.google.com/p/gwt-google-apis/source/browse/#svn/changes/vinays/gwt-google-maps-v3

 On Tue, Jul 6, 2010 at 10:08 PM, Daniel Bell daniel.r.b...@gmail.com wrote:
 Thanks for the feedback. The reason I'm not using the official Maps API is
 that I need to use version 3 of the JavaScript API, which isn't supported by
 the GWT Google APIs project yet. The more developed of the GWT Maps
 Libraries (http://code.google.com/p/gwt-google-maps-v3/) uses JSIO for
 everything, rather than overlay types, so I'm concerned about performance in
 the case that lots (hundreds or so) of objects are being rendered on the
 map. At the moment it's looking like I'll contribute some changes there.
 Thanks again,
 Daniel

 On 7 July 2010 03:20, Eric Ayers zun...@google.com wrote:

 Overlay types are the way to go.  The gwt-maps API use jsio because it
 predates overlay types.

 On Jul 6, 2010 11:18 AM, John Tamplin j...@google.com wrote:
  On Tue, Jul 6, 2010 at 3:08 AM, Daniel Bell daniel.r.b...@gmail.com
  wrote:
 
  I have a question for you about Overlay Types and the JSIO library.
  I'm working on a GWT interface to the Google Maps JavaScript API, and
  am wondering about the difference in performance between the two
  approaches.
  With JSIO I've been using wrapper objects that each contain an
  instance of a JavaScriptObject being wrapped, and contain a reference
  to a singleton instance of the flyweight wrapper. My guess is that the
  performance would be better if I used Overlay Types instead, but I am
  just guessing. Do you know (roughly) what the difference in
  performance is between the two approaches?
 
 
  First question - why aren't you using the official GWT APIs for Maps
  instead
  of writing your own? http://code.google.com/p/gwt-google-apis/ If there
  is
  something you need that isn't included, why not contribute to that
  rather
  than create your own from scratch?
 
  Overlay types are a bit more efficient and don't require a generator
  running
  which makes DevMode faster, but I don't think there is a lot of
  difference.
 
  --
  John A. Tamplin
  Software Engineer (GWT), Google
 
  --
  http://groups.google.com/group/Google-Web-Toolkit-Contributors

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

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



 --
 Eric Z. Ayers
 Google Web Toolkit, Atlanta, GA USA




-- 
Eric Z. Ayers
Google Web Toolkit, Atlanta, GA USA

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


[gwt-contrib] Re: Add support for creating Grid elements using UiBinder. (issue154810)

2010-07-07 Thread markovuksanovic

ping...

http://gwt-code-reviews.appspot.com/154810/show

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


Re: [gwt-contrib] JSIO vs Overlay Types

2010-07-07 Thread Daniel Bell
Thanks Eric, Vinay.
Which project would you prefer I contributed the code to? So far I've I've
been working with a clone of the repo at gwt-google-maps-v3, but I'm happy
to switch to using the gwt-google-apis branch if that will help with
migration and API stability.


On 7 July 2010 21:50, Vinay Sekhri vin...@google.com wrote:

 Hi Daniel,

 I was about to respond to you on different thread you wrote to me. Right
 now I am in process of adding new feature (without JSIO dependency) in my
 existing project and copy same to gwt-google-apis project. Once I understand
 things well, we will be in a better position to merge in official API --
 this might take some time.

 On your question to contributing to gwt-google-maps-v3 : you create a clone
 of the existing repo, make your changes and send me the patches. Once we are
 on the same page on coding/design style, I can add you as a contributor to
 the project.

 Eric, I am running these two projects in parallel for now because I do not
 want existing user to suffer because this merge.

 Thanks!
 --
 Vinay Sekhri
 Google India
 +91.124.451.2822 Direct
 +91.9910.195.609 Mobile



 On Wed, Jul 7, 2010 at 5:08 PM, Eric Ayers zun...@google.com wrote:

 The author of that library has plans to migrate to overlay types.
 We've got a change branch going on
 http://code.google.com/p/gwt-google-apis under changes/vinays/.


 http://code.google.com/p/gwt-google-apis/source/browse/#svn/changes/vinays/gwt-google-maps-v3

 On Tue, Jul 6, 2010 at 10:08 PM, Daniel Bell daniel.r.b...@gmail.com
 wrote:
  Thanks for the feedback. The reason I'm not using the official Maps API
 is
  that I need to use version 3 of the JavaScript API, which isn't
 supported by
  the GWT Google APIs project yet. The more developed of the GWT Maps
  Libraries (http://code.google.com/p/gwt-google-maps-v3/) uses JSIO for
  everything, rather than overlay types, so I'm concerned about
 performance in
  the case that lots (hundreds or so) of objects are being rendered on the
  map. At the moment it's looking like I'll contribute some changes there.
  Thanks again,
  Daniel
 
  On 7 July 2010 03:20, Eric Ayers zun...@google.com wrote:
 
  Overlay types are the way to go.  The gwt-maps API use jsio because it
  predates overlay types.
 
  On Jul 6, 2010 11:18 AM, John Tamplin j...@google.com wrote:
   On Tue, Jul 6, 2010 at 3:08 AM, Daniel Bell daniel.r.b...@gmail.com
 
   wrote:
  
   I have a question for you about Overlay Types and the JSIO library.
   I'm working on a GWT interface to the Google Maps JavaScript API,
 and
   am wondering about the difference in performance between the two
   approaches.
   With JSIO I've been using wrapper objects that each contain an
   instance of a JavaScriptObject being wrapped, and contain a
 reference
   to a singleton instance of the flyweight wrapper. My guess is that
 the
   performance would be better if I used Overlay Types instead, but I
 am
   just guessing. Do you know (roughly) what the difference in
   performance is between the two approaches?
  
  
   First question - why aren't you using the official GWT APIs for Maps
   instead
   of writing your own? http://code.google.com/p/gwt-google-apis/ If
 there
   is
   something you need that isn't included, why not contribute to that
   rather
   than create your own from scratch?
  
   Overlay types are a bit more efficient and don't require a generator
   running
   which makes DevMode faster, but I don't think there is a lot of
   difference.
  
   --
   John A. Tamplin
   Software Engineer (GWT), Google
  
   --
   http://groups.google.com/group/Google-Web-Toolkit-Contributors
 
  --
  http://groups.google.com/group/Google-Web-Toolkit-Contributors
 
  --
  http://groups.google.com/group/Google-Web-Toolkit-Contributors



 --
 Eric Z. Ayers
 Google Web Toolkit, Atlanta, GA USA




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

[gwt-contrib] Allow RPC for unmodificable collections (issue620805)

2010-07-07 Thread rice

Reviewers: jat,

Description:
Allow RPC for unmodificable collections


Please review this at http://gwt-code-reviews.appspot.com/620805/show

Affected files:
  M user/src/com/google/gwt/user/client/rpc/core/java/util/Collections.java
  M  
user/src/com/google/gwt/user/client/rpc/core/java/util/TreeSet_CustomFieldSerializer.java

  M user/super/com/google/gwt/emul/java/util/Collections.java
  M user/test/com/google/gwt/emultest/java/util/CollectionsTest.java
  M user/test/com/google/gwt/user/client/rpc/CollectionsTest.java
  M user/test/com/google/gwt/user/client/rpc/CollectionsTestService.java
  M  
user/test/com/google/gwt/user/client/rpc/CollectionsTestServiceAsync.java

  M user/test/com/google/gwt/user/client/rpc/TestSetFactory.java
  M user/test/com/google/gwt/user/client/rpc/TestSetValidator.java
  M user/test/com/google/gwt/user/server/rpc/CollectionsTestServiceImpl.java


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


[gwt-contrib] Avira and HTML/CryptedGen (once again)

2010-07-07 Thread herding
In March 2010 Matt Mastracci reported problems with the Avira
heuristics misdetecting GWT-generated files as Crypted/Gen malware:

http://groups.google.com/group/google-web-toolkit-contributors/browse_thread/thread/cb7ce70ff8af204/f257d2e0f93ba039

Avira has reacted and modified their heuristics. But it turns out that
their detection algorithms are now worse than they were before. You
can read my report on this here:

https://sourceforge.net/apps/mediawiki/protoreto/index.php?title=Avira_AntiVir_triggers_false_alarms_in_GWT-generated_JavaScript

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


Re: [gwt-contrib] JSIO vs Overlay Types

2010-07-07 Thread Vinay Sekhri
Daniel, I guess it would make sense for you to contribute code at
gwt-google-apis vinays branch.

Plan is to convert the existing JSIO dependent code to Overlay types and
write test cases for the same. You may also opt to write missing types from
JS API using Overlay types. Let me know what you would like to start with
and whats the best way to sync-up between you and me?

Thanks!
--
Vinay Sekhri
Google India
+91.124.451.2822 Direct
+91.9910.195.609 Mobile


On Wed, Jul 7, 2010 at 7:24 PM, Daniel Bell daniel.r.b...@gmail.com wrote:

 Thanks Eric, Vinay.
 Which project would you prefer I contributed the code to? So far I've I've
 been working with a clone of the repo at gwt-google-maps-v3, but I'm happy
 to switch to using the gwt-google-apis branch if that will help with
 migration and API stability.


 On 7 July 2010 21:50, Vinay Sekhri vin...@google.com wrote:

 Hi Daniel,

 I was about to respond to you on different thread you wrote to me. Right
 now I am in process of adding new feature (without JSIO dependency) in my
 existing project and copy same to gwt-google-apis project. Once I understand
 things well, we will be in a better position to merge in official API --
 this might take some time.

 On your question to contributing to gwt-google-maps-v3 : you create a
 clone of the existing repo, make your changes and send me the patches. Once
 we are on the same page on coding/design style, I can add you as a
 contributor to the project.

 Eric, I am running these two projects in parallel for now because I do not
 want existing user to suffer because this merge.

 Thanks!
 --
 Vinay Sekhri
 Google India
 +91.124.451.2822 Direct
 +91.9910.195.609 Mobile



 On Wed, Jul 7, 2010 at 5:08 PM, Eric Ayers zun...@google.com wrote:

 The author of that library has plans to migrate to overlay types.
 We've got a change branch going on
 http://code.google.com/p/gwt-google-apis under changes/vinays/.


 http://code.google.com/p/gwt-google-apis/source/browse/#svn/changes/vinays/gwt-google-maps-v3

 On Tue, Jul 6, 2010 at 10:08 PM, Daniel Bell daniel.r.b...@gmail.com
 wrote:
  Thanks for the feedback. The reason I'm not using the official Maps API
 is
  that I need to use version 3 of the JavaScript API, which isn't
 supported by
  the GWT Google APIs project yet. The more developed of the GWT Maps
  Libraries (http://code.google.com/p/gwt-google-maps-v3/) uses JSIO for
  everything, rather than overlay types, so I'm concerned about
 performance in
  the case that lots (hundreds or so) of objects are being rendered on
 the
  map. At the moment it's looking like I'll contribute some changes
 there.
  Thanks again,
  Daniel
 
  On 7 July 2010 03:20, Eric Ayers zun...@google.com wrote:
 
  Overlay types are the way to go.  The gwt-maps API use jsio because it
  predates overlay types.
 
  On Jul 6, 2010 11:18 AM, John Tamplin j...@google.com wrote:
   On Tue, Jul 6, 2010 at 3:08 AM, Daniel Bell 
 daniel.r.b...@gmail.com
   wrote:
  
   I have a question for you about Overlay Types and the JSIO library.
   I'm working on a GWT interface to the Google Maps JavaScript API,
 and
   am wondering about the difference in performance between the two
   approaches.
   With JSIO I've been using wrapper objects that each contain an
   instance of a JavaScriptObject being wrapped, and contain a
 reference
   to a singleton instance of the flyweight wrapper. My guess is that
 the
   performance would be better if I used Overlay Types instead, but I
 am
   just guessing. Do you know (roughly) what the difference in
   performance is between the two approaches?
  
  
   First question - why aren't you using the official GWT APIs for Maps
   instead
   of writing your own? http://code.google.com/p/gwt-google-apis/ If
 there
   is
   something you need that isn't included, why not contribute to that
   rather
   than create your own from scratch?
  
   Overlay types are a bit more efficient and don't require a generator
   running
   which makes DevMode faster, but I don't think there is a lot of
   difference.
  
   --
   John A. Tamplin
   Software Engineer (GWT), Google
  
   --
   http://groups.google.com/group/Google-Web-Toolkit-Contributors
 
  --
  http://groups.google.com/group/Google-Web-Toolkit-Contributors
 
  --
  http://groups.google.com/group/Google-Web-Toolkit-Contributors



 --
 Eric Z. Ayers
 Google Web Toolkit, Atlanta, GA USA





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

[gwt-contrib] Re: Allow RPC for unmodificable collections (issue620805)

2010-07-07 Thread jat


http://gwt-code-reviews.appspot.com/620805/diff/1/2
File
user/src/com/google/gwt/user/client/rpc/core/java/util/Collections.java
(right):

http://gwt-code-reviews.appspot.com/620805/diff/1/2#newcode135
user/src/com/google/gwt/user/client/rpc/core/java/util/Collections.java:135:
/**
So how does this work with server-side implementation classes?  Aren't
they going to need custom serializers for whatever internal classes the
particular JVM uses?

Previously we said the solution was RPC-by-interface, which would allow
you to say that the default implementation for any unknown List subtype
is ArrayList, for example, though obviously that breaks a List view onto
some larger data structure.

http://gwt-code-reviews.appspot.com/620805/diff/1/4
File user/super/com/google/gwt/emul/java/util/Collections.java (right):

http://gwt-code-reviews.appspot.com/620805/diff/1/4#newcode141
user/super/com/google/gwt/emul/java/util/Collections.java:141: private
static final class SingletonMapK, V extends AbstractMapK, V
implements Serializable {
Javadoc explaining when this is used.

http://gwt-code-reviews.appspot.com/620805/diff/1/6
File user/test/com/google/gwt/user/client/rpc/CollectionsTest.java
(right):

http://gwt-code-reviews.appspot.com/620805/diff/1/6#newcode590
user/test/com/google/gwt/user/client/rpc/CollectionsTest.java:590:
service.echoSingletonMap(TestSetFactory.createSingletonMap(),
Shouldn't these have a method where the various internal collection
types are created on the server?

http://gwt-code-reviews.appspot.com/620805/diff/1/11
File
user/test/com/google/gwt/user/server/rpc/CollectionsTestServiceImpl.java
(right):

http://gwt-code-reviews.appspot.com/620805/diff/1/11#newcode450
user/test/com/google/gwt/user/server/rpc/CollectionsTestServiceImpl.java:450:
return value;
Instead of returning the same value, what about creating a new one on
the server from the one supplied, so we can test freshly-created
instances?

http://gwt-code-reviews.appspot.com/620805/show

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


[gwt-contrib] Re: Optimize JsFunctionClusterer with faster edit distance algorithms (issue669801)

2010-07-07 Thread spoon

LGTM


http://gwt-code-reviews.appspot.com/669801/show

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


[gwt-contrib] Reorder outer 'this' constructor arguments to come before user arguments. (issue675801)

2010-07-07 Thread scottb

Reviewers: Lex, tobyr,

Description:
The main purpose of this change is to remove the impedance mismatch
between our constructor argument order, and the argument order for JSNI
::new() invocations.  Our constructors put the synthetic this args after
user args, JSNI ::new() puts the args before user args.

Once this impedance mismatch is cleared up, in a follow up change I plan
to remove the static synthetic 'new' methods in favor of targeting the
constructors directly.

Please review this at http://gwt-code-reviews.appspot.com/675801/show

Affected files:
  M dev/core/src/com/google/gwt/dev/jjs/impl/BuildTypeMap.java
  M dev/core/src/com/google/gwt/dev/jjs/impl/GenerateJavaAST.java


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


Re: [gwt-contrib] JSIO vs Overlay Types

2010-07-07 Thread Daniel Bell
Hi Vinay,
That sounds good. I'll probably start with converting some of the code using
JSIO to use overlay types, because that's what I'm using for my current
project. Regarding testing, it seems that the tests used in the
gwt-google-apis Maps v2 API use the gwt-google-apis
AjaxLoader implementation to load the API, but that the underlying
AjaxLoader only supports Maps v2. Do you know if there are plans to add v3
support to the AjaxLoader?
Thanks,
Daniel

On 8 July 2010 01:35, Vinay Sekhri vin...@google.com wrote:

 Daniel, I guess it would make sense for you to contribute code at
 gwt-google-apis vinays branch.

 Plan is to convert the existing JSIO dependent code to Overlay types and
 write test cases for the same. You may also opt to write missing types from
 JS API using Overlay types. Let me know what you would like to start with
 and whats the best way to sync-up between you and me?

 Thanks!
 --
 Vinay Sekhri
 Google India
 +91.124.451.2822 Direct
 +91.9910.195.609 Mobile


 On Wed, Jul 7, 2010 at 7:24 PM, Daniel Bell daniel.r.b...@gmail.comwrote:

 Thanks Eric, Vinay.
 Which project would you prefer I contributed the code to? So far I've I've
 been working with a clone of the repo at gwt-google-maps-v3, but I'm happy
 to switch to using the gwt-google-apis branch if that will help with
 migration and API stability.


 On 7 July 2010 21:50, Vinay Sekhri vin...@google.com wrote:

 Hi Daniel,

 I was about to respond to you on different thread you wrote to me. Right
 now I am in process of adding new feature (without JSIO dependency) in my
 existing project and copy same to gwt-google-apis project. Once I understand
 things well, we will be in a better position to merge in official API --
 this might take some time.

 On your question to contributing to gwt-google-maps-v3 : you create a
 clone of the existing repo, make your changes and send me the patches. Once
 we are on the same page on coding/design style, I can add you as a
 contributor to the project.

 Eric, I am running these two projects in parallel for now because I do
 not want existing user to suffer because this merge.

 Thanks!
 --
 Vinay Sekhri
 Google India
 +91.124.451.2822 Direct
 +91.9910.195.609 Mobile



 On Wed, Jul 7, 2010 at 5:08 PM, Eric Ayers zun...@google.com wrote:

 The author of that library has plans to migrate to overlay types.
 We've got a change branch going on
 http://code.google.com/p/gwt-google-apis under changes/vinays/.


 http://code.google.com/p/gwt-google-apis/source/browse/#svn/changes/vinays/gwt-google-maps-v3

 On Tue, Jul 6, 2010 at 10:08 PM, Daniel Bell daniel.r.b...@gmail.com
 wrote:
  Thanks for the feedback. The reason I'm not using the official Maps
 API is
  that I need to use version 3 of the JavaScript API, which isn't
 supported by
  the GWT Google APIs project yet. The more developed of the GWT Maps
  Libraries (http://code.google.com/p/gwt-google-maps-v3/) uses JSIO
 for
  everything, rather than overlay types, so I'm concerned about
 performance in
  the case that lots (hundreds or so) of objects are being rendered on
 the
  map. At the moment it's looking like I'll contribute some changes
 there.
  Thanks again,
  Daniel
 
  On 7 July 2010 03:20, Eric Ayers zun...@google.com wrote:
 
  Overlay types are the way to go.  The gwt-maps API use jsio because
 it
  predates overlay types.
 
  On Jul 6, 2010 11:18 AM, John Tamplin j...@google.com wrote:
   On Tue, Jul 6, 2010 at 3:08 AM, Daniel Bell 
 daniel.r.b...@gmail.com
   wrote:
  
   I have a question for you about Overlay Types and the JSIO
 library.
   I'm working on a GWT interface to the Google Maps JavaScript API,
 and
   am wondering about the difference in performance between the two
   approaches.
   With JSIO I've been using wrapper objects that each contain an
   instance of a JavaScriptObject being wrapped, and contain a
 reference
   to a singleton instance of the flyweight wrapper. My guess is that
 the
   performance would be better if I used Overlay Types instead, but I
 am
   just guessing. Do you know (roughly) what the difference in
   performance is between the two approaches?
  
  
   First question - why aren't you using the official GWT APIs for
 Maps
   instead
   of writing your own? http://code.google.com/p/gwt-google-apis/ If
 there
   is
   something you need that isn't included, why not contribute to that
   rather
   than create your own from scratch?
  
   Overlay types are a bit more efficient and don't require a
 generator
   running
   which makes DevMode faster, but I don't think there is a lot of
   difference.
  
   --
   John A. Tamplin
   Software Engineer (GWT), Google
  
   --
   http://groups.google.com/group/Google-Web-Toolkit-Contributors
 
  --
  http://groups.google.com/group/Google-Web-Toolkit-Contributors
 
  --
  http://groups.google.com/group/Google-Web-Toolkit-Contributors



 --
 Eric Z. Ayers
 Google Web Toolkit, Atlanta, GA USA






-- 

Re: [gwt-contrib] JSIO vs Overlay Types

2010-07-07 Thread Eric Ayers
There are reports of success loading the v3 API with the AJAX Loader
(aka Common Loader).  The AjaxLoader Java support is API agnostic.
You should be able to provide the same parameters to
AjaxLoader.loadApi() as described in the forum post below:

http://www.devcomments.com/Loading-v3-with-google-load-at93219.htm

From a performance perspective, the common loader will be slower than
just including the script tag to load the API.  I think that is why
it isn't being promoted heavily.  That and the lack of need for an API
key makes it less compelling to use the AjaxLoader classes.  You could
write a simple script tag injector for the v3 Maps API that works
like the AjaxLoader class does if you wanted the delayed load of the
Maps API from GWT code.  The simplest thing to do is to just add the
script tag in your hosted page, though.

On Wed, Jul 7, 2010 at 8:49 PM, Daniel Bell daniel.r.b...@gmail.com wrote:
 Hi Vinay,
 That sounds good. I'll probably start with converting some of the code using
 JSIO to use overlay types, because that's what I'm using for my current
 project. Regarding testing, it seems that the tests used in the
 gwt-google-apis Maps v2 API use the gwt-google-apis
 AjaxLoader implementation to load the API, but that the underlying
 AjaxLoader only supports Maps v2. Do you know if there are plans to add v3
 support to the AjaxLoader?
 Thanks,
 Daniel

 On 8 July 2010 01:35, Vinay Sekhri vin...@google.com wrote:

 Daniel, I guess it would make sense for you to contribute code at
 gwt-google-apis vinays branch.
 Plan is to convert the existing JSIO dependent code to Overlay types and
 write test cases for the same. You may also opt to write missing types from
 JS API using Overlay types. Let me know what you would like to start with
 and whats the best way to sync-up between you and me?
 Thanks!
 --
 Vinay Sekhri
 Google India
 +91.124.451.2822 Direct
 +91.9910.195.609 Mobile


 On Wed, Jul 7, 2010 at 7:24 PM, Daniel Bell daniel.r.b...@gmail.com
 wrote:

 Thanks Eric, Vinay.
 Which project would you prefer I contributed the code to? So far I've
 I've been working with a clone of the repo at gwt-google-maps-v3, but I'm
 happy to switch to using the gwt-google-apis branch if that will help with
 migration and API stability.

 On 7 July 2010 21:50, Vinay Sekhri vin...@google.com wrote:

 Hi Daniel,
 I was about to respond to you on different thread you wrote to me. Right
 now I am in process of adding new feature (without JSIO dependency) in my
 existing project and copy same to gwt-google-apis project. Once I 
 understand
 things well, we will be in a better position to merge in official API --
 this might take some time.
 On your question to contributing to gwt-google-maps-v3 : you create a
 clone of the existing repo, make your changes and send me the patches. Once
 we are on the same page on coding/design style, I can add you as a
 contributor to the project.
 Eric, I am running these two projects in parallel for now because I do
 not want existing user to suffer because this merge.
 Thanks!
 --
 Vinay Sekhri
 Google India
 +91.124.451.2822 Direct
 +91.9910.195.609 Mobile


 On Wed, Jul 7, 2010 at 5:08 PM, Eric Ayers zun...@google.com wrote:

 The author of that library has plans to migrate to overlay types.
 We've got a change branch going on
 http://code.google.com/p/gwt-google-apis under changes/vinays/.


 http://code.google.com/p/gwt-google-apis/source/browse/#svn/changes/vinays/gwt-google-maps-v3

 On Tue, Jul 6, 2010 at 10:08 PM, Daniel Bell daniel.r.b...@gmail.com
 wrote:
  Thanks for the feedback. The reason I'm not using the official Maps
  API is
  that I need to use version 3 of the JavaScript API, which isn't
  supported by
  the GWT Google APIs project yet. The more developed of the GWT Maps
  Libraries (http://code.google.com/p/gwt-google-maps-v3/) uses JSIO
  for
  everything, rather than overlay types, so I'm concerned about
  performance in
  the case that lots (hundreds or so) of objects are being rendered on
  the
  map. At the moment it's looking like I'll contribute some changes
  there.
  Thanks again,
  Daniel
 
  On 7 July 2010 03:20, Eric Ayers zun...@google.com wrote:
 
  Overlay types are the way to go.  The gwt-maps API use jsio because
  it
  predates overlay types.
 
  On Jul 6, 2010 11:18 AM, John Tamplin j...@google.com wrote:
   On Tue, Jul 6, 2010 at 3:08 AM, Daniel Bell
   daniel.r.b...@gmail.com
   wrote:
  
   I have a question for you about Overlay Types and the JSIO
   library.
   I'm working on a GWT interface to the Google Maps JavaScript API,
   and
   am wondering about the difference in performance between the two
   approaches.
   With JSIO I've been using wrapper objects that each contain an
   instance of a JavaScriptObject being wrapped, and contain a
   reference
   to a singleton instance of the flyweight wrapper. My guess is
   that the
   performance would be better if I used Overlay Types instead, but
   I am
   just guessing. Do you know 

[gwt-contrib] JSNI ::new() now targets constructors directly (issue676801)

2010-07-07 Thread scottb

Reviewers: Lex, tobyr,

Description:
Follow-on to http://gwt-code-reviews.appspot.com/675801/show

This patch removes the extra hop through a synthetic static 'new'
function that is currently used for implementing JSNI ::new()
invocations.

In the 99% case, the JsInvocation is replaced with a JsNew operation on
the target constructor.  In rare cases where the constructor is not
immediately invoked, a tear off function is creation which performs the
new op internally.

Examples:

test.Foo::new()(); - new test_Foo();

var factory = test.Foo::new(); - var factory = function() { return new
test_Foo(); };



Please review this at http://gwt-code-reviews.appspot.com/676801/show

Affected files:
  M dev/core/src/com/google/gwt/dev/jjs/ast/JVisitor.java
  M dev/core/src/com/google/gwt/dev/jjs/impl/BuildTypeMap.java
  M dev/core/src/com/google/gwt/dev/jjs/impl/ControlFlowAnalyzer.java
  M dev/core/src/com/google/gwt/dev/jjs/impl/GenerateJavaAST.java
  M dev/core/src/com/google/gwt/dev/jjs/impl/GenerateJavaScriptAST.java
  M dev/core/src/com/google/gwt/dev/jjs/impl/JsniRefLookup.java
  M dev/core/test/com/google/gwt/dev/jjs/impl/JsniRefLookupTest.java


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


Re: [gwt-contrib] JSIO vs Overlay Types

2010-07-07 Thread Daniel Bell
Thanks for the suggestions. I like the script tag injector idea. I'm
currently using AjaxLoader in to load the v2 API when the user navigates to
the page with the map in it. I did try the using AjaxLoader.loadApi() to get
the Maps v3 API (using the same params described in the forum post you
mentioned), but the map did not load in IE, and there were exceptions in
Firefox, so I just used the script tag. Maybe I'll revisit that later.

On 8 July 2010 11:29, Eric Ayers zun...@google.com wrote:

 There are reports of success loading the v3 API with the AJAX Loader
 (aka Common Loader).  The AjaxLoader Java support is API agnostic.
 You should be able to provide the same parameters to
 AjaxLoader.loadApi() as described in the forum post below:

 http://www.devcomments.com/Loading-v3-with-google-load-at93219.htm

 From a performance perspective, the common loader will be slower than
 just including the script tag to load the API.  I think that is why
 it isn't being promoted heavily.  That and the lack of need for an API
 key makes it less compelling to use the AjaxLoader classes.  You could
 write a simple script tag injector for the v3 Maps API that works
 like the AjaxLoader class does if you wanted the delayed load of the
 Maps API from GWT code.  The simplest thing to do is to just add the
 script tag in your hosted page, though.

 On Wed, Jul 7, 2010 at 8:49 PM, Daniel Bell daniel.r.b...@gmail.com
 wrote:
  Hi Vinay,
  That sounds good. I'll probably start with converting some of the code
 using
  JSIO to use overlay types, because that's what I'm using for my current
  project. Regarding testing, it seems that the tests used in the
  gwt-google-apis Maps v2 API use the gwt-google-apis
  AjaxLoader implementation to load the API, but that the underlying
  AjaxLoader only supports Maps v2. Do you know if there are plans to add
 v3
  support to the AjaxLoader?
  Thanks,
  Daniel
 
  On 8 July 2010 01:35, Vinay Sekhri vin...@google.com wrote:
 
  Daniel, I guess it would make sense for you to contribute code at
  gwt-google-apis vinays branch.
  Plan is to convert the existing JSIO dependent code to Overlay types and
  write test cases for the same. You may also opt to write missing types
 from
  JS API using Overlay types. Let me know what you would like to start
 with
  and whats the best way to sync-up between you and me?
  Thanks!
  --
  Vinay Sekhri
  Google India
  +91.124.451.2822 Direct
  +91.9910.195.609 Mobile
 
 
  On Wed, Jul 7, 2010 at 7:24 PM, Daniel Bell daniel.r.b...@gmail.com
  wrote:
 
  Thanks Eric, Vinay.
  Which project would you prefer I contributed the code to? So far I've
  I've been working with a clone of the repo at gwt-google-maps-v3, but
 I'm
  happy to switch to using the gwt-google-apis branch if that will help
 with
  migration and API stability.
 
  On 7 July 2010 21:50, Vinay Sekhri vin...@google.com wrote:
 
  Hi Daniel,
  I was about to respond to you on different thread you wrote to me.
 Right
  now I am in process of adding new feature (without JSIO dependency) in
 my
  existing project and copy same to gwt-google-apis project. Once I
 understand
  things well, we will be in a better position to merge in official API
 --
  this might take some time.
  On your question to contributing to gwt-google-maps-v3 : you create a
  clone of the existing repo, make your changes and send me the patches.
 Once
  we are on the same page on coding/design style, I can add you as a
  contributor to the project.
  Eric, I am running these two projects in parallel for now because I do
  not want existing user to suffer because this merge.
  Thanks!
  --
  Vinay Sekhri
  Google India
  +91.124.451.2822 Direct
  +91.9910.195.609 Mobile
 
 
  On Wed, Jul 7, 2010 at 5:08 PM, Eric Ayers zun...@google.com wrote:
 
  The author of that library has plans to migrate to overlay types.
  We've got a change branch going on
  http://code.google.com/p/gwt-google-apis under changes/vinays/.
 
 
 
 http://code.google.com/p/gwt-google-apis/source/browse/#svn/changes/vinays/gwt-google-maps-v3
 
  On Tue, Jul 6, 2010 at 10:08 PM, Daniel Bell 
 daniel.r.b...@gmail.com
  wrote:
   Thanks for the feedback. The reason I'm not using the official Maps
   API is
   that I need to use version 3 of the JavaScript API, which isn't
   supported by
   the GWT Google APIs project yet. The more developed of the GWT Maps
   Libraries (http://code.google.com/p/gwt-google-maps-v3/) uses JSIO
   for
   everything, rather than overlay types, so I'm concerned about
   performance in
   the case that lots (hundreds or so) of objects are being rendered
 on
   the
   map. At the moment it's looking like I'll contribute some changes
   there.
   Thanks again,
   Daniel
  
   On 7 July 2010 03:20, Eric Ayers zun...@google.com wrote:
  
   Overlay types are the way to go.  The gwt-maps API use jsio
 because
   it
   predates overlay types.
  
   On Jul 6, 2010 11:18 AM, John Tamplin j...@google.com wrote:
On Tue, Jul 6, 2010 at