Re: GWT - The response could not be deserialized

2014-04-08 Thread Boris Lenzinger
May be your returned object is null ?


2014-04-08 22:31 GMT+02:00 Pippo Baudone karm...@tin.it:

 I've tried it but i have the same problem.


  Try wrapping you data objects in POJO's and not passing your data as raw
 arrays and see if that helps.

 -Mike

 On 04/08/2014 03:33 PM, Pippo Baudone wrote:

 i am in this situation:

 @RemoteServiceRelativePath(create_event) public interface 
 CreateEventService extends RemoteService {
 String[] createeventServer(LinkedListLinkedListString input) throws 
 IllegalArgumentException; }



 public interface CreateEventServiceAsync {
 void createeventServer(LinkedListLinkedListString input, 
 AsyncCallbackString[] callback) throws IllegalArgumentException;}



 public class CreateEventServiceImpl extends RemoteServiceServlet implements 
 CreateEventService {
 public String[] createeventServer(LinkedListLinkedListString input) 
 throws IllegalArgumentException {
 String[] arr = new String[2];
 ... return arr;
 }}


 Why does this cause error *The response could not be deserialized*?

 p.s. I have tried to execute the project with app engine and without it,
 but the problem is the same.
  --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to google-web-toolkit+unsubscr...@googlegroups.com.
 To post to this group, send email to google-we...@googlegroups.com.

 Visit this group at http://groups.google.com/group/google-web-toolkit.
 For more options, visit https://groups.google.com/d/optout.


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


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


Re: gwt tomcat unix doesn't work

2014-02-22 Thread Boris Lenzinger
Hi,

Can you post the error you get ?
It would also be good to have the output of
  java -version
  which java
Do you have any gcj installed ? Could you also post which distribution of
linux you are using and which version ?

Thank you.



2014-02-22 8:17 GMT+01:00 fedex shashankgris...@gmail.com:

 Hi everyone

 I am using tomcat version 6 in the unix server. When I try to run the sh
 version.sh file I get an error saying bad version. bin/bootstrap is not
 working i believe. I checked the jdk and jre version . They are compatible
 . I used commands java -version and javac -version to check the
 compatibility of java and compiler version.

 Recently I developed an application using GWT framework. When I deploy the
 application on the local tomcat server it wrks greats in the windows. I am
 using jdk 1.7 and jre7 in my local and verified on both tomcat version 6 
 7. The application worked great and have no issues. I used ANT script to
 package the application so to deploy on unix server. I used the same ANT
 script to build the package when I deployed on local tomcat.

 Can anyone suggest what exactly could have gone wrong. Based on the error
 I understand compiler is not compatible to java version. When I run the sh
 version.sh in unix it showed the JRE HOME variable as /usr folder. I found
 in that folder java and jre compatible. Please help . Thanks

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


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


Re: Compile Error after switching to 2.6 in first compile run

2014-02-19 Thread Boris Lenzinger
May be the algorithm to compute the compilation order has changed. Can you
get the sequence of compilation in 2.5.1 and 2.6.0 so you can currently
hard code the build sequence (and continue to use 2.6). Then you can post a
bug report.


2014-02-19 9:04 GMT+01:00 Jan Thewes janthe...@gmail.com:

 I understand your points BUT one thing. If I compile my modules alone I
 don't get any compile error. So compiling every single module works. It has
 to do something with the order and caches. I just can't nail it down.
 We're running a real real big GWT application here.
 I'm close to go back to 2.5.1 because the compiles fail too often but not
 always...

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


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


Re: Compile Error after switching to 2.6 in first compile run

2014-02-14 Thread Boris Lenzinger
There is this error in your stack :
   [ERROR] Errors in
'file:/Users/xgadjth/sandboxes/b21_gwt-03.03.00/render/source/de/gad/gfw/web/gui/render/toolbar/ToolBar.java'
  [ERROR] Line 116: The method addStyleName(String) is undefined for
the type AutoHidePreventMenu
  [ERROR] Line 123: The method hide() is undefined for the type
AutoHidePreventMenu
  [ERROR] Line 134: Type mismatch: cannot convert from
AutoHidePreventMenu to Menu

Could you tell usthe hierarchy of the ToolBar class ?

The same for those classes :

   [ERROR] Errors in
'file:/Users/xgadjth/sandboxes/b21_gwt-03.03.00/uigxt/source/de/gad/gfw/web/gui/uigxt/widget/valuta/ValutaDateField.java'
   [ERROR] Errors in
'file:/Users/xgadjth/sandboxes/b21_gwt-03.03.00/webUI/source/de/gad/gfw/web/gui/webui/gxt/widget/wrapper/misc/WMenu.java'

I see in your packages name that you have gxt. Is there any chance that the
version of GXT you are using at compile time is not the same that you are
using in your IDE ? My assumption is that you could use in your IDE a
version of GXT that has an API that is consistent with your code but at
compile time, you are using another (probably older) version of GXT.




2014-02-14 12:33 GMT+01:00 Jan Thewes janthe...@gmail.com:

 Well, the order has to do something with the failing compile. But this is
 new with GWT 2.6. Before our compilation always worked. And we don't have
 changed our code since the change to 2.6.
 Still need ideas what this can be. In my opinion this is a GWT internal
 bug.

 Am Dienstag, 11. Februar 2014 18:20:38 UTC+1 schrieb BGL:

 I would say that the order of compilation is not the one you expect. The
 error
 Line 23: No source code is available for type
 de.gad.gfw.web.navigator.menu.model.MenuElement; did you forget to
 inherit a required module?
   Errors in 'file:/Users/xgadjth/sandboxes/b21_gwt-03.03.00/
 render/source/de/gad/gfw/web/gui/render/dialog/print/PrintMenu.java'
  Line 8: The hierarchy of the type PrintMenu is inconsistent

 says that you do not have the class file in your compilation classpath.
 Then, for any reason, the jar or the class file (with its source) is found
 in the classpath and the compilation is working.Difficult to say without
 the build process.
 Compare the order when you compile module per module and full automated.
 There must be a difference. Or do you deploy resources when you compile
 one by one ? This would publish some jar somewhere that are theun used by
 the first project...





 2014-02-11 17:09 GMT+01:00 Jan Thewes jant...@gmail.com:

 Ok any further information.
 We're trying to compile 5 modules at a time. That fails
 When compiling all the 5 modules alone. It works!
 We also have a merge-module. These combines 4 of our 5 modules. This
 merge module compiles without any error, too!
 So this is a real strange behavior...

 Am Dienstag, 11. Februar 2014 09:25:05 UTC+1 schrieb Jan Thewes:

 Hey guys,

 we have a very strange problem here.
 We've a real large application written in GWT using GXT.
 We wanted to switch to 2.6 because we need IE10 support.
 For that reason we patched the GXT 2.3.1 source so that it works with
 GWT 2.6.

 We now have the problem that the first compile fails. After the compile
 failed I start the compile again and it ends successful.
 I don't really know what the problem is. I added the compile log.
 There you can see that the compile fails with an error related
 to AutoHidePreventMenu (line 966)
 I added a detail log where you can see the error in more detail
 (compiled with output Debug).


 Any help is appreciated.

 If I can provide any further information feel free to ask!

 Cheers,
 Jan

  --
 You received this message because you are subscribed to the Google
 Groups Google Web Toolkit group.
 To unsubscribe from this group and stop receiving emails from it, send
 an email to google-web-toolkit+unsubscr...@googlegroups.com.
 To post to this group, send email to google-we...@googlegroups.com.

 Visit this group at http://groups.google.com/group/google-web-toolkit.
 For more options, visit https://groups.google.com/groups/opt_out.


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


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

Re: Compile Error after switching to 2.6 in first compile run

2014-02-11 Thread Boris Lenzinger
I would say that the order of compilation is not the one you expect. The
error
Line 23: No source code is available for type
de.gad.gfw.web.navigator.menu.model.MenuElement; did you forget to inherit
a required module?
  Errors in
'file:/Users/xgadjth/sandboxes/b21_gwt-03.03.00/render/source/de/gad/gfw/web/gui/render/dialog/print/PrintMenu.java'
 Line 8: The hierarchy of the type PrintMenu is inconsistent

says that you do not have the class file in your compilation classpath.
Then, for any reason, the jar or the class file (with its source) is found
in the classpath and the compilation is working.Difficult to say without
the build process.
Compare the order when you compile module per module and full automated.
There must be a difference. Or do you deploy resources when you compile
one by one ? This would publish some jar somewhere that are theun used by
the first project...





2014-02-11 17:09 GMT+01:00 Jan Thewes janthe...@gmail.com:

 Ok any further information.
 We're trying to compile 5 modules at a time. That fails
 When compiling all the 5 modules alone. It works!
 We also have a merge-module. These combines 4 of our 5 modules. This
 merge module compiles without any error, too!
 So this is a real strange behavior...

 Am Dienstag, 11. Februar 2014 09:25:05 UTC+1 schrieb Jan Thewes:

 Hey guys,

 we have a very strange problem here.
 We've a real large application written in GWT using GXT.
 We wanted to switch to 2.6 because we need IE10 support.
 For that reason we patched the GXT 2.3.1 source so that it works with GWT
 2.6.

 We now have the problem that the first compile fails. After the compile
 failed I start the compile again and it ends successful.
 I don't really know what the problem is. I added the compile log.
 There you can see that the compile fails with an error related
 to AutoHidePreventMenu (line 966)
 I added a detail log where you can see the error in more detail (compiled
 with output Debug).


 Any help is appreciated.

 If I can provide any further information feel free to ask!

 Cheers,
 Jan

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


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


Re: GWT 2.6.0 / Java 6: UnsupportedClassVersionError in DevMode

2014-02-11 Thread Boris Lenzinger
And which is the default version of java in your shell ? may be eclipse is
running with JRE 7 and then compiling with JDK 7.


2014-02-11 18:01 GMT+01:00 Timo Hoepfner timo.hoepf...@gmail.com:

 Hi Boris,

 the project is configured to use Java 6 and problem occurs when the
 DevMode JRE is also set to Java 6. There was no JDK 7 configured in Eclipse
 when the problem first ocured.
 The class UserAgentImplGecko1_8 which is causing the problem appears to be
 generated at runtime. For me it looks like 
 com.google.gwt.dev.shell.CompilingClassLoader
 is generating Java 7 byte code even when running on a Java 6 JRE (and when
 -sourceLevel 6 is specified to DevMode).

 For now I'm launching DevMode with JRE 7, but it looks like a bug to me...

 Timo



 Am Montag, 10. Februar 2014 21:43:16 UTC+1 schrieb BGL:

 Hi,

 This is because you are executing the code with a JRE that is not
 compatible with this class version. Probably you are using a 1.6 jre and
 the class is compatible from 1.7. You have to recompile the code with a 1.6
 JDK or you have to change the JRE that is executing the code to a 1.7.

 If you are under Eclipse, check the JRE that is used when executing the
 dev mode. To do so in eclipse, open Run Menu, then Run Configuration and
 select your launcher. Then check what is the default JRE that is used for
 running this. The problem may be is there.

 Boris


 2014-02-10 14:29 GMT+01:00 Timo Hoepfner timo.h...@gmail.com:

 Hi,

 I recently updated to GWT 2.6.0. Since then I'm getting a
 UnsupportedClassVersionError in (regular) DevMode at runtime. A regular
 compile works fine. Explicitly setting the sourceLevel in der DevMode
 launcher arguments (-sourceLevel 6 or -sourceLevel 1.6) doesn't help.
 Changing the DevMode JRE to 7 works around the problem.

 I'm using Firefox ESR 24.3.0.

 Here's the full error:

 14:17:50.548 [ERROR] [ajaxadmin] Unable to load module entry point class
 com.google.gwt.useragent.client.UserAgentAsserter (see associated
 exception for details)

 java.lang.RuntimeException: Deferred binding failed for
 'com.google.gwt.useragent.client.UserAgent' (did you forget to inherit
 a required module?)
 at com.google.gwt.dev.shell.GWTBridgeImpl.create(
 GWTBridgeImpl.java:53)
 at com.google.gwt.core.shared.GWT.create(GWT.java:72)
 at com.google.gwt.core.client.GWT.create(GWT.java:86)
 at com.google.gwt.useragent.client.UserAgentAsserter.onModuleLoad(
 UserAgentAsserter.java:41)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(
 NativeMethodAccessorImpl.java:39)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(
 DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:411)
 at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(
 OophmSessionHandler.java:200)
 at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(
 BrowserChannelServer.java:526)
 at com.google.gwt.dev.shell.BrowserChannelServer.run(
 BrowserChannelServer.java:364)
 at java.lang.Thread.run(Thread.java:695)
 Caused by: java.lang.UnsupportedClassVersionError:
 com/google/gwt/useragent/client/UserAgentImplGecko1_8 : Unsupported
 major.minor version 51.0
 at java.lang.ClassLoader.defineClass1(Native Method)
 at java.lang.ClassLoader.defineClassCond(ClassLoader.java:637)
 at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
 at java.lang.ClassLoader.defineClass(ClassLoader.java:471)
 at com.google.gwt.dev.shell.CompilingClassLoader.findClass(
 CompilingClassLoader.java:1121)
 at com.google.gwt.dev.shell.CompilingClassLoader.loadClass(
 CompilingClassLoader.java:1194)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
 at java.lang.Class.forName0(Native Method)
 at java.lang.Class.forName(Class.java:249)
 at com.google.gwt.dev.shell.ModuleSpace.loadClassFromSourceName(
 ModuleSpace.java:670)
 at com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(
 ModuleSpace.java:473)
 at com.google.gwt.dev.shell.GWTBridgeImpl.create(
 GWTBridgeImpl.java:49)
 at com.google.gwt.core.shared.GWT.create(GWT.java:72)
 at com.google.gwt.core.client.GWT.create(GWT.java:86)
 at com.google.gwt.useragent.client.UserAgentAsserter.onModuleLoad(
 UserAgentAsserter.java:41)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(
 NativeMethodAccessorImpl.java:39)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(
 DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:411)
 at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(
 OophmSessionHandler.java:200)
 at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(
 BrowserChannelServer.java:526)

Re: GWT 2.6.0 / Java 6: UnsupportedClassVersionError in DevMode

2014-02-10 Thread Boris Lenzinger
Hi,

This is because you are executing the code with a JRE that is not
compatible with this class version. Probably you are using a 1.6 jre and
the class is compatible from 1.7. You have to recompile the code with a 1.6
JDK or you have to change the JRE that is executing the code to a 1.7.

If you are under Eclipse, check the JRE that is used when executing the dev
mode. To do so in eclipse, open Run Menu, then Run Configuration and select
your launcher. Then check what is the default JRE that is used for running
this. The problem may be is there.

Boris


2014-02-10 14:29 GMT+01:00 Timo Hoepfner timo.hoepf...@gmail.com:

 Hi,

 I recently updated to GWT 2.6.0. Since then I'm getting a
 UnsupportedClassVersionError in (regular) DevMode at runtime. A regular
 compile works fine. Explicitly setting the sourceLevel in der DevMode
 launcher arguments (-sourceLevel 6 or -sourceLevel 1.6) doesn't help.
 Changing the DevMode JRE to 7 works around the problem.

 I'm using Firefox ESR 24.3.0.

 Here's the full error:

 14:17:50.548 [ERROR] [ajaxadmin] Unable to load module entry point class
 com.google.gwt.useragent.client.UserAgentAsserter (see associated exception
 for details)

 java.lang.RuntimeException: Deferred binding failed for
 'com.google.gwt.useragent.client.UserAgent' (did you forget to inherit a
 required module?)
 at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:53)
 at com.google.gwt.core.shared.GWT.create(GWT.java:72)
 at com.google.gwt.core.client.GWT.create(GWT.java:86)
 at
 com.google.gwt.useragent.client.UserAgentAsserter.onModuleLoad(UserAgentAsserter.java:41)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:411)
 at
 com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:200)
 at
 com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:526)
 at
 com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
 at java.lang.Thread.run(Thread.java:695)
 Caused by: java.lang.UnsupportedClassVersionError:
 com/google/gwt/useragent/client/UserAgentImplGecko1_8 : Unsupported
 major.minor version 51.0
 at java.lang.ClassLoader.defineClass1(Native Method)
 at java.lang.ClassLoader.defineClassCond(ClassLoader.java:637)
 at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
 at java.lang.ClassLoader.defineClass(ClassLoader.java:471)
 at
 com.google.gwt.dev.shell.CompilingClassLoader.findClass(CompilingClassLoader.java:1121)
 at
 com.google.gwt.dev.shell.CompilingClassLoader.loadClass(CompilingClassLoader.java:1194)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
 at java.lang.Class.forName0(Native Method)
 at java.lang.Class.forName(Class.java:249)
 at
 com.google.gwt.dev.shell.ModuleSpace.loadClassFromSourceName(ModuleSpace.java:670)
 at
 com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:473)
 at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:49)
 at com.google.gwt.core.shared.GWT.create(GWT.java:72)
 at com.google.gwt.core.client.GWT.create(GWT.java:86)
 at
 com.google.gwt.useragent.client.UserAgentAsserter.onModuleLoad(UserAgentAsserter.java:41)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:411)
 at
 com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:200)
 at
 com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:526)
 at
 com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
 at java.lang.Thread.run(Thread.java:695)

 Is there anything I can do about that?

 Thanks for your help,

 Timo

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


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an 

Re: why is my class not serializable?

2013-05-14 Thread Boris Lenzinger
Can you post the code of the class and the message of the exception please
? It would help to understand the problem i think.

Boris
Le 14 mai 2013 17:09, Dennis Haupt d.haup...@gmail.com a écrit :

 i deactivated the rpc blacklist
 the class has a default contructor and no final fields
 is it directly used in an rpc method
 there is no error message during compilation

 i have no idea what the reason could be. any ideas?

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




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




Re: why is my class not serializable?

2013-05-14 Thread Boris Lenzinger
Did you try by just including step by step the class ? I mean just add an
empty class and check if it is working. I know you made a lot of classes so
you are skilled. So I guess this is a silly problem. Perhaps restarting
from scratch may highlight the issue.
Le 14 mai 2013 17:24, Dennis Haupt d.haup...@gmail.com a écrit :

 can i debug *why* the class is not included?


 2013/5/14 Dennis Haupt d.haup...@gmail.com

 please assume that i have already checked the dumb errors. i have about
 200 serializable classes here, so i know how it works (usually...)
 the error message is the one that says not included in the list of
 serializable types. i don't see how posting the code would help without
 providing access to the complete project. it's just a class implementing an
 interface which extends serializable with fields that are all not final and
 all serializable.
 can an interface prevent the class from being serializable?


 2013/5/14 Juan Pablo Gardella gardellajuanpa...@gmail.com

 It does implement Serializable?


 2013/5/14 Dennis Haupt d.haup...@gmail.com

 i deactivated the rpc blacklist
 the class has a default contructor and no final fields
 is it directly used in an rpc method
 there is no error message during compilation

 i have no idea what the reason could be. any ideas?

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




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





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




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




Re: why is my class not serializable?

2013-05-14 Thread Boris Lenzinger
Consider also the interface other than serializable. It must be somerhung
around those things...
Le 14 mai 2013 17:31, Dennis Haupt d.haup...@gmail.com a écrit :

 i'm removing fields step by step now (since it has only 3)


 2013/5/14 Boris Lenzinger boris.lenzin...@gmail.com

 Did you try by just including step by step the class ? I mean just add an
 empty class and check if it is working. I know you made a lot of classes so
 you are skilled. So I guess this is a silly problem. Perhaps restarting
 from scratch may highlight the issue.
 Le 14 mai 2013 17:24, Dennis Haupt d.haup...@gmail.com a écrit :

 can i debug *why* the class is not included?


 2013/5/14 Dennis Haupt d.haup...@gmail.com

 please assume that i have already checked the dumb errors. i have about
 200 serializable classes here, so i know how it works (usually...)
 the error message is the one that says not included in the list of
 serializable types. i don't see how posting the code would help without
 providing access to the complete project. it's just a class implementing an
 interface which extends serializable with fields that are all not final and
 all serializable.
 can an interface prevent the class from being serializable?


 2013/5/14 Juan Pablo Gardella gardellajuanpa...@gmail.com

 It does implement Serializable?


 2013/5/14 Dennis Haupt d.haup...@gmail.com

 i deactivated the rpc blacklist
 the class has a default contructor and no final fields
 is it directly used in an rpc method
 there is no error message during compilation

 i have no idea what the reason could be. any ideas?

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




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





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



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




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




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




Re: why is my class not serializable?

2013-05-14 Thread Boris Lenzinger
Are the type of your fields available on the client side ?
Le 14 mai 2013 17:40, Dennis Haupt d.haup...@gmail.com a écrit :

 the package the problematic class is in cannot access the gwt classes, so
 it must use serializable. but i have done this several times now, it always
 worked. removing all fields fixed the problem.
 why doesn't the gwt complain about the fields at all, if they are the
 problem?


 2013/5/14 Boris Lenzinger boris.lenzin...@gmail.com

 Consider also the interface other than serializable. It must be somerhung
 around those things...
 Le 14 mai 2013 17:31, Dennis Haupt d.haup...@gmail.com a écrit :

 i'm removing fields step by step now (since it has only 3)


 2013/5/14 Boris Lenzinger boris.lenzin...@gmail.com

 Did you try by just including step by step the class ? I mean just add
 an empty class and check if it is working. I know you made a lot of classes
 so you are skilled. So I guess this is a silly problem. Perhaps restarting
 from scratch may highlight the issue.
 Le 14 mai 2013 17:24, Dennis Haupt d.haup...@gmail.com a écrit :

 can i debug *why* the class is not included?


 2013/5/14 Dennis Haupt d.haup...@gmail.com

 please assume that i have already checked the dumb errors. i have
 about 200 serializable classes here, so i know how it works (usually...)
 the error message is the one that says not included in the list of
 serializable types. i don't see how posting the code would help without
 providing access to the complete project. it's just a class implementing 
 an
 interface which extends serializable with fields that are all not final 
 and
 all serializable.
 can an interface prevent the class from being serializable?


 2013/5/14 Juan Pablo Gardella gardellajuanpa...@gmail.com

 It does implement Serializable?


 2013/5/14 Dennis Haupt d.haup...@gmail.com

 i deactivated the rpc blacklist
 the class has a default contructor and no final fields
 is it directly used in an rpc method
 there is no error message during compilation

 i have no idea what the reason could be. any ideas?

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




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





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



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




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



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




  --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To unsubscribe from this group

Re: why is my class not serializable?

2013-05-14 Thread Boris Lenzinger
Are they serializable ? Or is their implementation serialiazable ? Try to
replace for test purpose with a string for instance to identify faulty
fields.
Le 14 mai 2013 17:54, Dennis Haupt d.haup...@gmail.com a écrit :

 does it matter if the fields are interfaces?


 2013/5/14 Dennis Haupt d.haup...@gmail.com

 yes, the compiler can access them. i use the classes in an rpc call


 2013/5/14 Boris Lenzinger boris.lenzin...@gmail.com

 Are the type of your fields available on the client side ?
 Le 14 mai 2013 17:40, Dennis Haupt d.haup...@gmail.com a écrit :

 the package the problematic class is in cannot access the gwt classes,
 so it must use serializable. but i have done this several times now, it
 always worked. removing all fields fixed the problem.
 why doesn't the gwt complain about the fields at all, if they are the
 problem?


 2013/5/14 Boris Lenzinger boris.lenzin...@gmail.com

 Consider also the interface other than serializable. It must be
 somerhung around those things...
 Le 14 mai 2013 17:31, Dennis Haupt d.haup...@gmail.com a écrit :

 i'm removing fields step by step now (since it has only 3)


 2013/5/14 Boris Lenzinger boris.lenzin...@gmail.com

 Did you try by just including step by step the class ? I mean just
 add an empty class and check if it is working. I know you made a lot of
 classes so you are skilled. So I guess this is a silly problem. Perhaps
 restarting from scratch may highlight the issue.
 Le 14 mai 2013 17:24, Dennis Haupt d.haup...@gmail.com a écrit :

 can i debug *why* the class is not included?


 2013/5/14 Dennis Haupt d.haup...@gmail.com

 please assume that i have already checked the dumb errors. i have
 about 200 serializable classes here, so i know how it works 
 (usually...)
 the error message is the one that says not included in the list
 of serializable types. i don't see how posting the code would help 
 without
 providing access to the complete project. it's just a class 
 implementing an
 interface which extends serializable with fields that are all not 
 final and
 all serializable.
 can an interface prevent the class from being serializable?


 2013/5/14 Juan Pablo Gardella gardellajuanpa...@gmail.com

 It does implement Serializable?


 2013/5/14 Dennis Haupt d.haup...@gmail.com

 i deactivated the rpc blacklist
 the class has a default contructor and no final fields
 is it directly used in an rpc method
 there is no error message during compilation

 i have no idea what the reason could be. any ideas?

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




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





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



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




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



  --
 You received this message because you are subscribed to the Google
 Groups Google Web Toolkit group.
 To unsubscribe from this group and stop receiving

Re: why is my class not serializable?

2013-05-14 Thread Boris Lenzinger
And you have already used them in rpc calls ? Sorry for those basic
questions but it is to be sure that, before searching for complex things,
simple one have been discarded.
Le 14 mai 2013 17:59, Dennis Haupt d.haup...@gmail.com a écrit :

 yes, they are all serializable


 2013/5/14 Boris Lenzinger boris.lenzin...@gmail.com

 Are they serializable ? Or is their implementation serialiazable ? Try to
 replace for test purpose with a string for instance to identify faulty
 fields.
 Le 14 mai 2013 17:54, Dennis Haupt d.haup...@gmail.com a écrit :

 does it matter if the fields are interfaces?


 2013/5/14 Dennis Haupt d.haup...@gmail.com

 yes, the compiler can access them. i use the classes in an rpc call


 2013/5/14 Boris Lenzinger boris.lenzin...@gmail.com

 Are the type of your fields available on the client side ?
 Le 14 mai 2013 17:40, Dennis Haupt d.haup...@gmail.com a écrit :

 the package the problematic class is in cannot access the gwt classes,
 so it must use serializable. but i have done this several times now, it
 always worked. removing all fields fixed the problem.
 why doesn't the gwt complain about the fields at all, if they are the
 problem?


 2013/5/14 Boris Lenzinger boris.lenzin...@gmail.com

 Consider also the interface other than serializable. It must be
 somerhung around those things...
 Le 14 mai 2013 17:31, Dennis Haupt d.haup...@gmail.com a écrit :

 i'm removing fields step by step now (since it has only 3)


 2013/5/14 Boris Lenzinger boris.lenzin...@gmail.com

 Did you try by just including step by step the class ? I mean just
 add an empty class and check if it is working. I know you made a lot 
 of
 classes so you are skilled. So I guess this is a silly problem. 
 Perhaps
 restarting from scratch may highlight the issue.
 Le 14 mai 2013 17:24, Dennis Haupt d.haup...@gmail.com a
 écrit :

 can i debug *why* the class is not included?


 2013/5/14 Dennis Haupt d.haup...@gmail.com

 please assume that i have already checked the dumb errors. i
 have about 200 serializable classes here, so i know how it works
 (usually...)
 the error message is the one that says not included in the list
 of serializable types. i don't see how posting the code would help 
 without
 providing access to the complete project. it's just a class 
 implementing an
 interface which extends serializable with fields that are all not 
 final and
 all serializable.
 can an interface prevent the class from being serializable?


 2013/5/14 Juan Pablo Gardella gardellajuanpa...@gmail.com

 It does implement Serializable?


 2013/5/14 Dennis Haupt d.haup...@gmail.com

 i deactivated the rpc blacklist
 the class has a default contructor and no final fields
 is it directly used in an rpc method
 there is no error message during compilation

 i have no idea what the reason could be. any ideas?

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




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





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



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




  --
 You received this message because you are subscribed to the Google
 Groups Google Web Toolkit group.
 To unsubscribe from this group and stop receiving emails from it,
 send an email to google-web-toolkit+unsubscr...@googlegroups.com.
 To post to this group, send email to
 google-web

Re: New To GWT: Objects in composite object not aligned correctly

2013-04-27 Thread Boris Lenzinger
Hello,

May be try to use UIBinder and use HTMLPanel so you can have a good control
over the HTML that is generated. That is what I'm doing since Horizontal
and Vertical panels are built with table.
Using HTMLPanel with table gives you a cell per cell control.

Boris


2013/4/25 Chris Brown chris.brown@gmail.com

 I created a composite object for a date range that is supposed to be all
 bottom aligned. My text boxes are not aligned with my listbox and it's
 driving me crazy. Thanks for the help.


 import com.google.gwt.user.client.ui.Composite;
 import com.google.gwt.user.client.ui.HasVerticalAlignment;
 import com.google.gwt.user.client.ui.HorizontalPanel;
 import com.google.gwt.user.client.ui.Label;
 import com.google.gwt.user.client.ui.ListBox;
 import com.google.gwt.user.client.ui.Panel;
 import com.google.gwt.user.client.ui.TextBox;
 import com.google.gwt.user.client.ui.VerticalPanel;

 public class YearWeekInput extends Composite{

 ListBox listBox;
 YearWeekPanel fromPanel;
 YearWeekPanel toPanel;

 public YearWeekInput() {

 HorizontalPanel mainPanel = new HorizontalPanel();
 mainPanel.setVerticalAlignment(HasVerticalAlignment.ALIGN_BOTTOM);
 mainPanel.setSpacing(5);
  mainPanel.add(getListBox());
 mainPanel.add(getFromPanel());
 mainPanel.add(getToPanel());

 initWidget(mainPanel);
 setStyleName(year-week-input);
 }

 private ListBox getListBox(){

 if(listBox == null){
 listBox = new ListBox(false);
 listBox.setVisibleItemCount(1);
 listBox.addItem( Year/Week Single);
 listBox.addItem(Year/Week Range);
 }

 return listBox;
 }

 private YearWeekPanel getFromPanel(){

 if(fromPanel == null){
 fromPanel = new YearWeekPanel(From);
 }

 return fromPanel;
 }

 private YearWeekPanel getToPanel(){

 if(toPanel == null){
 toPanel = new YearWeekPanel(To);
 }

 return toPanel;
 }

 private class YearWeekPanel extends Composite {

 private TextBox year;
 private TextBox week;

 public YearWeekPanel(String title) {

 VerticalPanel mainPanel = new VerticalPanel();
 mainPanel.setVerticalAlignment(HasVerticalAlignment.ALIGN_BOTTOM);
 mainPanel.setBorderWidth(0);

 mainPanel.add(new Label(title));
 mainPanel.add(getTextFields());

 initWidget(mainPanel);
 setStyleName(title + -year-week-panel);
 }

 private Panel getTextFields(){

 HorizontalPanel hPanel = new HorizontalPanel();
 hPanel.setVerticalAlignment(HasVerticalAlignment.ALIGN_BOTTOM);
 hPanel.setSpacing(2);

 hPanel.add(getYearTextBox());
 hPanel.add(getWeekTextBox());

 return hPanel;
 }
  private TextBox getYearTextBox(){
 if(year == null){
 year = new TextBox();
 year.setWidth(4em);
 }
  return year;
 }
  private TextBox getWeekTextBox(){
 if(week == null){
 week = new TextBox();
 week.setWidth(2.5em);
 }
  return week;
 }
 }
 }

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




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




Re: DatePicker next/prev month events

2012-04-06 Thread Boris Lenzinger
Hi,

Create your custom class in the same package as google and you should
workaround the IllegalAccessException (since method addMonth is protected).

Boris

Le 6 avril 2012 09:00, Nikola Markovic dev.mercur...@gmail.com a écrit :

 Bump, still stuck in here :(

 p.s. Thinking of making my own date picker.

  --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/google-web-toolkit/-/gsLA7TQedlUJ.

 To post to this group, send email to google-web-toolkit@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.


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



Re: 2.4 RPC failure

2012-03-30 Thread Boris Lenzinger
Hi,

I have written an application and few month ago I got this error message :
com.google.gwt.user.client.rpc.StatusCodeException: 0
At last I found an explanation (for my case which might not worth for yours
but can give you ideas maybe).

I am developing my app on my laptop. So at home I have a network connection
(I use wireless connection). Then I suspend my laptop (that has at this
time an ip address and a network environment). When I am at my customer
site, I then resume my laptop. No wireless network and not cable network
available for people from outside but I didn't disable my previous network
configuration. Then I try to connect to my app with my browser. So the
browser is doing a call on a local machine with http://localhost:8080/blabla.
And there this message is raised !
After it happened a few times, I tried the following : disable wireless on
my laptop. Then the network configuration is changed. I just have a
127.0.0.1. And then I don't have anymore the error message.

Are your users on laptops or desktops ? Are they connected with cable or
wireless ? I don't know if this can match your case or not but may be the
problem is really related to their network connection (may be lan).

Hope this can give you some ideas to find out what your problem is.

Boris

Le 30 mars 2012 06:29, John Malpas jmal...@calflora.org a écrit :

 I have several apps out there written in GWT 2.4
 Over the last few months, users have started to complain
 about seemingly random RPC failures, both reading and writing.
 I have never yet experienced these errors from my own computer,
 but there are enough users writing in about it that
 it seems that there must be something going wrong -- not just
 one user with a questionable internet connection.

 The manifestation in the onFailure() method of an AsyncCallback
 is usually
   com.google.gwt.user.client.rpc.StatusCodeException: 0

 I found one cooperative user who has been willing to beat on the
 apps for me and send me results.He gets the errors with Firefox 8, IE 8,
 and Chrome.When the RPC calls work, I see custom log messages in
 the tomcat log. When the calls do not work, I see no evidence of any
 activity
 in either the tomcat log or the apache log, so it appears that the RPC
 calls are not reaching the server.

 This morning I changed one of the apps to include a symbol table,
 and to print out a stack trace in a dialog when the failure happens, and
 then
 asked my precious user to try it. He sent back this stack trace,
 copied from the dialog:

 fail to write
 CAUGHT com.google.gwt.user.client.rpc.StatusCodeException: 0
 0 : Unknown.Em(StackTraceCreator.java:168)
 1 : Unknown.Jl(StackTraceCreator.java:421)
 2 : Unknown.RF(StatusCodeException.java:35)
 3 : Unknown.bH(RequestCallbackAdapter.java:209)
 4 : Unknown.bs(Request.java:287)
 5 : Unknown.Bs(RequestBuilder.java:395)
 6 : Unknown.anonymous(XMLHttpRequest.java:287)
 7 : Unknown._l(Impl.java:168)
 8 : Unknown.cm(Impl.java:213)
 9 : Unknown.anonymous(Impl.java:57)

 In broad strokes, I understand that the exception is
 thrown because the browser is unable to do an XMLHttpRequest.
 But more than that, why? I have looked up the line references
 in the 2.4 source modules mentioned in the stack trace above,
 but am still at a loss. The last one is this:

  public final native void setOnReadyStateChange(ReadyStateChangeHandler
 handler) /*-{
 // The 'this' context is always supposed to point to the xhr object in
 the
 // onreadystatechange handler, but we reference it via closure to be
 extra sure.
 var _this = this;
 this.onreadystatechange = $entry(function() {
  287: handl...@com.google.gwt.xhr.client.ReadyStateChangeHandler
 ::onReadyStateChange(Lcom/google/gwt/xhr/client/XMLHttpRequest;)(_this);
 });
   }-*/;

 Any suggestions would be greatly appreciated.

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


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



Re: Are handlers kept registered on PopupPanel when we call hide() on it ?

2012-02-07 Thread Boris Lenzinger
Thank you for your answer Thomas. I'll check this and will come back with
other questions if I still don't understand :-)

Boris


2012/2/6 Thomas Broyer t.bro...@gmail.com

 It looks like the issue is not really the PopupPanel but rather the
 widget(s) you add inside: if you reuse the same widget (either in a single
 PopupPanel that you hide/show, or within several PopupPanel-s during the
 lifetime of the application), then handlers won't be unregistered for you,
 just like for any other widget (the same goes for the CloseHandler attached
 to a PopupPanel: PopupPanel is a widget like any other –except you don't
 add it to a parent widget–, so handlers aren't unregistered automatically).
 If on the other hand you re-create everything from scratch every time, then
 you'll obviously have to register your handlers on the new instances.

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


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



Are handlers kept registered on PopupPanel when we call hide() on it ?

2012-02-06 Thread Boris Lenzinger
Hi,

I was wondering how this is working. I made some code where I registered
some event handlers on a PopupPanel so I can keep the data up to date.
But when I call hide on this popup panel and recreate a new one, then
handlers are registered 2 times and so events are handler 2 times.

I was expecting another behavior : when the popup panel is hidden, I
thought it was some kind of destroy. So I think that my strategy to rebuild
a new PopupPanel is not good. Can you explain me how this should be
designed please ?

Many thanks in advance.

Boris

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



Re: The import cannot be resolved

2011-09-23 Thread Boris Lenzinger
Hi,

Do you use those classes on the client side ? If it the case, it cannot work
since you probably don't have any *.gwt.xml in your jar since this code
cannot be translated to javascript.
Else it is a classpath problem of your running application.

Can you describe please how you launch the application and how you
configured your launcher ?

2011/9/22 programming_man toolu...@gmail.com

 I have gone thru some of the other threads but still cannot resolve
 this issue.
 I am using indigo eclipse.


 I have added the jar sqljdbc4.jar file to the java build path.  When I
 hit the debug as 'web application' the page loads but the following
 errors appear in the Development Mode' tab.

 Line 11: The import com.microsoft cannot be resolved
 Line 49: SQLServerDataSource cannot be resolved to a type

 Any ideas?

 Thanks in advanced.

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



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



Re: Error with Quartz

2011-09-21 Thread Boris Lenzinger
this place ( http://old.nabble.com/java.net---quartz-users-f13536.html ) is
probably a better choice to post your question. Quartz is not related to
GWT.
The above site is dedidated to quartz so may be you would get an answer very
quickly.



2011/9/21 andre_guitar7 andreg...@gmail.com

 I'm running on the server-side, not the client-side.

 I tried to run the System.setSecurityManager (null) on the server
 side, but did not work.

 Does anyone have any tips?

 Thank you!

 

 Eu estou executando no lado do servidor, não do cliente.

 Eu tentei executar o System.setSecurityManager(null) no lado do
 servidor, mas não funcionou.

 Alguém tem alguma dica?

 Obrigado!



 On 21 set, 10:40, Tiago cave...@gmail.com wrote:
  It probably isn't related to GWT. You're probably running with Java
  Security Manager enabled, and your security policy doesn't give your
  app all the permissions Quartz needs. Either don't run with Java
  Security Manager, or arrange it so that you have all necessary
  permissions.
 
  Unless... are you trying to run this code on client side? I don't know
  what Quartz does, but you're probably restricted on what you can do on
  a browser. Dealing with threads the way Quartz does is probably not
  allowed.
 
  --
 
  Provavelmente teu problema não é com GWT. Você deve estar rodando sua
  aplicação com o Java Security Manager ativado, e a na lista de
  permissões necessárias não estão inclusas todas as necessárias para
  rodar o Quartz. Você pode desligar o Security Manager ou dar a sua
  aplicação todas as permissões necessárias.
 
  A não quer você que esteja tentando rodar esse código no browser... Eu
  não sei o que o Quartz faz, mas há limitações quanto ao que se pode
  fazer no browser. Provavelmente o que o Quatz faz com threads não é
  permitido.
 
  On Sep 21, 2:26 pm, Alisson Prestes javalis...@gmail.com wrote:
 
 
 
 
 
 
 
   I've never used Quartz, but it seems that your exception is not related
 to
   GWT. Isn't Quartz used on the server-side? So why is this error coming
 to
   the client-side? If you're using it in a service, try to handle the
 error
   before it comes to the client. The same error occurs when you use
 Quartz
   from another place, i.e., from another app that does not use GWT?
 
   Alisson Presteswww.google.com/profiles/javalisson
 
   On Wed, Sep 21, 2011 at 9:16 AM, andre_guitar7 andreg...@gmail.com
 wrote:
I'm trying to work GWT with Quartz, but gives an error:
 
Caused by: java.security.AccessControlException: access denied
(java.lang.RuntimePermission modifyThreadGroup)
 
What can this be?
 
--
 
Pessoal, estou tentando fazer o Quartz funcionar com GWT, mas ao
executar aparece o erro:
 
Caused by: java.security.AccessControlException: access denied
(java.lang.RuntimePermission modifyThreadGroup)
 
Que pode ser isso?
 
Obrigado!
 
--
You received this message because you are subscribed to the Google
 Groups
Google Web Toolkit group.
To post to this group, send email to
 google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at
   http://groups.google.com/group/google-web-toolkit?hl=en.

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



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



Re: Debug in client side

2011-08-18 Thread Boris Lenzinger
Just to be sure : you are starting the host mode in debug and connect to it
through the http://127.0.0.1:9997/yourApp address ?

Another potential reason is you have error(s) before reaching your
breakpoints and code execution stops.

Could you describe more how you start your application with Eclipse ?

2011/8/18 Marko Borges markoborge...@gmail.com

 Hello!

 I am getting crazy with this!

 How can I debug the client side of an application.

 I am using Eclipse in hosted mode and I use breakpoints in both sides but
 only works for server side. How can I do the same in client side?

 Thankful for attention,
 Mark

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


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



Re: http://www.google.com/hotelfinder

2011-08-01 Thread Boris Lenzinger
the following search on Google gwt slider returns some interesting
results. You should find what you are looking for.

2011/8/1 Deepak Singh deepaksingh...@gmail.com

 Yes.

 So can we expect some features to be made open source / included in GWT by
 google ?
 At lease i need this slider component asap. How it is possible to get that.


 On Mon, Aug 1, 2011 at 5:44 PM, Gal Dolber gal.dol...@gmail.com wrote:

 PD: the feedback feature is amazing!


 On Mon, Aug 1, 2011 at 9:04 AM, Gal Dolber gal.dol...@gmail.com wrote:

 Wow, really nice app.

 1) Yes, its gwt.
 2) Thats not a datagrid, but a pile of divs. Seems to be a
 ScrollPanel(cause it works on ipad) with a FlowPanel inside and a bunch of
 custom components inside it. The row expansion its just a widgets changing
 its contents.
 3) These widgets may be from
 http://code.google.com/p/google-web-toolkit-incubator/ or maybe they did
 custom ones for this app.

 Regards

 On Mon, Aug 1, 2011 at 8:42 AM, Deepak Singh 
 deepaksingh...@gmail.comwrote:

 Hi All,

 Google recently launched its hotel finder application
 http://www.google.com/hotelfinder

 Very nice.
 Some queries regarding this one:

 1) Is this in GWT or some other technology? While inspecting through the
 page source i see gwt-label elements
 2) Select a particular row on the search result and the row gets
 expanded with more details. How it is possible to implement this feature
 with GWT datagrid ?
 3) on the left side, there are some filter options available. Here The
 Two Way Slider component has been used to filter Price per night. How can 
 we
 have / create this component in GWT ?

 Lets start the discussion over the features of this hotelfinder.

 Regards
 Deepak

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




 --
 Guit: Elegant, beautiful, modular and *production ready* gwt
 applications.

 http://code.google.com/p/guit/







 --
 Guit: Elegant, beautiful, modular and *production ready* gwt applications.

 http://code.google.com/p/guit/




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


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


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



Re: TextBox filter

2011-05-20 Thread Boris Lenzinger
Hi,

Is your question about the number of characters or do you want to have a
limited set of characters ?

Boris

2011/5/20 Issam boualem.is...@gmail.com

 Hi all,

 Anyone has an idea about limiting the keyboard entries on a textBox
 (creating a filter for example) or if it exists on GWT ?


 Thanks in advance

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



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



Re: TextBox filter

2011-05-20 Thread Boris Lenzinger
I see 2 ways to do this :
  - onKeyUp you check that the entry is an integer (or a float)
  - you can check that the key entered is a number (warning key code are
differents from pad on the right and numbers above letters).

Boris

2011/5/20 Issam boualem.is...@gmail.com

 Thanks for your answers ,

 My question is about the type of entries (I would like that TextBox
 accepts just interger (int) )

 On 20 mai, 14:14, Boris Lenzinger boris.lenzin...@gmail.com wrote:
  Hi,
 
  Is your question about the number of characters or do you want to have a
  limited set of characters ?
 
  Boris
 
  2011/5/20 Issam boualem.is...@gmail.com
 
 
 
 
 
 
 
   Hi all,
 
   Anyone has an idea about limiting the keyboard entries on a textBox
   (creating a filter for example) or if it exists on GWT ?
 
   Thanks in advance
 
   --
   You received this message because you are subscribed to the Google
 Groups
   Google Web Toolkit group.
   To post to this group, send email to
 google-web-toolkit@googlegroups.com.
   To unsubscribe from this group, send email to
   google-web-toolkit+unsubscr...@googlegroups.com.
   For more options, visit this group at
  http://groups.google.com/group/google-web-toolkit?hl=en.

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



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



Re: MouseMove Events for CellTable / FlexTable

2011-05-12 Thread Boris Lenzinger
Hi,

I had found something like about this on the internet. The following code is
some hint on how to do this.

Boris

class Table extends FlexTable {
  private String headerStyle = nostyle;

  public Table(TableDataSource source, String stylePrefix) {
  super();
  this.setCellPadding(1);
  this.setCellSpacing(0);
  this.setWidth(100%);
  this.setSource( source );

  sinkEvents(Event.ONMOUSEOVER |
  Event.ONMOUSEOUT);
  }


  //
==
  public void onBrowserEvent(Event event) {
  Element td = getEventTargetCell(event);
  if (td == null) return;
  Element tr = DOM.getParent(td);
  switch (DOM.eventGetType(event)) {
  case Event.ONMOUSEOVER: {
  DOM.setStyleAttribute(tr, backgroundColor,
#ffce00);
  onRowRollover(tr);
  break;
  }
  case Event.ONMOUSEOUT: {
  DOM.setStyleAttribute(tr,
backgroundColor,#ff);
  break;
  }
  }

  }
}

2011/5/12 matttai matt...@hotmail.com

 Maybe attach the handler to the table and get the cell source when the
 event is triggered.

 Get the row index from the returned cell, remove all highlight style
 from the table and add a highlight style to the row.

 Not sure how efficient this would be though given the event would need
 to be handled every time the cursor moves a pixel :)

 Would be interested to hear other ideas. Perhaps experimenting with
 mouseOver will yield better results though I am not whether mouseOver
 events continuously fire if the cursor is left in the handling area. I
 don't think they do but thats just a guess :P

 Cheers,

 Matt

 On May 7, 4:41 am, SVR svr...@gmail.com wrote:
  Has anybody tried implementing MouseMove to highlight rows of the table?
 If
  so, can you please share your ideas?
  thanks

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



Re: GWT Designer - full version

2011-03-10 Thread Boris Lenzinger
Can you give the URL where you found this text please ?

Boris

2011/3/10 Eve ng8...@gmail.com

 I understand the update site is to install the plug-in for Eclipse.
 However, on the GWT download page (see text quoted below), it mentions
 there is a GWT Designer full version which is a standalone?
 Is there a separate standalone application that is not an Eclipse plug-
 in? or is this the same as the plug-in?

 GWT Designer
 GWT Designer is a powerful and easy-to-use bi-directional Java GUI
 designer that lets you create user interfaces in minutes with tools
 for intelligent layout assist, drag-and-drop, and automatic code
 generation.
 Note - This is the standalone, full version of GWT Designer. Download
 this version for its extra features, or if you use GXT, GWT-Ext or
 SmartGWT.
 If you have a previous version of GWT Designer installed, please
 uninstall it first. Check out the release notes for more details.
 Download GWT Designer

 Can anyone confirm?
 Thanks
 Eve



 On Mar 9, 4:47 pm, gina ginanebl...@google.com wrote:
  You can install GWT Designer from the Updates sites found here...
 
  http://code.google.com/webtoolkit/tools/download-gwtdesigner.html
 
  On Mar 9, 1:02 pm, András Csányi sayusi.a...@gmail.com wrote:
 
   The eclipse version isnt the full version?
   On 9 Mar 2011 22:00, Eve ng8...@gmail.com wrote: For evaluation,
 is the full version available for download anywhere?
I can only find the Eclipse plug-in from the download site.
 
thanks
 
--
You received this message because you are subscribed to the Google
 Groups
 
   Google Web Toolkit group. To post to this group, send email to
 google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to
 
   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-toolkit@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.



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



Re: GWT Designer - full version

2011-03-10 Thread Boris Lenzinger
This page does not say that GWT Designer is a standalone product :-)
Ok I found the page where Eve found the quote :
http://code.google.com/webtoolkit/download.html

If you click on the Download button for GWT Designer, you see that you are
redirected to the eclipse download. So there is no standalone version as
java editor that is not based on Eclipse (I'm pretty sure).
So you have to use Eclipse with the plugin.

Boris

2011/3/10 Juan Pablo Gardella gardellajuanpa...@gmail.com

 http://code.google.com/webtoolkit/tools/gwtdesigner/index.html

 2011/3/10 Boris Lenzinger boris.lenzin...@gmail.com

 Can you give the URL where you found this text please ?

 Boris

 2011/3/10 Eve ng8...@gmail.com

 I understand the update site is to install the plug-in for Eclipse.
 However, on the GWT download page (see text quoted below), it mentions
 there is a GWT Designer full version which is a standalone?
 Is there a separate standalone application that is not an Eclipse plug-
 in? or is this the same as the plug-in?

 GWT Designer
 GWT Designer is a powerful and easy-to-use bi-directional Java GUI
 designer that lets you create user interfaces in minutes with tools
 for intelligent layout assist, drag-and-drop, and automatic code
 generation.
 Note - This is the standalone, full version of GWT Designer. Download
 this version for its extra features, or if you use GXT, GWT-Ext or
 SmartGWT.
 If you have a previous version of GWT Designer installed, please
 uninstall it first. Check out the release notes for more details.
 Download GWT Designer

 Can anyone confirm?
 Thanks
 Eve



 On Mar 9, 4:47 pm, gina ginanebl...@google.com wrote:
  You can install GWT Designer from the Updates sites found here...
 
  http://code.google.com/webtoolkit/tools/download-gwtdesigner.html
 
  On Mar 9, 1:02 pm, András Csányi sayusi.a...@gmail.com wrote:
 
   The eclipse version isnt the full version?
   On 9 Mar 2011 22:00, Eve ng8...@gmail.com wrote: For
 evaluation, is the full version available for download anywhere?
I can only find the Eclipse plug-in from the download site.
 
thanks
 
--
You received this message because you are subscribed to the Google
 Groups
 
   Google Web Toolkit group. To post to this group, send email to
 google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to
 
   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-toolkit@googlegroups.com
 .
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.


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


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


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



Re: How can I move position of tab headers ?

2011-01-17 Thread Boris Lenzinger
A simple solution :
  margin-left: 100px;
will make the job.

Thank you for your answer !

Boris

2011/1/16 Y2i yur...@gmail.com

 This recent discussion may help

 https://groups.google.com/forum/?fromgroups#!topic/google-web-toolkit/c1zlxMRD4gMhttps://groups.google.com/forum/?fromgroups#%21topic/google-web-toolkit/c1zlxMRD4gM

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


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



How can I move position of tab headers ?

2011-01-16 Thread Boris Lenzinger
Hello,

I would like to display the tab header more on the right. Currently they are
fixed on the left side with a css attribute left that is set to 0.

The code that is generated by GWT is the following :

div class=gwt-TabLayoutPanelTabs style=left: 0px; right: 0px; bottom:
0px;
  inside this, there is the code for tabs.
/div

I thought I could just get the element using code like this :
Element element = (Element)nodeToUpdate;
and then work on the style or remove it :
element.removeAttribute(style);
element.addClassName(CssResources.INSTANCE.commonCss().tabsHeader());
or
  element.getStyle().setLeft(150, Unix.PX)

but unfortunately the style is not changed. I could changed some style that
was not already set (for instance the color) but the one that are already
set, I could not change them.

I don't see other path currently. Does someone have an idea on how to do
that ?

Thank you !

Boris

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



Re: Gwt module sometime not loaded, Only after clicking refresh button it work ?

2011-01-07 Thread Boris Lenzinger
Hi,

Have you tried to set some breakpoints using Firebug ? it could help you to
understand what's going on.

Boris

2011/1/7 cyclingthealps denniswegew...@googlemail.com

 Hi I am also having this problem.
 Does not make a difference if I use Chrome FF or IE.
 Using gwt 2.1 as well.
 I really would like to know as well what to do to solve this.

 Cheers

 Dennis

 On Jan 7, 7:41 am, Sudhakar sudhakar.ferna...@gmail.com wrote:
  I am also experiencing the same issue.I am using Chrome browser in
  Ubuntu 10.10
 
 
 
 
 
 
 
  On Fri, 2011-01-07 at 12:06 +0530, suersh babu wrote:
   Hi,
 
   I am using gwt 2.1,  After uploading my application to production
   server, some time I see my gwt module not loaded, only
   After clicking refresh button it get loaded.
 
   Kindly can any one tell me what could be the reason,  I am very
   interested in this.
 
   --
   Regards
 
   Suresh Babu G
 
   --
   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.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: GIN MVP 2.1 Example

2010-12-20 Thread Boris Lenzinger
Hi,

Check this :
http://code.google.com/p/google-web-toolkit/downloads/detail?name=Tutorial-Contacts.zipcan=2q=

It is probably what you are looking for.

Boris

2010/12/20 Matthew Hill matt2...@gmail.com

 Thanks. I think I understand it a bit better now but an example of it being
 used in MVP would still be useful.

 --
 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: How to install GWT Designer

2010-12-08 Thread Boris Lenzinger
Check this :
http://code.google.com/webtoolkit/tools/download-gwtdesigner.html

This page contains the URLs to supply for installing a new soft under
Eclipse from a site.
To install a software with this method, check this :
http://www.eclipse.org/modeling/emf/updates

The example is for eclipse 3.4 but it is the same for 3.6.


Boris

2010/12/3 Basi Lambanog restyc...@gmail.com

 Hello,
 I'm trying to install GWT Designer onto Eclipse 3.6. The instruction
 says

 In Eclipse, click Help  Install New Software...

 but there is no Help option on the Eclipse menu.

 How else can I install GWT Designer?

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



Re: MVP docs/tutorials/examples

2010-12-07 Thread Boris Lenzinger
Hi,

Did you check this ? http://code.google.com/p/gwt-gae-book . It was
announced few days ago by its writer and it seems to be an excellent work on
this topic...

Boris

2010/12/7 Andrey mino...@gmail.com

 Hello,

 We are going to use GWT 2.1 MVP in our projects.
 The problem is that there seems to be too little information about
 this framework. This doc is very poor:


 http://code.google.com/webtoolkit/doc/latest/DevGuideMvpActivitiesAndPlaces.html

 For example it tells nothing about how to use EventBus, where to place
 event handlers, how to register activities/controllers and so on. The
 HelloMVP example doesn't even contain any custom Event.

 Are there any additional docs/examples/tutorials concerning GWT 2.1
 MVP with its Activities, Places, etc.?

 Thanks in advance!

 --
 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: UiBinding at run time

2010-11-15 Thread Boris Lenzinger
Hi,

I have tried your demo and this is quite impressive !

When do you think you will release something that we can test and use
intensively ? This would be a gread addition to GWT if it was added to the
core.

Congratulations !

Boris

2010/11/12 TedM tedkar...@msn.com

 Hi GWT Community,

 I recently noticed the UiBinding feature in GWT and at first I was
 really excited because I was using something like this in my form
 template prototype.  But I found out the UiBinding is a compile time
 thing, which was a major disadvantage for me.  because I would like to
 make new form or Uis without have to compile or deploy.

 While I was wondering is there any interest in my open sourcing my run
 time uibinding solution (I call bindingFly)?

 Here is a link to my home made prototype hosted on app engine:
 http://gwt-binding-fly.appspot.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.



-- 
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: UiBinding at run time

2010-11-15 Thread Boris Lenzinger
To contact them, I would write a mail to persons that are answering in this
group. May be Chris Conroy would be a good contact.
His address is conroy at google.com (he has posted a lot in the mailing
list).

Keep us up to date.

Boris



2010/11/15 TedM tedkar...@msn.com


 Thanks.

 In terms of time, I don't think it will take that long considering
 I've already built it.  The demo only shows a fraction of what my
 tempting tool can do.

 The only thing i'm waiting on is feedback from gwt core people.
 Before I make the os version, I would like to get there feed back so I
 can match the design to their vision.

 Do you know how I can get in contact with a gwt core person?


 On Nov 15, 3:38 am, Boris Lenzinger boris.lenzin...@gmail.com wrote:
  Hi,
 
  I have tried your demo and this is quite impressive !
 
  When do you think you will release something that we can test and use
  intensively ? This would be a gread addition to GWT if it was added to
 the
  core.
 
  Congratulations !
 
  Boris
 
  2010/11/12 TedM tedkar...@msn.com
 
 
 
   Hi GWT Community,
 
   I recently noticed the UiBinding feature in GWT and at first I was
   really excited because I was using something like this in my form
   template prototype.  But I found out the UiBinding is a compile time
   thing, which was a major disadvantage for me.  because I would like to
   make new form or Uis without have to compile or deploy.
 
   While I was wondering is there any interest in my open sourcing my run
   time uibinding solution (I call bindingFly)?
 
   Here is a link to my home made prototype hosted on app engine:
  http://gwt-binding-fly.appspot.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.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.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: Using Rome in a GWT application

2010-10-19 Thread Boris Lenzinger
 \com.google.appengine.eclipse.sdkbundle.
 1.3.7_1.3.7.v201008311405\appengine-java-sdk-1.3.7\lib\user\orm
 \datanucleus-core-1.1.5.jar;C:\installers\software development\eclipse-
 jee-galileo-SR1-win32\eclipse\plugins
 \com.google.appengine.eclipse.sdkbundle.
 1.3.7_1.3.7.v201008311405\appengine-java-sdk-1.3.7\lib\user\orm
 \datanucleus-jpa-1.1.5.jar;C:\installers\software development\eclipse-
 jee-galileo-SR1-win32\eclipse\plugins
 \com.google.appengine.eclipse.sdkbundle.
 1.3.7_1.3.7.v201008311405\appengine-java-sdk-1.3.7\lib\user\orm
 \geronimo-jpa_3.0_spec-1.1.1.jar;C:\installers\software development
 \eclipse-jee-galileo-SR1-win32\eclipse\plugins
 \com.google.appengine.eclipse.sdkbundle.
 1.3.7_1.3.7.v201008311405\appengine-java-sdk-1.3.7\lib\user\orm
 \geronimo-jta_1.1_spec-1.1.1.jar;C:\installers\software development
 \eclipse-jee-galileo-SR1-win32\eclipse\plugins
 \com.google.appengine.eclipse.sdkbundle.
 1.3.7_1.3.7.v201008311405\appengine-java-sdk-1.3.7\lib\user\orm\jdo2-
 api-2.3-eb.jar;C:\installers\software development\eclipse-jee-galileo-
 SR1-win32\eclipse\plugins\com.google.appengine.eclipse.sdkbundle.
 1.3.7_1.3.7.v201008311405\appengine-java-sdk-1.3.7\lib\appengine-tools-
 api.jar;C:\installers\software development\eclipse-jee-galileo-SR1-
 win32\eclipse\plugins\com.google.gwt.eclipse.sdkbundle.
 2.0.4_2.0.4.v201006301254\gwt-2.0.4\gwt-user.jar;C:\installers
 \software development\eclipse-jee-galileo-SR1-win32\eclipse\plugins
 \com.google.gwt.eclipse.sdkbundle.
 2.0.4_2.0.4.v201006301254\gwt-2.0.4\gwt-dev.jar;C:\Users\Eyal\workspace
 \BooksApp\war\WEB-INF\lib\rome\jdom-1.1.jar;C:\Users\Eyal\workspace
 \BooksApp\war\WEB-INF\lib\rome\rome-1.0.jar;C:\installers\software
 development\eclipse-jee-galileo-SR1-win32\eclipse\plugins
 \com.google.appengine.eclipse.sdkbundle.
 1.3.7_1.3.7.v201008311405\appengine-java-sdk-1.3.7\lib\agent\appengine-
 agent.jar


 On Oct 18, 6:41 pm, Boris Lenzinger boris.lenzin...@gmail.com wrote:
  Hi,
 
  could you give more precisions on how you are setting up your runtime
  environment please ?
  Are you running from Eclipse or are you deploying the war file to an
  application server ?
 
  Have you checked your classpath at runtime ? (a System.out.println on the
  java.class.path variable could be interesting there).
 
  Boris
 
  2010/10/18 Eyal twoworldsf...@gmail.com
 
 
 
   Hi all,
 
   I am using Rome to parse RSS feeds in my GWT application. When I'm
   running the code, which is generic, as a Java application all is well.
   But when I'm attempting to do it through GWT I'm getting the
   following:
 
   com.google.gwt.user.server.rpc.UnexpectedException: Service method
   'public abstract java.lang.String
   com.myapp.client.GreetingService.listUsers() throws
   java.lang.IllegalArgumentException' threw an unexpected exception:
   java.lang.NoClassDefFoundError: com/sun/syndication/io/XmlReader
 
   The class in question, com.sun.syndication.io.XmlReader is part of
   xerces. I've added the xerces jars (including the impl) to the project
   (in Eclipse) but then I get this:
 
   WARNING: Nested in javax.xml.parsers.FactoryConfigurationError:
   Provider org.apache.xerces.jaxp.SAXParserFactoryImpl not found:
   java.lang.ClassNotFoundException:
   org.apache.xerces.jaxp.SAXParserFactoryImpl
 
   Researching this a bit, I found that there is probably a conflict
   between two SAXParserFactoryImpl classes. This problem is associated
   with gwt-gears, or gwt-gadgets. But I am not using any of them.
 
   My project is a simple GWT with very little code in it, and it was
   generated through the Eclipse plugin.
 
   Any ideas? I'll greatly appreciate it...
 
   Thanks,
   Eyal
 
   --
   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.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.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: Using Rome in a GWT application

2010-10-18 Thread Boris Lenzinger
Hi,

could you give more precisions on how you are setting up your runtime
environment please ?
Are you running from Eclipse or are you deploying the war file to an
application server ?

Have you checked your classpath at runtime ? (a System.out.println on the
java.class.path variable could be interesting there).

Boris


2010/10/18 Eyal twoworldsf...@gmail.com

 Hi all,

 I am using Rome to parse RSS feeds in my GWT application. When I'm
 running the code, which is generic, as a Java application all is well.
 But when I'm attempting to do it through GWT I'm getting the
 following:

 com.google.gwt.user.server.rpc.UnexpectedException: Service method
 'public abstract java.lang.String
 com.myapp.client.GreetingService.listUsers() throws
 java.lang.IllegalArgumentException' threw an unexpected exception:
 java.lang.NoClassDefFoundError: com/sun/syndication/io/XmlReader

 The class in question, com.sun.syndication.io.XmlReader is part of
 xerces. I've added the xerces jars (including the impl) to the project
 (in Eclipse) but then I get this:

 WARNING: Nested in javax.xml.parsers.FactoryConfigurationError:
 Provider org.apache.xerces.jaxp.SAXParserFactoryImpl not found:
 java.lang.ClassNotFoundException:
 org.apache.xerces.jaxp.SAXParserFactoryImpl

 Researching this a bit, I found that there is probably a conflict
 between two SAXParserFactoryImpl classes. This problem is associated
 with gwt-gears, or gwt-gadgets. But I am not using any of them.

 My project is a simple GWT with very little code in it, and it was
 generated through the Eclipse plugin.

 Any ideas? I'll greatly appreciate it...

 Thanks,
 Eyal

 --
 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: Calling java from external javascript

2010-10-06 Thread Boris Lenzinger
Thank you for your answer.

This part (calling js from java) is working fine. But my problem is calling
generated javascript from hand written javascript...
The export trick (see MyUtilityClass) does not seem to expose javamethods to
hand written javascript.

How can I call my java code from je javascript ? I have read the syntax in
the dev guide with @package.className::methodeName(parameters) but could not
make it work. I could neither make the export thing work...

I miss something but I cannot see where...

2010/10/6 Y2i yur...@gmail.com

 I think Boris is correct by using $wnd.  I also call my javascript
 library functions from a native method through $wnd, as described
 here:
 http://googlewebtoolkit.blogspot.com/2008/07/getting-to-really-know-gwt-part-1-jsni.html

 Boris' example seems complicated.  At the beginning I would simply
 create a javascript function that calls alert:

 function sayHello(name) {
  alert(Hello from JavaScript,  + name);
 }

 and a native method in my Entry Point class:

 native void sayHelloInJava(String name) /*-{
  $wnd.sayHello(name);
 }-*/;

 (this is exactly as shown in the reference above)

 I use exactly the same approach, except instead of using HTML file I
 place my JS library into a public folder and use script src='lib.js'/
  in my module.
 This technique is described here:

 http://code.google.com/webtoolkit/doc/latest/DevGuideOrganizingProjects.html#DevGuideModules

 Once this worked I would move further.



 On Oct 5, 2:33 pm, Daniel Kurka kurka.dan...@googlemail.com wrote:
  if you are in javascript its not $wnd its just window :)
 
  2010/10/5 Boris Lenzinger boris.lenzin...@gmail.com
 
 
 
   Sorry for the javascript : there is a mistake : variable name is not
   buttonnode but button at return step of the method...
   Anyway the problem still stands ;-)
 
   Boris
 
   2010/10/5 Boris Lenzinger boris.lenzin...@gmail.com
 
   Hi,
 
   I'm currently trying to call a java method from a javascript that
 lives
   outside of the generated javascript from GWT.
 
   What I want to do is the following :
 make the gwt component communicates with a javascript component (in
 both
   ways).
   I have to say that I don't know at all javascript..
 
   The problem I encounter is the following :
 * call to javascript method (generated by GWT) from my handwritten
   javascript does not work : firebug says : $wnd does not exist.
   I thought this variable was always existing in javascript but this
   assumption is may be false.
 
   I think it is quite basic (probably a problem of understanding in
   javascript). I have read the following (this is where I found most of
 the
   code for doing the stuff) :
 
  http://www.gwtapps.com/doc/html/com.google.gwt.doc.DeveloperGuide.Jav.
 ..
   plus others (like
  
 http://www.mail-archive.com/google-web-toolkit@googlegroups.com/msg38...)
 but I'm stuck there.
 
   Here the very basic code to test the feature :
 
   
  The GWT Component
   
   package test.app.client;
 
   import com.google.gwt.core.client.EntryPoint;
   import com.google.gwt.dom.client.DivElement;
   import com.google.gwt.dom.client.Document;
   import com.google.gwt.event.dom.client.ClickEvent;
   import com.google.gwt.event.dom.client.ClickHandler;
   import com.google.gwt.user.client.ui.Button;
   import com.google.gwt.user.client.ui.DialogBox;
   import com.google.gwt.user.client.ui.HTML;
   import com.google.gwt.user.client.ui.RootPanel;
   import com.google.gwt.user.client.ui.VerticalPanel;
   import com.google.gwt.user.client.ui.Widget;
 
   /**
* Entry point classes define codeonModuleLoad()/code.
*/
   public class GwtAndJavascript implements EntryPoint {
 
 JsButton jsButton;
 
 public void onModuleLoad() {
   final Button gwtButton = new Button(Add item to JS !);
 
   final VerticalPanel panel = new VerticalPanel();
   panel.add(gwtButton);
 
   RootPanel.get(sendButtonContainer).add(panel);
   MyUtilityClass.exportStaticMethod();
 
   final ClickHandler handler = new ClickHandler() {
 
 public void onClick(ClickEvent event) {
   jsButton.callSayHello(User);
 }
   };
   gwtButton.addClickHandler(handler);
 
   // Now I want to add javascript button that lives in a js
 script...
   jsButton = new JsButton();
   panel.add(jsButton);
 
 }
 
 private class JsButton extends Widget {
 
   public JsButton() {
 DivElement element = Document.get().createDivElement();
 makeMyGraphicalObject(element);
 setElement(element);
   }
 
   private native void makeMyGraphicalObject(DivElement element) /*-{
 $wnd.createButton(element);
   }-*/;
 
   public native void callSayHello(String name) /*-{
 $wnd.javascriptSayHello(name);
   }-*/;
 
 }
 
   }
 
   ===
   The class that should help to trigger the java method from

Re: Calling java from external javascript

2010-10-06 Thread Boris Lenzinger
Thank you for your suggestions.

At last I found what was wrong (well I found a way to make it work :-) )

First, the call to the method in the onclick was not good. It was defining
an inline function instead of calling directly the variable that was
exported by the MyUtilityClass.

button.onclick = function() { $wnd.sayHello; };

needed to be fixed :

button.onclick = sayHello;

Second the documentation that I have read was probably slightly out of date.
Reading this
http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsJSNI.html#calling(you
can see latest in the url ;-) ) showed a small difference in the
declaration of the new variable sayHello :

 $wnd.computeLoanInterest =
$entry(@mypackage.MyUtilityClass::computeLoanInterest(IFI));
instead of
 $wnd.computeLoanInterest =
@mypackage.MyUtilityClass::computeLoanInterest(IFI);


I have made those 2 changes and now it is working. I post the code in
case someone has the same problem.


Boris

==
Class test.app.GwtAndJavascript
==

package test.app.client;

 import com.google.gwt.core.client.EntryPoint;
 import com.google.gwt.dom.client.DivElement;
 import com.google.gwt.dom.client.Document;
 import com.google.gwt.event.dom.client.ClickEvent;
 import com.google.gwt.event.dom.client.ClickHandler;
 import com.google.gwt.user.client.ui.Button;
 import com.google.gwt.user.client.ui.RootPanel;
 import com.google.gwt.user.client.ui.VerticalPanel;
 import com.google.gwt.user.client.ui.Widget;

 /**
  * Entry point classes define codeonModuleLoad()/code.
  */
 public class GwtAndJavascript implements EntryPoint {

   JsButton boutonJs;

   public void onModuleLoad() {
 final Button gwtButton = new Button(Calling JS from Java !);

 final VerticalPanel panel = new VerticalPanel();
 panel.add(gwtButton);

 RootPanel.get(sendButtonContainer).add(panel);
 MyUtilityClass.exportStaticMethod();


 final ClickHandler handler = new ClickHandler() {

   public void onClick(ClickEvent event) {
 boutonJs.callSayHello(User);
   }
 };
 gwtButton.addClickHandler(handler);

 // Now I want to add javascript button that lives in a js script...
 boutonJs = new JsButton();
 panel.add(boutonJs);

   }

   private class JsButton extends Widget {

 public JsButton() {
   DivElement element = Document.get().createDivElement();
   makeMyGraphicalObject(element);
   setElement(element);
 }

 private native void makeMyGraphicalObject(DivElement element) /*-{
   $wnd.createButton(element);
 }-*/;

 public native void callSayHello(String name) /*-{
   $wnd.javascriptSayHello(name);
 }-*/;

   }

 }

 =
Class test.app.MyUtilityClass
=
package test.app.client;

import com.google.gwt.user.client.Window;

public class MyUtilityClass {

  public static void sayHello() {
Window.alert(Hello from GWT !);
  }

public static native void exportStaticMethod() /*-{
  $wnd.sayHello = $entry(@test.app.client.MyUtilityClass::sayHello());
}-*/;

}


Javascript button.js

function createButton(divElement) {
  var button= document.createElement('input');
  button.setAttribute('type','button');
  button.setAttribute('name','bouton');
  button.setAttribute('value','Calling Java from Javascript');
  divElement.appendChild(button);
  button.onclick = sayHello;

  return button;
}

function javascriptSayHello(name) {
  alert(Hello  + name +  from Javascript);
}

=
HTML file
=
!doctype html
!-- The DOCTYPE declaration above will set the--
!-- browser's rendering engine into   --
!-- Standards Mode. Replacing this declaration  --
!-- with a Quirks Mode doctype may lead to some --
!-- differences in layout.--

html
  head
meta http-equiv=content-type content=text/html; charset=UTF-8

!--   --
!-- Consider inlining CSS to reduce the number of requested files --
!--   --
link type=text/css rel=stylesheet href=GwtAndJavascript.css

!--   --
!-- Any title is fine --
!--   --
titleWeb Application Starter Project/title

!--   --
!-- This script loads your compiled module.   --
!-- If you add any GWT meta tags, they must   --
!-- be added before this line.--
!--   --
script type=text/javascript language=javascript
src=gwtandjavascript/gwtandjavascript.nocache.js/script
script type=text/javascript language=javascript

Re: Calling java from external javascript

2010-10-06 Thread Boris Lenzinger
This is great ! It is working perfectly !

Thank you for pointing this out to me !!

2010/10/6 Yau kvle...@gmail.com

 Officially, you can refer to the following.

 Quoted from
 http://code.google.com/support/bin/answer.py?hl=enanswer=75695

 How can I call one of my GWT Java methods from my application host
 page?Share Comment Print
 In order to accomplish this, you'll first need to create a JSNI method
 that creates a JavaScript method that in turn makes the call to your
 Java method. In your GWT application's onModuleLoad(), you would call
 that JSNI method so that the JavaScript method is defined. From your
 application host page you would then call the created JavaScript
 method.

 Confused yet? It's actually quite simple.

 The code snippet below shows an example of this (courtesy of Robert
 Hanson):
 private native void initPlaylistJS (PlaylistTable pl) /*-{
   $wnd.addClipToPlaylist = function (clipId, clipTitle) {
   p...@com.foo.bar.client.playlisttable::addClip(Ljava/lang/
 String;Ljava/lang/String;)(clipId, clipTitle);
   };
 }-*/;
 In this example, you would need to make a call to initPlaylistJS(pl)
 in your GWT module's onModuleLoad(). Once your GWT application loads,
 the JavaScript method is defined and is callable from outside of the
 GWT application.

 On Oct 6, 4:51 pm, Boris Lenzinger boris.lenzin...@gmail.com wrote:
  Thank you for your suggestions.
 
  At last I found what was wrong (well I found a way to make it work :-) )
 
  First, the call to the method in the onclick was not good. It was
 defining
  an inline function instead of calling directly the variable that was
  exported by the MyUtilityClass.
 
  button.onclick = function() { $wnd.sayHello; };
 
  needed to be fixed :
 
  button.onclick = sayHello;
 
  Second the documentation that I have read was probably slightly out of
 date.
  Reading thishttp://
 code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsJSNI...
  can see latest in the url ;-) ) showed a small difference in the
  declaration of the new variable sayHello :
 
   $wnd.computeLoanInterest =
  $entry(@mypackage.MyUtilityClass::computeLoanInterest(IFI));
  instead of
   $wnd.computeLoanInterest =
  @mypackage.MyUtilityClass::computeLoanInterest(IFI);
 
  I have made those 2 changes and now it is working. I post the code in
  case someone has the same problem.
 
  Boris
 
  ==
  Class test.app.GwtAndJavascript
  ==
 
  package test.app.client;
 
   import com.google.gwt.core.client.EntryPoint;
   import com.google.gwt.dom.client.DivElement;
   import com.google.gwt.dom.client.Document;
   import com.google.gwt.event.dom.client.ClickEvent;
   import com.google.gwt.event.dom.client.ClickHandler;
   import com.google.gwt.user.client.ui.Button;
   import com.google.gwt.user.client.ui.RootPanel;
   import com.google.gwt.user.client.ui.VerticalPanel;
   import com.google.gwt.user.client.ui.Widget;
 
   /**
* Entry point classes define codeonModuleLoad()/code.
*/
   public class GwtAndJavascript implements EntryPoint {
 
 JsButton boutonJs;
 
 public void onModuleLoad() {
   final Button gwtButton = new Button(Calling JS from Java !);
 
   final VerticalPanel panel = new VerticalPanel();
   panel.add(gwtButton);
 
   RootPanel.get(sendButtonContainer).add(panel);
   MyUtilityClass.exportStaticMethod();
 
   final ClickHandler handler = new ClickHandler() {
 
 public void onClick(ClickEvent event) {
   boutonJs.callSayHello(User);
 }
   };
   gwtButton.addClickHandler(handler);
 
   // Now I want to add javascript button that lives in a js script...
   boutonJs = new JsButton();
   panel.add(boutonJs);
 
 }
 
 private class JsButton extends Widget {
 
   public JsButton() {
 DivElement element = Document.get().createDivElement();
 makeMyGraphicalObject(element);
 setElement(element);
   }
 
   private native void makeMyGraphicalObject(DivElement element) /*-{
 $wnd.createButton(element);
   }-*/;
 
   public native void callSayHello(String name) /*-{
 $wnd.javascriptSayHello(name);
   }-*/;
 
 }
 
   }
 
   =
 
  Class test.app.MyUtilityClass
  =
  package test.app.client;
 
  import com.google.gwt.user.client.Window;
 
  public class MyUtilityClass {
 
public static void sayHello() {
  Window.alert(Hello from GWT !);
}
 
  public static native void exportStaticMethod() /*-{
$wnd.sayHello =
 $entry(@test.app.client.MyUtilityClass::sayHello());
  }-*/;
 
  }
 
  
  Javascript button.js
  
  function createButton(divElement) {
var button= document.createElement('input');
button.setAttribute('type','button');
button.setAttribute('name','bouton

Calling java from external javascript

2010-10-05 Thread Boris Lenzinger
Hi,

I'm currently trying to call a java method from a javascript that lives
outside of the generated javascript from GWT.

What I want to do is the following :
  make the gwt component communicates with a javascript component (in both
ways).
I have to say that I don't know at all javascript..

The problem I encounter is the following :
  * call to javascript method (generated by GWT) from my handwritten
javascript does not work : firebug says : $wnd does not exist.
I thought this variable was always existing in javascript but this
assumption is may be false.

I think it is quite basic (probably a problem of understanding in
javascript). I have read the following (this is where I found most of the
code for doing the stuff) :
http://www.gwtapps.com/doc/html/com.google.gwt.doc.DeveloperGuide.JavaScriptNativeInterface.JavaFromJavaScript.html
plus others (like
http://www.mail-archive.com/google-web-toolkit@googlegroups.com/msg38714.html)
but I'm stuck there.

Here the very basic code to test the feature :


   The GWT Component

package test.app.client;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.dom.client.DivElement;
import com.google.gwt.dom.client.Document;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.DialogBox;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.RootPanel;
import com.google.gwt.user.client.ui.VerticalPanel;
import com.google.gwt.user.client.ui.Widget;

/**
 * Entry point classes define codeonModuleLoad()/code.
 */
public class GwtAndJavascript implements EntryPoint {

  JsButton jsButton;

  public void onModuleLoad() {
final Button gwtButton = new Button(Add item to JS !);

final VerticalPanel panel = new VerticalPanel();
panel.add(gwtButton);

RootPanel.get(sendButtonContainer).add(panel);
MyUtilityClass.exportStaticMethod();


final ClickHandler handler = new ClickHandler() {

  public void onClick(ClickEvent event) {
jsButton.callSayHello(User);
  }
};
gwtButton.addClickHandler(handler);

// Now I want to add javascript button that lives in a js script...
jsButton = new JsButton();
panel.add(jsButton);

  }

  private class JsButton extends Widget {

public JsButton() {
  DivElement element = Document.get().createDivElement();
  makeMyGraphicalObject(element);
  setElement(element);
}

private native void makeMyGraphicalObject(DivElement element) /*-{
  $wnd.createButton(element);
}-*/;

public native void callSayHello(String name) /*-{
  $wnd.javascriptSayHello(name);
}-*/;

  }

}

===
The class that should help to trigger the java method from javascript
===
package test.app.client;

import com.google.gwt.user.client.Window;

public class MyUtilityClass {

  public static void sayHello() {
Window.alert(Say Hello !);
  }

public static native void exportStaticMethod() /*-{
  $wnd.sayHello = @test.app.client.MyUtilityClass::sayHello();
}-*/;

}


The HTML page


html
  head
meta http-equiv=content-type content=text/html; charset=UTF-8

!--   --
!-- Consider inlining CSS to reduce the number of requested files --
!--   --
link type=text/css rel=stylesheet href=GwtAndJavascript.css

!--   --
!-- Any title is fine --
!--   --
titleWeb Application Starter Project/title

!--   --
!-- This script loads your compiled module.   --
!-- If you add any GWT meta tags, they must   --
!-- be added before this line.--
!--   --
script type=text/javascript language=javascript
src=gwtandjavascript/gwtandjavascript.nocache.js/script
script type=text/javascript language=javascript
src=button.js/script
  /head

  !--   --
  !-- The body can have arbitrary html, or  --
  !-- you can leave the body empty if you want  --
  !-- to create a completely dynamic UI.--
  !--   --
  body

!-- OPTIONAL: include this if you want history support --
iframe src=javascript:'' id=__gwt_historyFrame tabIndex='-1'
style=position:absolute;width:0;height:0;border:0/iframe

!-- RECOMMENDED if your web app will not function without JavaScript
enabled --
noscript
  div style=width: 22em; position: absolute; left: 50%; margin-left:
-11em; color: red; background-color: white; border: 1px solid 

Re: Calling java from external javascript

2010-10-05 Thread Boris Lenzinger
Sorry for the javascript : there is a mistake : variable name is not
buttonnode but button at return step of the method...
Anyway the problem still stands ;-)

Boris

2010/10/5 Boris Lenzinger boris.lenzin...@gmail.com

 Hi,

 I'm currently trying to call a java method from a javascript that lives
 outside of the generated javascript from GWT.

 What I want to do is the following :
   make the gwt component communicates with a javascript component (in both
 ways).
 I have to say that I don't know at all javascript..

 The problem I encounter is the following :
   * call to javascript method (generated by GWT) from my handwritten
 javascript does not work : firebug says : $wnd does not exist.
 I thought this variable was always existing in javascript but this
 assumption is may be false.

 I think it is quite basic (probably a problem of understanding in
 javascript). I have read the following (this is where I found most of the
 code for doing the stuff) :

 http://www.gwtapps.com/doc/html/com.google.gwt.doc.DeveloperGuide.JavaScriptNativeInterface.JavaFromJavaScript.html
 plus others (like
 http://www.mail-archive.com/google-web-toolkit@googlegroups.com/msg38714.html)
  but I'm stuck there.

 Here the very basic code to test the feature :

 
The GWT Component
 
 package test.app.client;

 import com.google.gwt.core.client.EntryPoint;
 import com.google.gwt.dom.client.DivElement;
 import com.google.gwt.dom.client.Document;
 import com.google.gwt.event.dom.client.ClickEvent;
 import com.google.gwt.event.dom.client.ClickHandler;
 import com.google.gwt.user.client.ui.Button;
 import com.google.gwt.user.client.ui.DialogBox;
 import com.google.gwt.user.client.ui.HTML;
 import com.google.gwt.user.client.ui.RootPanel;
 import com.google.gwt.user.client.ui.VerticalPanel;
 import com.google.gwt.user.client.ui.Widget;

 /**
  * Entry point classes define codeonModuleLoad()/code.
  */
 public class GwtAndJavascript implements EntryPoint {

   JsButton jsButton;

   public void onModuleLoad() {
 final Button gwtButton = new Button(Add item to JS !);

 final VerticalPanel panel = new VerticalPanel();
 panel.add(gwtButton);

 RootPanel.get(sendButtonContainer).add(panel);
 MyUtilityClass.exportStaticMethod();


 final ClickHandler handler = new ClickHandler() {

   public void onClick(ClickEvent event) {
 jsButton.callSayHello(User);
   }
 };
 gwtButton.addClickHandler(handler);

 // Now I want to add javascript button that lives in a js script...
 jsButton = new JsButton();
 panel.add(jsButton);

   }

   private class JsButton extends Widget {

 public JsButton() {
   DivElement element = Document.get().createDivElement();
   makeMyGraphicalObject(element);
   setElement(element);
 }

 private native void makeMyGraphicalObject(DivElement element) /*-{
   $wnd.createButton(element);
 }-*/;

 public native void callSayHello(String name) /*-{
   $wnd.javascriptSayHello(name);
 }-*/;

   }

 }

 ===
 The class that should help to trigger the java method from javascript
 ===
 package test.app.client;

 import com.google.gwt.user.client.Window;

 public class MyUtilityClass {

   public static void sayHello() {
 Window.alert(Say Hello !);
   }

 public static native void exportStaticMethod() /*-{
   $wnd.sayHello = @test.app.client.MyUtilityClass::sayHello();
 }-*/;

 }

 
 The HTML page
 

 html
   head
 meta http-equiv=content-type content=text/html; charset=UTF-8

 !--   --
 !-- Consider inlining CSS to reduce the number of requested files --
 !--   --
 link type=text/css rel=stylesheet href=GwtAndJavascript.css

 !--   --
 !-- Any title is fine --
 !--   --
 titleWeb Application Starter Project/title

 !--   --
 !-- This script loads your compiled module.   --
 !-- If you add any GWT meta tags, they must   --
 !-- be added before this line.--
 !--   --
 script type=text/javascript language=javascript
 src=gwtandjavascript/gwtandjavascript.nocache.js/script
 script type=text/javascript language=javascript
 src=button.js/script
   /head

   !--   --
   !-- The body can have arbitrary html, or  --
   !-- you can leave the body empty if you want  --
   !-- to create a completely dynamic UI.--
   !--   --
   body

 !-- OPTIONAL: include this if you want history support --
 iframe src

Re: Problem with GWT Google-Maps-API 1.1 and IE 6

2010-10-01 Thread Boris Lenzinger
Hi Eric,

Thank you for the link. I have just installed it and tested out.
Unfortunately, this does not really change the thing. It is a little bit
faster but still unusable.

I've installed (just to check the difference) Google Chrome under Windows
and the application runs fine. But with Chrome embedded in IE6, I don't have
the same performances at all.

Boris

2010/10/1 Eric Ayers zun...@google.com

 I'm going to go ahead and steer you away from there because all the
 gwt-maps library is doing is translating your GWT calls into
 javascript calls to the Maps API.  If you are willing to install a
 plugin, try the chrome frame plugin for IE6.

 http://code.google.com/chrome/chromeframe/

 On Fri, Oct 1, 2010 at 8:54 AM, David Chandler (Google)
 drfibona...@google.com wrote:
  Hi Boris,
 
  You might also try posting your question here:
 http://groups.google.com/group/gwt-google-apis
 
  /dmc
  David Chandler
  Developer Programs Engineer, Google Web Toolkit
 
  On Sep 30, 3:26 am, Boris Lenzinger boris.lenzin...@gmail.com wrote:
  Hi everybody,
 
  I'm currently facing a blocking problem when using GWT google map api
  (version 1.1.0) with IE 6.
  GWT version used is 2.0.3.
 
  Here is the context : I have a web interface that displays 2 maps : one
 on
  the left that shows
  a general view and one the right that shows details of a selected zone
 of
  the left map.
 
  The left map displays squares (let's denote them A-square) that are
  clickable. When you click
  on a A-square, the second map (on the right) zooms to show details of
 this
  A-square. This
  A-square is composed of smaller squares (let's denote the B-square).
 
  There are around around 180 B-squares per map. They are also clickable.
 When
  you click on a
  B-square, its color changes according to the context. It is also added
 to a
  list of selected
  squares (or removed if the click is for unselecting it).
 
  I got it working but it is very very slow. It is completely unusable in
  fact. If I
  click on the button for selecting all B-squares, I can see each one
 changing
  of color (takes around
  15 seconds to get all of them  colored).
 
  I've investigated to understand what is going on. First CPU usage is
 raising
  to 50% while applying color.
  It seems that the A-square and B-square (and in fact all polygons) are
  displayed using SVG polygons.
  I have seen this with Firebug when selecting a B-Square. But IE does not
  have native support for SVG and
  I think the problem is that : no native support for SVG.
 
  I have tried to install Abode SVG plugin but it didn't change anything.
 I
  then tried the library
   http://code.google.com/p/sgweb/but it didn't work neither.
  So I really don't know how to solve this.
 
  I have to keep IE 6 as the main browser (it is working almost fine under
  firefox).
 
  Anyone has already faced such thing and solved it ?
 
  Any hint are welcome !
 
  A solution would be to wrap some javascript component into GWT (since
  apparently google maps
  from javascript does not use SVG components from what I understood). But
 I
  would like to make
  pure GWT solution work since it is already coded.
 
  thank you for your help.
 
  Boris
 
  --
  You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
  To post to this group, send email to google-web-toolkit@googlegroups.com
 .
  To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 .
  For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.
 
 



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

 --
 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: Problem with GWT Google-Maps-API 1.1 and IE 6

2010-10-01 Thread Boris Lenzinger
Hi David,

Yes you are right. I will post my message on their mailing list too. Thank
you for the tip.

Boris

2010/10/1 David Chandler (Google) drfibona...@google.com

 Hi Boris,

 You might also try posting your question here:
 http://groups.google.com/group/gwt-google-apis

 /dmc
 David Chandler
 Developer Programs Engineer, Google Web Toolkit

 On Sep 30, 3:26 am, Boris Lenzinger boris.lenzin...@gmail.com wrote:
  Hi everybody,
 
  I'm currently facing a blocking problem when using GWT google map api
  (version 1.1.0) with IE 6.
  GWT version used is 2.0.3.
 
  Here is the context : I have a web interface that displays 2 maps : one
 on
  the left that shows
  a general view and one the right that shows details of a selected zone of
  the left map.
 
  The left map displays squares (let's denote them A-square) that are
  clickable. When you click
  on a A-square, the second map (on the right) zooms to show details of
 this
  A-square. This
  A-square is composed of smaller squares (let's denote the B-square).
 
  There are around around 180 B-squares per map. They are also clickable.
 When
  you click on a
  B-square, its color changes according to the context. It is also added to
 a
  list of selected
  squares (or removed if the click is for unselecting it).
 
  I got it working but it is very very slow. It is completely unusable in
  fact. If I
  click on the button for selecting all B-squares, I can see each one
 changing
  of color (takes around
  15 seconds to get all of them  colored).
 
  I've investigated to understand what is going on. First CPU usage is
 raising
  to 50% while applying color.
  It seems that the A-square and B-square (and in fact all polygons) are
  displayed using SVG polygons.
  I have seen this with Firebug when selecting a B-Square. But IE does not
  have native support for SVG and
  I think the problem is that : no native support for SVG.
 
  I have tried to install Abode SVG plugin but it didn't change anything. I
  then tried the library
   http://code.google.com/p/sgweb/but it didn't work neither.
  So I really don't know how to solve this.
 
  I have to keep IE 6 as the main browser (it is working almost fine under
  firefox).
 
  Anyone has already faced such thing and solved it ?
 
  Any hint are welcome !
 
  A solution would be to wrap some javascript component into GWT (since
  apparently google maps
  from javascript does not use SVG components from what I understood). But
 I
  would like to make
  pure GWT solution work since it is already coded.
 
  thank you for your help.
 
  Boris

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



Problem with GWT Google-Maps-API 1.1 and IE 6

2010-09-30 Thread Boris Lenzinger
Hi everybody,

I'm currently facing a blocking problem when using GWT google map api
(version 1.1.0) with IE 6.
GWT version used is 2.0.3.

Here is the context : I have a web interface that displays 2 maps : one on
the left that shows
a general view and one the right that shows details of a selected zone of
the left map.

The left map displays squares (let's denote them A-square) that are
clickable. When you click
on a A-square, the second map (on the right) zooms to show details of this
A-square. This
A-square is composed of smaller squares (let's denote the B-square).

There are around around 180 B-squares per map. They are also clickable. When
you click on a
B-square, its color changes according to the context. It is also added to a
list of selected
squares (or removed if the click is for unselecting it).

I got it working but it is very very slow. It is completely unusable in
fact. If I
click on the button for selecting all B-squares, I can see each one changing
of color (takes around
15 seconds to get all of them  colored).

I've investigated to understand what is going on. First CPU usage is raising
to 50% while applying color.
It seems that the A-square and B-square (and in fact all polygons) are
displayed using SVG polygons.
I have seen this with Firebug when selecting a B-Square. But IE does not
have native support for SVG and
I think the problem is that : no native support for SVG.

I have tried to install Abode SVG plugin but it didn't change anything. I
then tried the library
 http://code.google.com/p/sgweb/ but it didn't work neither.
So I really don't know how to solve this.

I have to keep IE 6 as the main browser (it is working almost fine under
firefox).

Anyone has already faced such thing and solved it ?

Any hint are welcome !

A solution would be to wrap some javascript component into GWT (since
apparently google maps
from javascript does not use SVG components from what I understood). But I
would like to make
pure GWT solution work since it is already coded.

thank you for your help.

Boris

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