Re: Call external main program

2011-02-15 Thread AlexG
hi daniela,

so, i guess you have a GWT-Web-App, and what you want to do, is to
integrate a
module (Java-Project) to this Web-App.

If this is the case, you have to do it like this:
- In your Java Project, create a .gwt.xml file, like you have one in
your GWT-App.
- Inherit this .gwt.xml file in your GWT-App in its .gwt.xml file. (So
you say the App where
  the Code of your Module is. This is necessary, because the GWT Java
to JS Compiler needs it.)
- If you want to communication between your Module and your GWT-App,
just create a eventBus and
  give it to your Module (via Constructor for example). You can create
and handle events, which
  your Module can fire, and the GWT-App handles it.

I hope this is the problem you have, and that I can help you.

Greets
Alex


On 13 Feb., 20:10, daniela iervolino daniela.ie...@gmail.com wrote:
 Ok. I have a GWT web app and a Java project with a main() method and I
 don't know how to communicate with this java proj from my gwt
 application...

 On 13 Feb, 19:28, Michael.Krog michael.k...@gmail.com wrote:

  Hi..

  Do you want to start an external program on the client or on the
  server?

  -Michael

  On 13 Feb., 11:02, daniela iervolino daniela.ie...@gmail.com wrote:

   Hi,
   I have a GWT web application that must call an external program. This
   program has a main() method like any other program. The problem is
   when I launch the GWT application, it says I have forgotten to inherit
   the required module..
   Can I call the external program without this error?
   Thankc



-- 
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 2.2, guice and gin...

2011-02-15 Thread Carlo Alberto Degli Atti
thanks leszek,

 but I'm experiencing this exception

 No implementation for
javax.inject.Providercom.google.gwt.inject.rebind.GinjectorBindings
was
bound.
  while locating
javax.inject.Providercom.google.gwt.inject.rebind.GinjectorBindings
for parameter 4
at
com.google.gwt.inject.rebind.GinjectorBindings.init(GinjectorBindings.java:
182)
  at
com.google.gwt.inject.rebind.GinjectorGeneratorModule.configure(GinjectorGeneratorModule.java:
69)

Do you know what does it mean?
Is something missing?

Thanks a lot!


On Feb 14, 10:30 pm, leszek leszek.ptokar...@gmail.com wrote:
 I run into the same problem yesterday but finally, after taking new
 GIN snapshot and migrate to GUICE 3.0 (as is described in your post) I
 was successful and everything seems working now. The only problem I
 spent several hours on was that Nullable annotation disappeared from
 Guice internals and it took me a lot of time until I understood what
 was going on.

 http://groups.google.com/group/google-guice/browse_frm/thread/38859fa...

 You have to be prepared for a lot of surprises if you bank on google
 code, is it bad news, but good news is that - on the whole - it works.

 On 14 Lut, 16:57, Carlo Alberto Degli Atti lordk...@gmail.com wrote:







  Hello everybody,

   this morning I had the (bad) idea to update my eclipse environment to use
  gwt 2.2... (with 2.1 everything was fine)...

   now I'm experiencing a lot of problems... maybe it's my fault (I'm a new
  gwt  related techs user)...

   My application is using gin and guice; before this morning I was using gin
  v1.0 and guice 2.0.

   Now:

   *1. after upgrading to gwt (to 2.2) I got this exception (still the
  original guice and gin versions):*

     [WARN] failed JettyContainerService$ApiProxyHandler@ae281c:
  java.lang.NoClassDefFoundError: com/google/inject/internal/Lists

  [WARN] Error starting handlers

  java.lang.NoClassDefFoundError: com/google/inject/internal/Lists

  at com.google.inject.servlet.FiltersModuleBuilder.init(
  FiltersModuleBuilder.java:36)

  at com.google.inject.servlet.ServletModule.init(ServletModule.java:219)

  * 2. then I updated the guice version to 3.0-rc2 *mantaining* the original
  gin version (1.0), but I got this unlikely mix*:

      gin-1.0.jar

      guice-2.0.jar

      guice-servlet-3.0-rc2.jar

     as expected, my application threw this exception:

     [WARN] Error starting handlers

     java.lang.NoClassDefFoundError:
  com/google/inject/internal/util/$Preconditions

  at com.google.inject.servlet.ServletModule.configure(ServletModule.java:44)

  at com.google.inject.AbstractModule.configure(AbstractModule.java:59)

          ...

   *3. after some investigations, I discovered that gwt 3.2 requires a new gin
  (see this post 
  **http://groups.google.com/group/google-gin/browse_thread/thread/70520a...
  ). **I also updated gin to 1.1-2.2-SNAPSHOT. *The dependencies looked right
  now:

      gin-1.1-2.2-20110211.140818-5.jar

      guice-3.0-rc2.jar

      guice-assistedinject-3.0-rc2.jar

      guice-servlet-3.0-rc2.jar

      gwt-servlet-2.2.0.jar

      javax.inject-1.jar

    **BUT* the application threw another exception:*

    com.google.inject.CreationException: Guice creation errors:

    1) No implementation for
  javax.inject.Providercom.google.gwt.inject.rebind.GinjectorBindings was
  bound.

       while locating
  javax.inject.Providercom.google.gwt.inject.rebind.GinjectorBinding

       for parameter 4 at
  com.google.gwt.inject.rebind.GinjectorBindings.init(GinjectorBindings.jav 
  a:182)

       at
  com.google.gwt.inject.rebind.GinjectorGeneratorModule.configure(GinjectorGe 
  neratorModule.java:69)

    So:

    - where am I wrong?

    - do you have suggestions to solve this?

    Thanks in advance for any help

    CA

-- 
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: Create an Image from received bytes on client side - possible?

2011-02-15 Thread Matej Jelovcan
Just to report back my findings.

In short: it works!

So, thank you once more.
Brgds,
MJ

On 2/15/11, Matej Jelovcan zuti...@gmail.com wrote:
 Thanks Sebastian.

 I'll give this a try before I go the pure URL way :)

 Thanks.

 On 2/14/11, Sebastian Rothbucher sebastian.rothbuc...@clarities.de wrote:
 Hi, you might try using a base 64 string as source. So when you have a
 base 64 string, you might try:
 Image myimage=new Image();
 myimage.setUrl(data:image/jpeg;base64,+picdata.getText());
 Maybe this works; to be honest, I'm not 100% sure but GWT seems to do
 this for some image coming with the framework...

 Best regards
 Sebastian Rothbucher

 On 14 Feb., 10:16, MJ zuti...@gmail.com wrote:
 Hey guys.

 I did some researching on this matter but besides ClientBundle I
 failed to find something that would help me here. ClientBundle would
 work OK in case I would have the images as static references, but what
 I am trying to do (just playing around, getting to know this GWT) is
 similar to file explorer. A tree on the left side of my workspace
 shows folders with files inside them. For my purposes, picture files.
 And these folders can be anywhere on the HDD. Now, how would I go
 about sending selected image (or complete folder content) to client
 side?

 What I had in mind is that I would create a widget that would hold an
 Image object on it + perhaps a label or two. Nothing fancy. This
 widget would call a asnyc service to get the picture data from the
 server. Bytes. But, once I would get the data to the client side, how
 can I create an Image object out of it? I did not find a way.

 Alternative I could probably make browsing only possible on such
 folders that are accessible over the internet (virtual folders I think
 is the correct term) and just send over appropriate URLs, since Image
 does accept such parameter. But I would really like to know if
 original idea is feasible. ImageResource from received bytes?

 Thank you all.

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



ui:msg for javascript

2011-02-15 Thread asianCoolz
let say i have short javascript snippet inside uibinder.ui.xml file.
and i want to use i18n. how to pass the ui:msg into javascript?
script


uibinder..
  html
ui:msg key='something'.. /ui:msg

script
   var messageis =  how to pass the ui:msg into here
/script


/html

-- 
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: Network visualization with GWT

2011-02-15 Thread Thomas Broyer
I think I'd rather create a JSNI wrapper around http://thejit.org (would 
require much less work than what you're proposing I guess)

-- 
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: has this patch made it to 2.2

2011-02-15 Thread Thomas Broyer
No: 
http://code.google.com/p/google-web-toolkit/source/browse/tags/2.2.0/user/src/com/google/gwt/place/impl/AbstractPlaceHistoryMapper.java

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

2011-02-15 Thread Thomas Broyer


On Tuesday, February 15, 2011 2:48:42 AM UTC+1, Jambi wrote:

  If you use a SingleSelectionModel, it's as easy as 
  sm.setSelected(sm.getSelectedObject(), false) 

 I am using this method on my CellTable and it works. But somehow I get 
 always an com.google.gwt.event.shared.UmbrellaException: One or more 
 exceptions caught, see full set in UmbrellaException#getCauses 
 Exception. Is this a know issue or do you think that my implementation 
 cout cause the problem? 

 My Code looks like this: 

 ... 
 final SingleSelectionModelMember selectionModel = new 
 SingleSelectionModelMember(); 
 Handler selectionHandler = new SelectionChangeEvent.Handler() { 
 public void onSelectionChange(SelectionChangeEvent event) { 
 Member selection = selectionModel.getSelectedObject(); 
 eventBus.fireEvent(new ShowMemberEvent(selection.getBarcodeID())); 
 selectionModel.setSelected(selection, false); 
 } 
 }; 
 selectionModel.addSelectionChangeHandler(selectionHandler); 
 ...


I think you cannot modify a SelectionModel from within a handler for a 
SelectionChangeEvent that it fired.

But in your case, it looks like you'd rather use a NoSelectionModel.

-- 
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: NullPointerException on stockwatcher tutorial

2011-02-15 Thread Basdl
Hi,

try to debug the problem in development mode.
If RootPanel.get(stockList) supplies null then your html may be
wrong.
When the exception occurs while calling add mainPanel might be null
(don't know if this is permitted).

Best regard,
Basdl

On Feb 13, 10:10 am, Eric penae...@gmail.com wrote:
 Hi! I'm new to GWT.
 I'm working on the tutorials and I'm stuck on Step 3 (http://
 code.google.com/intl/en/webtoolkit/doc/latest/tutorial/buildui.html)
 I have all the code copied, but when debugging as Web Application I
 get a NullPointerException no matter what browser I'm using.

 The problems seems to come from line:
         RootPanel.get(stockList).add(mainPanel);

 The stacktrace is the following:

 01:55:04.589 [ERROR] [stockwatcher] Unable to load module entry point
 class com.google.gwt.sample.stockwatcher.client.StockWatcher (see
 associated exception for details)
 java.lang.NullPointerException: null
     at
 com.google.gwt.sample.stockwatcher.client.StockWatcher.onModuleLoad(StockWatcher.java:
 42)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
     at java.lang.reflect.Method.invoke(Unknown Source)
     at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:
 396)
     at
 com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:
 183)
     at
 com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
 510)
     at
 com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
 352)
     at java.lang.Thread.run(Unknown Source)

 It's probably something simple and/or dumb, but I tried creating the
 whole project from scratch a couple of times and I kept having the
 same error.

 By the way, I'm developing on Win7, GWT 2.1.1, Google App Engine Java
 SDK 1.4.0 and java v. 1.0.0_23

 Any suggestions?
 I will appreciate your help!

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

2011-02-15 Thread Thomas Broyer
How about making the Renderer? aware of the IceCreamProxy-s? When asked to 
render Integer(1), it would look up the IceCreamProxy with ID=Integer(1) and 
render it.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-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: Create an Image from received bytes on client side - possible?

2011-02-15 Thread Thomas Broyer


On Tuesday, February 15, 2011 9:46:32 AM UTC+1, MJ wrote:

 Just to report back my findings.

 In short: it works!

Except of course in IE6 and IE7 which do not support data: URLs; but it 
wouldn't stop me if I were you (kill IE, kill IE, kill IE!) ;-) 

-- 
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: com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException

2011-02-15 Thread denis56
are you using external server and not embedded jetty. If so, you have
to deploy your module in exploded mode, that is not compressed. Then
point your devmode  to the exploded folder on the server:
-war /home/${env_var:USER}/your-exploded-web.war
This allows using dev mode without having to recompile.
good luck
On 12 Feb., 20:06, Fernando Barbat fbar...@gmail.com wrote:
 Yes, it has a zero argument constructor. As I said, once I recompile,
 undeploy and deploy again, the problem goes away.

 I'm using Eclipse and deploy an EAR in Glasfish v3. This EAR contains
 an EJB jar, a GWT WAR and other jars. I noted that
 IncompatibleRemoteServiceException sometimes raises up after I change
 EJB code.

 It's not enough with undeploy and deploy. I also have to recompile to
 get everything working.

 Maybe it is a problem with packaging. Maybe the RPC generated security
 files are not getting into the EAR properly.

 Any idea about how to solve this? Any idea about how to disable that
 security feature?

 Thanks.

 On 11 feb, 16:58, nacho vela.igna...@gmail.com wrote:







  I think that your trouble is that the classes compiled to JS are different
  to the classes that you have in the server.

  Using dev mode after change in a class that I use in a RPC I just reload the
  page and the problem is gone.

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



isDeployed function

2011-02-15 Thread Jan
Hi,

I have some code on the server side of my application which should
only be executed locally in development mode.
Therefore I would like to have an isDeployed()-function to control
whether or not it should be executed.
Does anybody know of such a function or is there even a way to remove
such code parts like it is the case for assert?

Thank you very much
Jan

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



GWT projects/Eclipse being too slow

2011-02-15 Thread shahid
I am running my GWT projects using Eclipse Helios with GWT 2.1.0. I
have got JRE6 installed. I often experience extremely slow  Eclipse
start up times. This morning it took me an hour to start up my GWT
projects in Eclipse. I am running Windows 7 with a 3GB active memory.
I wonder if anyone else out there have had the same problem and if you
could suggest any solution you may have tried. So far I have tried the
following:

 - Increasing the memory in the eclipse.ini file
 - Specifying a VM on the command line
 - Deleting the workspace

but none of these have been of much help.

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



GWT 2.2 and WEB-INF/deploy

2011-02-15 Thread Filipe Sousa
Hi,

I'm trying the new version of GWT (2.2) and noticed that after compiling the 
project I'm getting a deploy folder inside the WEB-INF. Do I have to pack 
this folder inside the war file?

-- 
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: ui:msg for javascript

2011-02-15 Thread Thomas Broyer


On Tuesday, February 15, 2011 10:27:16 AM UTC+1, asianCoolz wrote:

 let say i have short javascript snippet inside uibinder.ui.xml file.


Beware that it's likely to break sooner than later:

Note: When inserted using the document.write() method, script elements 
execute (typically synchronously), but when inserted using innerHTML and 
outerHTML attributes, they do not execute at all.

— Source: http://dev.w3.org/html5/spec/scripting-1.html#dom-script-text
 


 and i want to use i18n. how to pass the ui:msg into javascript? 
 script 


 uibinder.. 
   html 
 ui:msg key='something'.. /ui:msg 

 script 
var messageis =  how to pass the ui:msg into here 
 /script


The script is just some HTML markup, no different from a div (from the 
point of view of UiBinder), so it shouldn't be any different from using 
ui:msg elsewhere (except that you'd have to give particular attention to 
quotes, apostrophes, backslashes and line feeds, as they could easily break 
your script).

Or are you talking about accessing some ui:msg that has been used 
elsewhere in the ui.xml file? if so, then wrap the ui:msg within a span 
so you can later refer to the span's innerHTML.
 

-- 
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 projects/Eclipse being too slow

2011-02-15 Thread Thomas Broyer
Are you using the 2.2 version of the Google Plugin for Eclipse? (the version 
of the GWT SDK doesn't matter) If not, you might be running in to this 
issue: http://code.google.com/p/google-web-toolkit/issues/detail?id=5773

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

-- 
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: migrate GWT 2.1.1 to 2.2 error

2011-02-15 Thread Alex Nederlof
I Got the same problem. I generated a new app with the new webAppCreator and
it gives the same error.

On Tue, Feb 15, 2011 at 7:46 AM, Brice Beaumesnil skalim...@gmail.comwrote:

 Hello, i just try GWT 2.2 on my project, i just change my POM file to use
 version 2.2 and when i try to compile i have this error :

 Loading inherited module 'com.google.gwt.user.User'
 [INFO]Loading inherited module 'com.google.gwt.user.RemoteService'
 [INFO]   [ERROR] Unexpected error while processing XML
 [INFO] java.lang.NoClassDefFoundError: com/google/gwt/core/ext/GeneratorExt
 [INFO] at java.lang.ClassLoader.defineClass1(Native Method)
 [INFO] at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
 [INFO] at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
 [INFO] at
 java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
 [INFO] at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
 [INFO] at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
 [INFO] at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
 [INFO] at java.security.AccessController.doPrivileged(Native Method)
 [INFO] at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
 [INFO] at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
 [INFO] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
 [INFO] at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
 [INFO] at
 com.google.gwt.dev.cfg.ModuleDefSchema$ClassAttrCvt.convertToArg(ModuleDefSchema.java:778)
 [INFO] at
 com.google.gwt.dev.util.xml.HandlerArgs.convertToArg(HandlerArgs.java:64)
 [INFO] at
 com.google.gwt.dev.util.xml.HandlerMethod.invokeBegin(HandlerMethod.java:221)
 [INFO] at
 com.google.gwt.dev.util.xml.ReflectiveParser$Impl.startElement(ReflectiveParser.java:274)
 ...

 Idid'nt have any problem with older version of GWT.

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



adding gwt entry point to struts web project

2011-02-15 Thread mariyan nenchev
Hi,

I have standard struts web project build with maven.
I want to add one jps in this web project that hosts gwt entry point. For
this I created separate project for my gwt stuff, which is also build with
maven and produce .jar file  (the jar is as lib and contains *.java).
I added this jar (and gwt dependencies to the struts pom). How can i tell
maven to compile and put the gwt code from the jar in the struts war?

Regards.

-- 
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: Can CellWidgets contain custom composite widgets ?

2011-02-15 Thread Stephanie Brubaker
Cell support in UiBinder is not available in GWT 2.2, but it will be
included in an upcoming release.  Stay tuned!

--Stephanie

On Mon, Feb 14, 2011 at 6:56 AM, dilbert goran.stoj...@gmail.com wrote:

 Is the UiBinder variation available in GWT 2.2? If it is, is there any
 example on how to use it ?

 Thanks.


 On Wednesday, February 2, 2011 4:06:35 PM UTC+1, John LaBanca wrote:

 Also, we're working on a variation of UiBinder that can generate HTML
 strings and works with Cells.  That should make it easier to template
 complex cells using HTML/XML.

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




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



Re: Alignment of cells in a CompositeCell

2011-02-15 Thread Murali Krishna
Can't this be done using CellTree?

On Mon, Feb 14, 2011 at 4:40 PM, John LaBanca jlaba...@google.com wrote:

 You could use a table structure and set the width of the first cell with
 the label:
 table style=table-layout:fixed;
   tr
 td width=20emLabel:/td
 td width=40emContent/td
   /tr
 /table

 Please cc google-web-toolkit@googlegroups.com on questions about GWT, as
 other people may know the answer or have the same question.  That way, the
 answers get indexed and others can search for them.

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



 On Mon, Feb 14, 2011 at 11:10 AM, Murali Krishna 
 muralikrishn...@gmail.com wrote:

 Hi John,

 Could you please let me know if it is possible to align the cells in a
 composite cell.

 I'm attaching two screenshots along with this mail.

 As you can see from the screenshots when the values are populated the cell
 alignment doesn't look good.

 Is there any way we can do this properly.

 Thanks in advance

 Murali




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



Network visualization with GWT

2011-02-15 Thread Daniel
I'd like to integrate network visualization into my GWT app. Here's what 
I've found thus far:

*Drawing:*
gwt graphics http://code.google.com/p/gwt-graphics/

*Network libraries:*
graphviz http://www.graphviz.org (specifically neato for the layout) 
JUNG http://jung.sourceforge.net (doesn't work client side - depends on 
all kinds of stuff)

There's also several Javascript libraries that I might be able to hook into 
with JSNI. This could get messy. The HTML5 canvas is out due to poor IE 
support.
(I also posed this question on stackoverflow - 
linkhttp://stackoverflow.com/questions/4952504/visualizing-networks-in-gwt
)

What do you think would work?

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



ckeckbox in a cell

2011-02-15 Thread Nuvoletta
Hi, I need to create a table with a column of checkbox for delete
correspondent row.
How can I do that?

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



Jetty 7.2 continuation and gwt-rpc

2011-02-15 Thread Guy K Hillyer
JSR315 servlet 3.0 specifies a new async api that allows the
suspension of a request.  A servlet's doGet or doPost method can
establish an async context and then return.  The request is not
completed at that time (no response is sent to the client/browser).
Later a server event or a timeout can cause the doGet/doPost to be
invoked again, at which time it can deliver a response to the original
request.

In Jetty 7.2, using servlet spec 2.5, this model is followed; but the
API is slightly different, and specific to Jetty.  The key point is
that the servlet's doPost returns immediately after calling suspend,
as in JSR315.  The usage is something like this:

  doPost(...) {
   Continuation c = ContinuationSupport.getContinuation(request);

   if (need to suspend) {
   c.suspend();
   return;
  }

  ... process the request ...
  }

After the return, the request is in a suspended state.  Unfortunately,
suspending and then returning doesn't work directly in gwt-rpc service
implementation methods, because when such a method returns,  the
returned value is always sent back to the client, regardless of the
request's continuation state.

I found a way to use continuation in a gwt-rpc service method: by
throwing an exception (MyContinuationException) immediately after the
call to continuation.suspend.  This exception is caught in
RPC.invokeAndEncodeResponse, and recorded as the cause of an
UnexpectedException, which is caught in
AbstractRemoteServiceServlet.doPost, and passed to the method
doUnexpectedFailure in that class. My servlet overrides
doUnexpectedFailure.  If the passed exception has
MyContinuationException as its cause, then doUnexpectedFailure simply
returns, causing doGet to return without sending a response, and thus
to behave properly wrt suspension.  Otherwise it calls
super.doUnexpectedFailure.

There is some obsolete and confusing information on the web about
jetty continuations and GWT, because both systems have evolved over
time.  In earlier versions, the throw was done in the suspend method;
this was part of Jetty's original design for continuations, but it
appears that negotiations in the JSR315 committee resulted in its
elimination (that's just speculation, I didn't actually research it).
Essentially, I just re-used Jetty's earlier approach to work around
the problem of using continuation with gwt-rpc.  It all seems so
straightforward now, but I spent half a day figuring it out!

It's also necessary still to override
AbstractRemoteServiceServlet.readContent, as mentioned in
http://docs.codehaus.org/display/JETTY/GWT.

I'd like to hear if anyone notices a problem with this solution, or
just knows something I don't know about the subject.

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



ClientBundle images missing in IE8

2011-02-15 Thread socratesJ
Two of the images in a ClientBundle I'm using don't show up at all in
IE8, but they show up fine in Firefox. Other images from this bundle
work in IE8, so I'm not sure what the problem is. I've also discovered
that if I replace the problematic images with images of the same size
and same compression method, I can get the replacements to work in
IE8.

If I use the images directly (as opposed to using a ClientBundle), it
also works. So the problem seems to be using a ClientBundle.

Any thoughts?

-- 
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: GPE auto-complete only partially working for UiBinder tags

2011-02-15 Thread Florin Malita
On Mon, Feb 14, 2011 at 5:41 PM, miller millermich...@gmail.com wrote:

 I have been seeing the same issue since loading the GWT Designer tools.  I
 am still on 1.4.1.v201012170127.

 The warning says:
 Unhandled event loop exception

 The top of my stack trace is:
 java.lang.NullPointerException
 at
 com.google.gwt.eclipse.core.uibinder.contentassist.AbstractCompletionProposal.getActiveViewer(AbstractCompletionProposal.java:136)


Thanks Michael.

Can you trigger this consistently or it's a spurious event?

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



Safari loses anchor on redirect

2011-02-15 Thread skatto
My GWT app redirect to a single-sign-on server for authentication.
My problem is, on redirect, Safari drops the anchor(#) part of the
url, causing bookmark to not work correctly.
This works fine on other browser, like Firefox and Chrome.

Has anyone encounter this problem, or better yet, a workaround to
it?
Any help would be greatly appreciated.

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



AsyncCallback's onSuccess nor onFailure is getting called --Please help

2011-02-15 Thread kiran7...@gmail.com
Hi ,

I have a GWT Client , which is calling JDBC Code on server .
The problem is that the after executing the method , AsyncCallback's
success nor the failure is not being getting called , please help

This is my EntryPoint class :

Panel panel = RootPanel.get();
final ListBox lb = new ListBox();
lb.addItem(One);
panel.add(lb);

lb.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent event) {
loadCampaignList();
}


public void loadCampaignList() {
inter.getInfo1(new 
AsyncCallbackArrayListMyBean() {
public void 
onSuccess(ArrayListMyBean result)
{
System.out.println(Into success)
}

public void 
onFailure(Throwable caught) {
 
System.out.println(caught.getMessage());

}
});


This is my Server side implementation code , which is working fine

public class CInterfaceImpl extends RemoteServiceServlet implements
CInterface {

public static ArrayListMyBean list1Elem;

public ArrayListMyBean getInfo1() {
list1Elem = new ArrayListMyBean();
System.out.println(Sai Ntha);
Connection con = null;
String url = jdbc:mysql://localhost:3306/;
String db = test;
String driver = com.mysql.jdbc.Driver;
String user = root;
String pass = root;

try {
Class.forName(driver);

con = DriverManager.getConnection(url + db, user, pass);
Statement st = con.createStatement();
ResultSet rs = st.executeQuery(select First , Second 
from POC);
while (rs.next()) {
System.out.println(Into the rs.next 
conditin33);
MyBean bean = new MyBean();
bean.setFirst(rs.getInt(1));
bean.setFirst(rs.getInt(2));
list1Elem.add(bean);

}

Iterator itr4 = list1Elem.iterator();
while (itr4.hasNext()) {

MyBean ban = (MyBean) itr4.next();
System.out.println(ban.getFirst());
System.out.println(ban.getSecond());

}

con.close();

} catch (Exception ex) {
System.out.print(ex.getMessage());
}
return list1Elem;
}

}

This is my DTO

package com.server;

import java.io.Serializable;

import com.google.gwt.user.client.rpc.IsSerializable;

public class MyBean  implements IsSerializable{

public MyBean()
{

}

private int First ;
public int getFirst() {
return First;
}
public void setFirst(int first) {
First = first;
}
public int getSecond() {
return Second;
}
public void setSecond(int second) {
Second = second;
}
private int Second ;



}


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



Re: Problem with AsyncCallback onSuccess result is null

2011-02-15 Thread Basdl
Hi,

the problem is in setHeadline in Purchase - it must be:

public void setHeadline(String headline){
  this.headline = headline;
}

Best regards,
Basdl

On Feb 13, 12:14 am, Bastian bastian.la...@hotmail.de wrote:
 Hello,

 I hope everyone is fine. I have started to use RPC’s with GWT. I have
 worked through the examples and tutorials and I believe understand how
 it works. Now, I have created my own class to serialize and use in an
 asynchronous callback so that the client can receive data about a
 purchase from a server. Everything compiles properly and the onSuccess
 method gets executed, but when I try to read the received data, it
 only is “Null”. Does anyone have an idea what might be wrong with my
 code?

 Thanks a lot.

 Best regards,

 Bastian

 Here is my code:

 Class to store the data in client package:

 import java.io.Serializable;

 @SuppressWarnings(serial)
 public class Purchase implements Serializable {

           private String username;
           private String headline;
           private String description;

           public Purchase()
           {

           }

           public String getUsername(){
                 return username;
           }

           public String getHeadline(){
                   return this.headline;
           }

           public String getDescription(){
                   return description;
           }

           public void setUsername(String username){
                   this.username = username;
           }

           public void setHeadline(String headline){
                   this.username = headline;
           }

           public void setDescription(String description){
                   this.description = description;
           }

 }

 Service Interface in client package:

 import com.google.gwt.user.client.rpc.RemoteService;
 import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

 @RemoteServiceRelativePath(collectivePurchase)
 public interface CollectivePurchaseService extends RemoteService {
   Purchase getCollectivePurchase(String username);

 }

 Async Interface in the client package:

 import com.google.gwt.user.client.rpc.AsyncCallback;

 public interface CollectivePurchaseServiceAsync {

   void getCollectivePurchase(String username, AsyncCallbackPurchase
 callback);

 }

 Server implementation:

 import com.google.gwt.user.server.rpc.RemoteServiceServlet;

 @SuppressWarnings(serial)
 public class CollectivePurchaseServiceImpl extends
 RemoteServiceServlet implements CollectivePurchaseService {

 public Purchase getCollectivePurchase(String username) {

 com.biddrocket.secretrocket.client.Purchase collective = new
 com.biddrocket.secretrocket.client.Purchase();
                 collective.setUsername(brian);
                 collective.setHeadline(motor bike);
                 collective.setDescription(most amazing bike);

                 return collective;

         }

 }

 Client entry point:

 CollectivePurchaseServiceAsync collectivePurchaseService =
 (CollectivePurchaseServiceAsync)
 GWT.create(CollectivePurchaseService.class);

 collectivePurchaseService.getCollectivePurchase(brian ley, new
 AsyncCallbackPurchase() {
                                                 public void 
 onFailure(Throwable caught) {
                                                         
 Window.alert(caught.getLocalizedMessage());
                                                 }
                                                 @Override
                                                 public void 
 onSuccess(Purchase result) {
                                                          update(result);

                                                 }
                                         });

                   //Make the call to the RPC to get the headline for the 
 gallery
 showcase
                   //collectivePurchaseService.getHeadline(brian, callback);
           }
           public void update(Purchase collective){
                   Window.alert(collective.getHeadline());
           }

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



GWT and Java 1.6

2011-02-15 Thread Johan
Hi,
I get a error starting my GWT application from within Eclipse
(acctually springsource tool suite).

Compiling module com.dotoday.dataminer.Dataminer
   Validating newly compiled units
  [ERROR] Errors in 'file:/home/johan/Documents/workspace-
sts-2.5.0.RELEASE/DoTodayDataMiner/src/main/java/com/dotoday/dataminer/
shared/services/EmployeeServiceImpl.java'
 [ERROR] Line 5: The import javax.annotation cannot be
resolved
 [ERROR] Line 6: The import javax.annotation cannot be
resolved
 [ERROR] Line 20: PostConstruct cannot be resolved to a type
 [ERROR] Line 24: PreDestroy cannot be resolved to a type
   Compiling 6 permutations
  Compiling permutation 0...
  Compiling permutation 1...
  Compiling permutation 2...
  Compiling permutation 3...
  Compiling permutation 4...
  Compiling permutation 5...
   Compile of permutations succeeded
Linking into /home/johan/Documents/workspace-sts-2.5.0.RELEASE/
DoTodayDataMiner/target/dataminer
   Link succeeded
   Compilation succeeded -- 31.267s


GWT does not understand javax.annotations and postConstruct/
preConstruct.
I am quite new at GWT, what can be wrong here??

Thanks
/Johan

-- 
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: Problem with AsyncCallback onSuccess result is null

2011-02-15 Thread Greg Dougherty
Is there some reason why you're implementing Serializable rather than
IsSerializable?  Have you taken care of all the fiddly bits you have
to deal with to get Serializable to work with GWT?

http://code.google.com/webtoolkit/doc/trunk/FAQ_Server.html#Does_the_GWT_RPC_system_support_the_use_of_java.io.Serializable

Greg

On Feb 12, 5:14 pm, Bastian bastian.la...@hotmail.de wrote:
 Hello,

 I hope everyone is fine. I have started to use RPC’s with GWT. I have
 worked through the examples and tutorials and I believe understand how
 it works. Now, I have created my own class to serialize and use in an
 asynchronous callback so that the client can receive data about a
 purchase from a server. Everything compiles properly and the onSuccess
 method gets executed, but when I try to read the received data, it
 only is “Null”. Does anyone have an idea what might be wrong with my
 code?

 Thanks a lot.

 Best regards,

 Bastian

 Here is my code:

 Class to store the data in client package:

 import java.io.Serializable;

 @SuppressWarnings(serial)
 public class Purchase implements Serializable {

           private String username;
           private String headline;
           private String description;

           public Purchase()
           {

           }

           public String getUsername(){
                 return username;
           }

           public String getHeadline(){
                   return this.headline;
           }

           public String getDescription(){
                   return description;
           }

           public void setUsername(String username){
                   this.username = username;
           }

           public void setHeadline(String headline){
                   this.username = headline;
           }

           public void setDescription(String description){
                   this.description = description;
           }

 }

 Service Interface in client package:

 import com.google.gwt.user.client.rpc.RemoteService;
 import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

 @RemoteServiceRelativePath(collectivePurchase)
 public interface CollectivePurchaseService extends RemoteService {
   Purchase getCollectivePurchase(String username);

 }

 Async Interface in the client package:

 import com.google.gwt.user.client.rpc.AsyncCallback;

 public interface CollectivePurchaseServiceAsync {

   void getCollectivePurchase(String username, AsyncCallbackPurchase
 callback);

 }

 Server implementation:

 import com.google.gwt.user.server.rpc.RemoteServiceServlet;

 @SuppressWarnings(serial)
 public class CollectivePurchaseServiceImpl extends
 RemoteServiceServlet implements CollectivePurchaseService {

 public Purchase getCollectivePurchase(String username) {

 com.biddrocket.secretrocket.client.Purchase collective = new
 com.biddrocket.secretrocket.client.Purchase();
                 collective.setUsername(brian);
                 collective.setHeadline(motor bike);
                 collective.setDescription(most amazing bike);

                 return collective;

         }

 }

 Client entry point:

 CollectivePurchaseServiceAsync collectivePurchaseService =
 (CollectivePurchaseServiceAsync)
 GWT.create(CollectivePurchaseService.class);

 collectivePurchaseService.getCollectivePurchase(brian ley, new
 AsyncCallbackPurchase() {
                                                 public void 
 onFailure(Throwable caught) {
                                                         
 Window.alert(caught.getLocalizedMessage());
                                                 }
                                                 @Override
                                                 public void 
 onSuccess(Purchase result) {
                                                          update(result);

                                                 }
                                         });

                   //Make the call to the RPC to get the headline for the 
 gallery
 showcase
                   //collectivePurchaseService.getHeadline(brian, callback);
           }
           public void update(Purchase collective){
                   Window.alert(collective.getHeadline());
           }

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



Migrating from GWT 1.7 to GWT 2.x

2011-02-15 Thread Kwen K. Liu
Hi Guys,

I have just got in hand a old version of a Gwt app that used GWT 1.7,
currently I want to migrate it to GWT2.x( probably 2.2).

I searched online but got nothing very useful, basically, I have tried
to replace the old gwt-usr.jar  gwt-servlet.jar in the build path
with the corresponding ones from GWT 2.2, but has got the following
error:


compile.gwt:

 [exec] Loading module 'com.iwp.navistar.NavistarClient'
 [exec]Loading inherited module 'com.google.gwt.user.User'
 [exec]   Loading inherited module
'com.google.gwt.canvas.Canvas'
 [exec]  Loading inherited module
'com.google.gwt.canvas.dom.DOM'
 [exec] Loading inherited module
'com.google.gwt.dom.DOM'
 [exec]Loading inherited module
'com.google.gwt.core.Core'
 [exec]   Loading inherited module
'com.google.gwt.core.CompilerParameters'
 [exec]  [ERROR] Line 23: Unexpected element
'define-configuration-property'
 [exec]  [ERROR] Failure while parsing XML

 [exec] com.google.gwt.core.ext.UnableToCompleteException: (see
previous log entries)
 [exec]  at
com.google.gwt.dev.util.xml.DefaultSchema.onUnexpectedElement(DefaultSchema.java:
80)
 [exec]  at
com.google.gwt.dev.util.xml.Schema.onUnexpectedElement(Schema.java:93)
--

So, can someone give me some help here?

Thank you!

Kwen

-- 
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: NullPointerException on stockwatcher tutorial

2011-02-15 Thread iuiz
I got the same problem running the tutorial under ARCH Linux with
Eclipse Helios, but without the App Engine. However I use gwt-2-2-0.

-- 
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: migrate GWT 2.1.1 to 2.2 error

2011-02-15 Thread F. Lancer
Hi, Brice.

Try  to add 'gwt-dev-2.2.0.jar' to your project and rebuild.

pom.xml:
dependency
groupIdcom.google.gwt/groupId
artifactIdgwt-dev/artifactId
version2.2.0/version
typejar/type
scopecompile/scope
/dependency

You will have [WARNING] Don't declare gwt-dev as a project
dependency. This may introduce complex dependency conflicts but you
project will be built.Probably :)

Regards,

Alex.

On Feb 15, 8:46 am, Brice Beaumesnil skalim...@gmail.com wrote:
 Hello, i just try GWT 2.2 on my project, i just change my POM file to use
 version 2.2 and when i try to compile i have this error :

 Loading inherited module 'com.google.gwt.user.User'
 [INFO]    Loading inherited module 'com.google.gwt.user.RemoteService'
 [INFO]       [ERROR] Unexpected error while processing XML
 [INFO] java.lang.NoClassDefFoundError: com/google/gwt/core/ext/GeneratorExt
 [INFO]     at java.lang.ClassLoader.defineClass1(Native Method)
 [INFO]     at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
 [INFO]     at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
 [INFO]     at
 java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
 [INFO]     at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
 [INFO]     at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
 [INFO]     at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
 [INFO]     at java.security.AccessController.doPrivileged(Native Method)
 [INFO]     at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
 [INFO]     at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
 [INFO]     at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
 [INFO]     at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
 [INFO]     at
 com.google.gwt.dev.cfg.ModuleDefSchema$ClassAttrCvt.convertToArg(ModuleDefS­chema.java:778)
 [INFO]     at
 com.google.gwt.dev.util.xml.HandlerArgs.convertToArg(HandlerArgs.java:64)
 [INFO]     at
 com.google.gwt.dev.util.xml.HandlerMethod.invokeBegin(HandlerMethod.java:22­1)
 [INFO]     at
 com.google.gwt.dev.util.xml.ReflectiveParser$Impl.startElement(ReflectivePa­rser.java:274)
 ...

 Idid'nt have any problem with older version of GWT.

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



ProxyEditView, ProxyRenderer etc...

2011-02-15 Thread George Moschovitis
The Expenses example uses classes/interfaces like:

ProxyEditView,
ProxyRenderer,
etc...

where can I find any documentation about these classes?

thanks in advance,
-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-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: isDeployed function

2011-02-15 Thread David Chandler
You can use GWT.isProdMode()

/dmc

On Tue, Feb 15, 2011 at 5:21 AM, Jan jan.morl...@googlemail.com wrote:

 Hi,

 I have some code on the server side of my application which should
 only be executed locally in development mode.
 Therefore I would like to have an isDeployed()-function to control
 whether or not it should be executed.
 Does anybody know of such a function or is there even a way to remove
 such code parts like it is the case for assert?

 Thank you very much
 Jan

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




-- 
David Chandler
Developer Programs Engineer, Google Web Toolkit
w: http://code.google.com/
b: http://googlewebtoolkit.blogspot.com/
t: @googledevtools

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

2011-02-15 Thread Gambo
Hi Ben, thanks a lot for your quick reply.

I have one question(very basic :-)) how do I put them in a list
without instantiating them? Just adding strings of the class names and
later on using Class.forName(test).newInstance();?!

On 14 Feb., 17:50, Ben Imp benlee...@gmail.com wrote:
 One way to do this would be to put your view list inside of a factory
 object.  This factory object would have a method to request a view for
 a given id, and return a new instance of it.  The creation of that
 view would take place inside of a runAsync block.  Your page
 controller would have to pass in a callback so it can get a handle on
 the view when its done loading.

 -Ben

 On Feb 14, 10:09 am, Gambo mark.vanv...@gmail.com wrote:

  Hi there,

  I have a question regarding GWT's runAsync feature. We have a complete
  list of all views within the application. What I understand each time
  a user access our webapp the complete list of view is downloaded to
  the clients machine. I am sure we are going to have more than 200
  views sometime so the app is getting very big.

  I want to implement now the async feature but I am not sure how to do
  this as I need the list of view to display them later in my app.

  Example:
  - User trigger click event
  - Click event gets an ID with button clicked and is forwarded to page
  controller
  - Page controller looks in view list with id and display the correct
  view

  Can somebody help me with a hint? Maybe my approach is wrong.

  Thanks a lot!



-- 
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: Replace AbstractPlaceHistoryMapper with a custom mapper using deferred binding

2011-02-15 Thread David Chandler
Hi Karthik,

Your replace-with and when-type-is classes are backwards here. But I think
you'll need to replace the interface PlaceHistoryMapper instead of the
abstract class with your own impl. This is an issue and patch to make this
easier:

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

/dmc

On Mon, Feb 14, 2011 at 6:10 PM, karthik reddy karthik.ele...@gmail.comwrote:

 Looks like the class that is  generated for PlaceHistoryMapper   is
 hard-coded to used AbstractPlaceHistoryMapper as the super class.

 So, I am trying to work around this by trying to replace this
 AbstractPlaceHistoryMapper  with a custom mapper of mine using deferred
 binding . I am using the following rule in my *.gwt.xml:


 replace-with class=com.google.gwt.place.impl.AbstractPlaceHistoryMapper
 when-type-is class=com.test.sampleapp.CustomPlaceHistoryMapper /
  /replace-with

 But for some reason the replace does not seem to be happening.
  CustomPlaceHistoryMapper is not getting kicked in and the generated class
  still uses AbstractPlaceHistoryMapper.

 Any thoughts/pointers as to what might be resulting this behavior are much
 appreciated.

 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.




-- 
David Chandler
Developer Programs Engineer, Google Web Toolkit
w: http://code.google.com/
b: http://googlewebtoolkit.blogspot.com/
t: @googledevtools

-- 
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 2.2 and maven

2011-02-15 Thread David Chandler
It's in Maven Central now, no custom repo needed.

See the Expenses sample POM for correct declaration of gwt-maven-plugin that
works with 2.2.0:

http://code.google.com/p/google-web-toolkit/source/browse/releases/2.2/samples/expenses/pom.xml

/dmc

On Mon, Feb 14, 2011 at 6:03 AM, Diego Lovison diegolovi...@gmail.comwrote:

 how I can set to maven work with 2.2?

repository
id/id
name???/name
url/url
/repository

 On 13 fev, 16:54, David Chandler drfibona...@google.com wrote:
  Maven Central push should come out Monday. Until then, you can try it out
  from the staging repo:
 
  https://oss.sonatype.org/content/repositories/comgoogle-108/
 
  /dmc
 
  On Sun, Feb 13, 2011 at 4:27 AM, Jakub Grabowski ja...@perfectsource.pl
 wrote:
 
 
 
 
 
 
 
 
 
   Do you have any idea when GWT 2.2.0 will be available in maven central
   repo? Currently projects generated with -maven option don't work,
   because dependencies cannot be retrieved. Is there any other repo
   containing maven artifacts for GWT before they're published to central
   repo?
 
   Thanks for help.
 
   Regards,
   Jakub Grabowski
   Perfectsource Sp. z o.o.
  http://www.perfectsource.pl
 
   --
   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.
 
  --
  David Chandler
  Developer Programs Engineer, Google Web Toolkit
  w:http://code.google.com/
  b:http://googlewebtoolkit.blogspot.com/
  t: @googledevtools

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




-- 
David Chandler
Developer Programs Engineer, Google Web Toolkit
w: http://code.google.com/
b: http://googlewebtoolkit.blogspot.com/
t: @googledevtools

-- 
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 2.2 and maven

2011-02-15 Thread George Moschovitis
Great!

What about compatible versions of Guice/GIN?

-g.

It's in Maven Central now, no custom repo needed.

 See the Expenses sample POM for correct declaration of gwt-maven-plugin 
 that works with 2.2.0:


 http://code.google.com/p/google-web-toolkit/source/browse/releases/2.2/samples/expenses/pom.xml



-- 
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 to disable the context menu

2011-02-15 Thread chm124
Hi
if the code of the previous post shouldn't work, you can do something
like:
/* constructor */
public YourClass() {
sinkEvents(Event.ONCONTEXTMENU);
}

@Override
public void onBrowserEvent(Event theEvent) {
int anEventType = DOM.eventGetType(theEvent);
if(anEventType == Event.ONCONTEXTMENU) {
/* do something here to have a custom contextMenu, if 
required */
theEvent.stopPropagation();// This will stop the event 
from being
propagated
theEvent.preventDefault();
}
}

YourClass could be a class (e.g. a Panel) which contains your
images; for sure it must be a class which can override public void
onBrowserEvent{}
.
greez,
_christoph

-- 
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: Network visualization with GWT

2011-02-15 Thread Uemit
Apparently somebody wrote a small wrapper for InfoVis: 

https://groups.google.com/forum/#!searchin/javascript-information-visualization-toolkit/GWT/javascript-information-visualization-toolkit/8F3MmHz6-rA/h_a7Thtg07kJ

http://weltermann17.wordpress.com/2009/07/02/jit-gwt-a-low-cost-solution-2/

But as far as I know InfoVis uses canvas so it won't fit the requirements. 
Alternatively you could use Protovis (http://vis.stanford.edu/protovis/) or 
Raphael (http://raphaeljs.com/) but I don't think they provide a GWT 
wrapper. 


-- 
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: Network visualization with GWT

2011-02-15 Thread Thomas Broyer


On Tuesday, February 15, 2011 12:52:55 PM UTC+1, Uemit wrote:

 But as far as I know InfoVis uses canvas so it won't fit the requirements.


The demos run OK in IE8, so they must be using some compat code for IE 
(excanvas.js?)

-- 
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: migrate GWT 2.1.1 to 2.2 error

2011-02-15 Thread skalimer0
OK, thanks

i change scopetest/scope to scopecompile/scope for gwt-dev 
dependency and it's compile without error.

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

2011-02-15 Thread shahid
Many Thanks Thomas.

It seems that might be the problem as I have got a gigantic number of
gwt-* folders and imageresource files in the Temp folder and it is
already taking hours to just delete those.

I will update this thread once I have successfully got rid of all and
retried it.

On Feb 15, 10:39 am, Thomas Broyer t.bro...@gmail.com wrote:
 Are you using the 2.2 version of the Google Plugin for Eclipse? (the version
 of the GWT SDK doesn't matter) If not, you might be running in to this
 issue:http://code.google.com/p/google-web-toolkit/issues/detail?id=5773

 See alsohttp://code.google.com/p/google-web-toolkit/issues/detail?id=5261

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



Editor and primitive types

2011-02-15 Thread monkeyboy
I have a simple class that contains an integer:
class Whatever{
  int theInteger;
  public int getTheInteger(){
return theInteger;
  }
  public void setTheInteger(int i){
theInteger = i;
  }
  // getters, setters, etc.
}
so I created an Editor like so:

public class WhateverEditor extends Composite implements EditorWhatever {
@UiField
IntegerBox theInteger;
// other fields 

  interface Binder extends UiBinderWidget, WhateverEditor {
}

public WhateverEditor() {
  Binder binder = GWT.create(Binder.class);
  initWidget(binder.createAndBindUi(this));
}
}

This will not compile with an error that says: 
  Found unexpected type long while evauating path theInteger using getter 
expression 
  Unable to create Editor model due to previous errors

If I replace the type of theInteger from int to Integer in the Whatever 
class then it compiles fine. But I want to have int as theInteger type.
There should be a simple solution but i could not find it. Any help is much 
appreciated.

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

2011-02-15 Thread jonsm...@gmail.com
Another way to get this is mixing GWT Designer releases

Uninstall:
GWT Plugin
GWT Designer
WindowBuilder

Then install:
GWT Plugin

That will clear out pieces of GWT Designer 8.1.1 that are mixed into
the GWT 2.2 plugin release.

On Mon, Feb 14, 2011 at 7:38 AM, WindowBuilder Support
wb-support-37...@google.com wrote:
 GWT Designer v8.1.1 does not support GWT 2.2.
 You need to uninstall v8.1.1 and use the version of GWT Designer that was
 provided with GWT/GPE 2.2.
 -Original Message-
 From: jonsm...@gmail.com
 Date: Mon, 14 Feb 2011 03:38:18 +
 To: wb-support-37...@google.com wb-support-37...@google.com
 Subject: GWT design broken on GWT 2.2 SDK
Submitted by: jonsm...@gmail.com Jon Smirl

The generater attribute is in the international gwt.xml line on line 75.

I can't use designer on any Views. Backing off to 2.1 SDK fixes.
I just updated to the latest GWT design via Eclipse.



-- 
Jon Smirl
jonsm...@gmail.com

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



Re: Editor and primitive types

2011-02-15 Thread monkeyboy
copy paste error. The error message should be:
  Found unexpected type int while evauating path theInteger using getter 
expression 
The unexpected type is int, not long. 

-- 
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 2.2 and WEB-INF/deploy

2011-02-15 Thread John
I'm also very curious as to the purpose of this folder.  I have a
multi-project setup, and all but one automatically has its own
subfolder in deploy.  I was very hopeful that the deploy folder would
make actually deploying a multi-project app easier since right now it
is immensely frustrating, but it doesn't seem to be the case.

On Feb 15, 5:29 am, Filipe Sousa nat...@gmail.com wrote:
 Hi,

 I'm trying the new version of GWT (2.2) and noticed that after compiling the
 project I'm getting a deploy folder inside the WEB-INF. Do I have to pack
 this folder inside the war file?

-- 
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 projects/Eclipse being too slow

2011-02-15 Thread shahid
Ok that was the issue and deleting those Temp files have made a huge
difference.

Thanks again.

On Feb 15, 12:30 pm, shahid shahidza...@gmail.com wrote:
 Many Thanks Thomas.

 It seems that might be the problem as I have got a gigantic number of
 gwt-* folders and imageresource files in the Temp folder and it is
 already taking hours to just delete those.

 I will update this thread once I have successfully got rid of all and
 retried it.

 On Feb 15, 10:39 am, Thomas Broyer t.bro...@gmail.com wrote:

  Are you using the 2.2 version of the Google Plugin for Eclipse? (the version
  of the GWT SDK doesn't matter) If not, you might be running in to this
  issue:http://code.google.com/p/google-web-toolkit/issues/detail?id=5773

  See alsohttp://code.google.com/p/google-web-toolkit/issues/detail?id=5261

-- 
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: Editor and primitive types

2011-02-15 Thread Thomas Broyer
The simple solution is to use GWT trunk: 
http://code.google.com/p/google-web-toolkit/issues/detail?id=5864q=editor%20primitive

-- 
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: Create an Image from received bytes on client side - possible?

2011-02-15 Thread Sripathi Krishnan

 Except of course in IE6 and IE7 which do not support data: URLs; but it
 wouldn't stop me if I were you (kill IE, kill IE, kill IE!) ;-)

And IE8 only supports 32KB of base64 data for security reasons, so you do
have to watch the size of the image.

--Sri


On 15 February 2011 15:38, Thomas Broyer t.bro...@gmail.com wrote:



 On Tuesday, February 15, 2011 9:46:32 AM UTC+1, MJ wrote:

 Just to report back my findings.

 In short: it works!

 Except of course in IE6 and IE7 which do not support data: URLs; but it
 wouldn't stop me if I were you (kill IE, kill IE, kill IE!) ;-)

 --
 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: Network visualization with GWT

2011-02-15 Thread Uemit
@Thomas:

You are right. 
It uses excanvas.js so it should also work with  IE 9.0 versions. 



-- 
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: Editor and primitive types

2011-02-15 Thread monkeyboy
Thanks Thomas for the quick reply. So, if I got this right, with trunk I 
would not have to change my existing code, just use the trunk version?

-- 
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 2.2 and WEB-INF/deploy

2011-02-15 Thread Thomas Broyer
From the doc, you should deploy it (otherwise, why would it be emitted to 
the ${war}/WEB-INF?)

http://google-web-toolkit.googlecode.com/svn/javadoc/2.2/com/google/gwt/core/ext/linker/EmittedArtifact.Visibility.html#Deploy

See also the doc for the -deploy command line argument:
The directory into which deployable but not servable output files will be 
written (defaults to 'WEB-INF/deploy' under the -war directory/jar, and may 
be the same as the -extra directory/jar)

I haven't found where those files would later be used by server code, so I 
guess you can safely exclude them (i.e. use a -deploy that points outside 
your ${war}).

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



UIBinder: @UIField and the wrong template

2011-02-15 Thread Carlo Alberto Degli Atti
Hi all,

I'm building some user interfaces using the UIBinder mechanism; I'm
placing in the same package 6 views (java files) and 6 templates
(xml).
All views and templates are fine except one; my IDE (Eclipse) says
Field itemPanel has no corresponding field in template file
CommentView.ui.xml.

But as you can see in the code below,  Eclipse is referring to another
xml template (I've declared to use ItemView.ui.xml, not
CommentView.ui.xml)!!!


The view ItemView.java:
~~

 public class ItemView extends Composite implements ItemDisplay {

@UiTemplate( ItemView.ui.xml )
interface ItemViewUiBinder extends UiBinderSimplePanel, ItemView {}

private static ItemViewUiBinder uiBinder =
GWT.create( ItemViewUiBinder.class );

@UiField SimplePanel itemPanel;

public ItemView() {

SimplePanel createAndBindUi = uiBinder.createAndBindUi( this );

initWidget( createAndBindUi );

}
 }

 the template file ItemView.ui.xml:
~

 ?xml version=1.0 encoding=UTF-8?

ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder'
xmlns:g='urn:import:com.google.gwt.user.client.ui'

g:SimplePanel ui:field=itemPanel /

/ui:UiBinder


Any idea?!?!?!?
Where am I wrong?!?

-- 
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: migrate GWT 2.1.1 to 2.2 error

2011-02-15 Thread skalimer0
I install new Eclipse 3.6 with new GWT 2.2 import my CVS project... and when 
i try to open an Composite class of my projet in the new GWT Designer 2.2 i 
have this error :

Stack trace:

java.lang.NullPointerException
at 
com.google.gdt.eclipse.designer.hosted.tdt.HostedModeSupport.getSharedClassLoader(HostedModeSupport.java:184)
at 
com.google.gdt.eclipse.designer.hosted.tdt.HostedModeSupport.createClassLoaders(HostedModeSupport.java:92)
at 
com.google.gdt.eclipse.designer.hosted.tdt.HostedModeSupport.init(HostedModeSupport.java:62)
at 
com.google.gdt.eclipse.designer.hosted.tdt.HostedModeSupportFactory.create(HostedModeSupportFactory.java:22)
at 
com.google.gdt.eclipse.designer.model.widgets.support.GwtState.getHostedModeSupport(GwtState.java:1195)
at 
com.google.gdt.eclipse.designer.model.widgets.support.GwtState.initialize0(GwtState.java:243)
at 
com.google.gdt.eclipse.designer.model.widgets.support.GwtState.initialize(GwtState.java:219)
at 
com.google.gdt.eclipse.designer.parser.ParseFactory.getClassLoader(ParseFactory.java:390)
at 
org.eclipse.wb.internal.core.parser.AbstractParseFactory.initializeClassLoader(AbstractParseFactory.java:732)
at 
com.google.gdt.eclipse.designer.parser.ParseFactory.getRootContext(ParseFactory.java:92)
at 
org.eclipse.wb.internal.core.parser.JavaInfoParser.prepareParseContext(JavaInfoParser.java:1180)
at 
org.eclipse.wb.internal.core.parser.JavaInfoParser.parse(JavaInfoParser.java:244)
at 
org.eclipse.wb.internal.core.parser.JavaInfoParser.access$9(JavaInfoParser.java:240)
at 
org.eclipse.wb.internal.core.parser.JavaInfoParser$1.runObject(JavaInfoParser.java:153)
at 
org.eclipse.wb.internal.core.parser.JavaInfoParser$1.runObject(JavaInfoParser.java:1)
at 
org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runDesignTime(ExecutionUtils.java:153)
at 
org.eclipse.wb.internal.core.parser.JavaInfoParser.parse(JavaInfoParser.java:151)
at 
org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:463)
at 
org.eclipse.wb.internal.core.editor.DesignPage.access$9(DesignPage.java:455)
at 
org.eclipse.wb.internal.core.editor.DesignPage$7$1.run(DesignPage.java:388)
at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:179)
at 
org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
at org.eclipse.swt.widgets.Display.syncExec(Display.java:4584)
at 
org.eclipse.wb.internal.core.editor.DesignPage$7.run(DesignPage.java:385)
at 
org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
at 
org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:507)
at 
org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF_withProgress(DesignPage.java:404)
at 
org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:354)
at 
org.eclipse.wb.internal.core.editor.UndoManager.refreshDesignerEditor(UndoManager.java:381)
at 
org.eclipse.wb.internal.core.editor.DesignPage.refreshGEF(DesignPage.java:331)
at 
org.eclipse.wb.internal.core.editor.actions.RefreshAction.run(RefreshAction.java:46)
at 
org.eclipse.wb.internal.core.editor.actions.DesignPageAction.run(DesignPageAction.java:34)
at 
org.eclipse.wb.internal.core.editor.errors.JavaExceptionComposite.doRefresh(JavaExceptionComposite.java:89)
at 
org.eclipse.wb.internal.core.editor.errors.ExceptionComposite$2.widgetSelected(ExceptionComposite.java:109)
at 
org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:234)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4066)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
at 
org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at 
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at 
org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
at 
org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at 

Re: Error installing GWT 2.2 in eclipse 3.6

2011-02-15 Thread Chris Ramsdale
This was mentioned later in the thread, but you don't have to use the GWT
Designer that is bundled with the Google Plugin for Eclipse. The standalone
version (link below) will work just fine w/ the GWT 2.2 SDK.

http://code.google.com/webtoolkit/tools/download-gwtdesigner.html

The only requirement, for either the standalone or bundled version, is that
you remove any previous versions of GWT Designer before upgrading to 2.2.

Btw...for completeness, we did reset everything to the same version in this
release (GWT/GPE/GWTD = v2.2). Is was becoming difficult to have a sane
conversation about what recipe worked for which feature.

-- Chris

On Mon, Feb 14, 2011 at 9:44 AM, jonsm...@gmail.com jonsm...@gmail.comwrote:

 I have 2.2 running now. Initially I had a bunch of errors too. I
 uninstalled all versions WindowBuilder, GWT Plugin, GWT Designer -
 then reinstalled the GWT Plugin. You don't need to mess with the SDKs.
 In my case pieces from various releases of the GWT Designers were
 interfering with each other. You have to use the GWT designer that
 comes in the GWT Plugin.

 --
 Jon Smirl
 jonsm...@gmail.com

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



-- 
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: Editor and primitive types

2011-02-15 Thread monkeyboy
The solution I will be using until GWT 2.3 (or whatever) comes out is to put 
another pair of getter/setters in my Whatever class like so:

class Whatever{
  int theInteger;
  public int getTheInteger(){
return theInteger;
  }
  public void setTheInteger(int i){
theInteger = i;
  }

  public Integer getTheIntegerO(){
return theInteger;
  }
  public void setTheIntegerO(Integer i){
theInteger = i;
  }

  // getters, setters, etc.
}

Then in the editor I can use this:
public class WhateverEditor extends Composite implements EditorWhatever {
@UiField
IntegerBox theIntegerO;
// other fields, etc
}

-- 
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 installing GWT 2.2 in eclipse 3.6

2011-02-15 Thread Chris Ramsdale
Alex,

Can you tell us what components you currently have installed within Eclipse?
(Install New Software... menu option, and then click on the already
installed link)

Thanks,
Chris


On Tue, Feb 15, 2011 at 2:48 AM, alexoffspring alessales...@gmail.comwrote:

 Thanks for your reply

 We will be waiting for the update


 --alex

 On 15 Feb, 01:34, Chris Ramsdale cramsd...@google.com wrote:
  Thanks for all of the feedback. We're looking into the installation
 issues
  and will have an update asap.
 
  -- Chris
  On Feb 14, 2011 11:33 AM, alexoffspring alessales...@gmail.com
 wrote:
 
   It cannot be considered acceptable to have all these problems just for
   an upgrade.
   Somebody from Google should tell where in the release notes (http://
   code.google.com/intl/it-IT/webtoolkit/doc/latest/ReleaseNotes.html)
   it is written that GWT 2.2.0 have all these dependency problems. The
   procedure for installation linked in the releasenotes is the same as
   always, and the unique way to ask for help with installation problems
   is this forum.
 
   But still nobody from Google is giving the solution.
 
Up until now, GWT Designer was independent of GWT and GPE.
 
Now they are integrating and (kind of) uniting.
 
So I consider it acceptable that one must remove and old and
incompatible version of GWT designer before installing the new one,
which is now integrated into GPE.
 
   --
   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 2.2 and maven

2011-02-15 Thread David Chandler
It's up to the GIN and Guice open source projects when / if they'll push new
maven artifacts. I'm sure those projects would be glad for volunteers.

/dmc

On Tue, Feb 15, 2011 at 6:30 AM, George Moschovitis 
george.moschovi...@gmail.com wrote:

 Great!

 What about compatible versions of Guice/GIN?

 -g.


 It's in Maven Central now, no custom repo needed.

 See the Expenses sample POM for correct declaration of gwt-maven-plugin
 that works with 2.2.0:


 http://code.google.com/p/google-web-toolkit/source/browse/releases/2.2/samples/expenses/pom.xml

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




-- 
David Chandler
Developer Programs Engineer, Google Web Toolkit
w: http://code.google.com/
b: http://googlewebtoolkit.blogspot.com/
t: @googledevtools

-- 
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 2.2 and WEB-INF/deploy

2011-02-15 Thread Aurelian
I'm deploying my app on AppEngine and the deploy folder generated has
133M.
AppEngine limits the upload of the folder war to 150M, so i had to
generate it outside of war folder.
My app is working, i think the deploy folder contains symbolicMap for
logging system, in case there is a need to convert javascript code
into Java back.

Regards,
Aurelian

On 15 Feb, 14:59, Thomas Broyer t.bro...@gmail.com wrote:
 From the doc, you should deploy it (otherwise, why would it be emitted to
 the ${war}/WEB-INF?)

 http://google-web-toolkit.googlecode.com/svn/javadoc/2.2/com/google/g...

 See also the doc for the -deploy command line argument:
 The directory into which deployable but not servable output files will be
 written (defaults to 'WEB-INF/deploy' under the -war directory/jar, and may
 be the same as the -extra directory/jar)

 I haven't found where those files would later be used by server code, so I
 guess you can safely exclude them (i.e. use a -deploy that points outside
 your ${war}).

-- 
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: migrate GWT 2.1.1 to 2.2 error

2011-02-15 Thread Ernesto Reig
Same here.
The error happens in all Uibinder templates even if you create a new one.
But when you set up a new GWT project, and create a new UiBinder template,
it works. I thought that there was some problem in GWT projects with 2.1
version migrating to 2.2, but the thing is that it gives the same error in
the Expenses app that comes with the SDK 2.2.0.
If find a solution, report please.

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



Does GWTTestCase work in noserver mode?

2011-02-15 Thread SVR
Does GWTTestcase work while not using the embedded server, that is while
using the noserver option. If so, can somebody please share how to do this?
thanks
Vidhya

-- 
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: Network visualization with GWT

2011-02-15 Thread jscheller


On Feb 15, 4:52 am, Uemit uemit.se...@gmail.com wrote:
 or Raphael (http://raphaeljs.com/) but I don't think they
 provide a GWT wrapper.

I've been using the RaphaelGWT wrapper the Hydro4GE guys built with
pretty good cross-browser results...

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

-- 
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: ckeckbox in a cell

2011-02-15 Thread John LaBanca
Create a Column with a CheckboxCell.  In the Column, set the FieldUpdater,
which is invoked when the checkbox is selected.

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


On Tue, Feb 15, 2011 at 4:11 AM, Nuvoletta effimer...@gmail.com wrote:

 Hi, I need to create a table with a column of checkbox for delete
 correspondent row.
 How can I do that?

 --
 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: ValueProxy.EntityProxy.field problem on setViolations()

2011-02-15 Thread Y2i
After upgrading to GWT 2.2.0 everything works fine.  Thanks GWT team! 

-- 
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 to ensure a single EntityManager per request?

2011-02-15 Thread KaffeineComa
Hi Y2i,

I applied your suggestion and it does indeed work, thank you. 

Details (including code) of what I am currently using are available 
herehttp://stackoverflow.com/questions/4988397/gwt-requestfactory-how-to-use-single-entitymanager-per-request/5006347#5006347
.

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.



Object 44 has no method 'round' in Chrome Dev version

2011-02-15 Thread Amir
My GWT code at this web page used to work fine on Chrome:

http://dropzap.appspot.com

Why does it no longer work in the dev channel of Chrome?

The following error results:

Object 44 has no method 'round'

The problem still happens with the latest version of GWT (2.2.0).

-- 
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: radio button listener/handler issue on IE8.

2011-02-15 Thread Ben Imp
Use Firebug Lite, or IE's development tools to look at the names on
the elements.  That should give you the answers.

-Ben

On Feb 14, 2:24 pm, NAARAYANA REDDY NANDIGAMA nandigam...@gmail.com
wrote:
 Yes it was assigned to different names. Here is the logic to set group
 names.

 String groupName =  + new Date().getTime();

 It works fine if I run the application in debug mode but it does not work
 with compilation code. Not sure if it is because of groupName. FYI, this is
 happening only on IE and with Win XP OS. Could you please suggest me if this
 is because of group Name or some thing else?

 From
 Narayana

 On Mon, Feb 14, 2011 at 9:07 AM, Ben Imp benlee...@gmail.com wrote:
  Did you give each of your radio button sets different names?  Radio
  button groups are defined by their names.

  -Ben

  On Feb 13, 2:13 pm, Dallas007 nandigam...@gmail.com wrote:
   Hi,
   I have installed IE8 yesterday and Win XP OS.

   The problem is radio button selection is not working properly. I have
   two radio buttons in each vertical panel and I can able to select only
   one radio button at a time on the page. My requirement is i want to
   select radio button from each vertical panel. Is there any thing I
   need to do extra setttings for IE8 to support radio button handlers/
   Listeners?

   From,
   Dallas007

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

2011-02-15 Thread Ben Imp
Ewww.  Icky.  I'm not actually even sure if that works in GWT ...

If you really need them in a list, you could probably write a fairly
thin wrapper for your views.  Im not sure what their interface is
like, but if they are in a list, they can't be specific types anyway.
Something like:

public interface ViewWrapper {
  public void getView(callback);
}

Then you could fill your list with instances of that wrapper.  So:

list.add( new ViewWrapper() {
  public void getView(callback) {
//run async here
  }
});

Your presenters could then go:

this.viewList.get(id).getView(new HeyMyViewIsReadyCallback(this));

Or something like that.  I'd still voice a preference for a simple
factory object instead of a list, though.  Then you could actually
have a specific type associated with the view.  I suppose 200 methods
is a lot.  200 views is a lot too ... what evilness are you bringing
into the world?

-Ben

On Feb 15, 5:05 am, Gambo mark.vanv...@gmail.com wrote:
 Hi Ben, thanks a lot for your quick reply.

 I have one question(very basic :-)) how do I put them in a list
 without instantiating them? Just adding strings of the class names and
 later on using Class.forName(test).newInstance();?!

 On 14 Feb., 17:50, Ben Imp benlee...@gmail.com wrote:

  One way to do this would be to put your view list inside of a factory
  object.  This factory object would have a method to request a view for
  a given id, and return a new instance of it.  The creation of that
  view would take place inside of a runAsync block.  Your page
  controller would have to pass in a callback so it can get a handle on
  the view when its done loading.

  -Ben

  On Feb 14, 10:09 am, Gambo mark.vanv...@gmail.com wrote:

   Hi there,

   I have a question regarding GWT's runAsync feature. We have a complete
   list of all views within the application. What I understand each time
   a user access our webapp the complete list of view is downloaded to
   the clients machine. I am sure we are going to have more than 200
   views sometime so the app is getting very big.

   I want to implement now the async feature but I am not sure how to do
   this as I need the list of view to display them later in my app.

   Example:
   - User trigger click event
   - Click event gets an ID with button clicked and is forwarded to page
   controller
   - Page controller looks in view list with id and display the correct
   view

   Can somebody help me with a hint? Maybe my approach is wrong.

   Thanks a lot!

-- 
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: ValueProxy.EntityProxy.field problem on setViolations()

2011-02-15 Thread Y2i
Oops, sorry I ran a wrong test.  It is still not working when editing nested 
structures.  But thanks for GWT 2.2.0 anyway :-)

-- 
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: has this patch made it to 2.2

2011-02-15 Thread karthik reddy
thanks Thomas.

Just wondering: this is a vary valid case and the patch seems to have been 
submitted by you well ahead of the 2.2 release(thanks to you once again). 
Are you  aware of any reason why this has not made it to the 2.2 release. 


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



Re: how to ensure a single EntityManager per request?

2011-02-15 Thread Y2i
Nice.  You may consider moving doFilter() into the try block so that em 
closes and tx rolls back on all exceptions thrown by doFilter() 

-- 
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 2.2 and maven

2011-02-15 Thread Thomas Broyer
A GIN 1.5 version should be out soon (requiring Guice 3.0rc2)
See https://groups.google.com/d/topic/google-gin/FZ2MeAY39O8/discussion

-- 
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 to ensure a single EntityManager per request?

2011-02-15 Thread KaffeineComa
Ah, good catch.  Example updated, 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.



Re: Does GWTTestCase work in noserver mode?

2011-02-15 Thread Thomas Broyer
No. The browser has to communicate test results back to the JUnitShell, 
which it does through GWT-RPC.

For integration tests, you should probably have a look at Selenium tests 
rather than GWTTestCase.

-- 
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: IE problems

2011-02-15 Thread SVR
Hi
On Debugging I found the problem occurs in

initWidget(binder.createAndBindUi(this));

(I am using uibinder). The code works in firefox, however in IE I get the
following exception:

Failed to create an instance of 'com.google.gwt.user.client.ui.Button' via
deferred binding -- exception: JavaScriptException

java.lang.RuntimeException: Deferred binding failed for
'com.google.gwt.user.client.ui.Button' (did you forget to inherit a required
module?)

Here are my gwt.xml and ui.xml files:

module rename-to='prototype'
  !-- Inherit the core Web Toolkit stuff.--
  inherits name=com.google.gwt.core.Core/
  inherits name='com.google.gwt.user.User'/
  inherits name=com.google.gwt.logging.Logging/
  inherits name=com.google.gwt.user.datepicker.DatePicker/
  inherits name=com.google.gwt.i18n.I18N/
  inherits name=com.google.gwt.i18n.CldrLocales/
  inherits name=com.google.gwt.user.theme.standard.StandardResources/



ui:UiBinder
  xmlns:ui='urn:ui:com.google.gwt.uibinder'
  xmlns:g='urn:import:com.google.gwt.user.client.ui'
  xmlns:dp='urn:import:com.google.gwt.user.datepicker.client'
  ui:generateFormat='com.google.gwt.i18n.rebind.format.PropertiesFormat'
  ui:generateKeys=com.google.gwt.i18n.rebind.keygen.MD5KeyGenerator
  ui:generateLocales=default
..
g:Button ui:field=btnBirthDate
styleName={style.button} tabIndex=-1Date/g:Button
..
..
/ui:UiBinder

Any idea on how to resolve this IE problem?

Thanks




On Mon, Feb 14, 2011 at 5:39 PM, Sebastian Rothbucher 
sebastian.rothbuc...@clarities.de wrote:

 Hi SVR,

 that's indeed a challenge - if nothing else does help any more, try
 pinning down the problem by inserting debug statements (e.g. alerts)
 closely (and even more closely as you move along) around the spot
 where you fail. Maybe it helps to look into the source but most
 probably you won't see so much - probably you recognize the problem...

 Hope this helps a little - good luck!

   Sebastian Rothbucher

 On 14 Feb., 19:34, SVR svr...@gmail.com wrote:
  Hi
  I have my GWT module working in FF, I am trying to launch the same in IE
 and
  get the following error:
  In general, I would like to know how to approach/debug problems of this
  nature in IE?
  Thanks
 
  Webpage error details
 
  User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1;
 Trident/4.0;
  GTB6.6; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.0.4506.2152;
 .NET
  CLR 3.5.30729)
  Timestamp:
 
  Message: Object doesn't support this property or method
  Line: 714
  Char: 3
  Code: 0
  URI:
 http://localhost:9080/DashboardWeb/gwt/51F5EB69C1BCD1B2A8D104D2BCD28C...

 --
 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 2.2 Eclipse update fails -- needs PDE

2011-02-15 Thread Tim McCormack
On Feb 14, 7:23 pm, Rajeev Dayal rda...@google.com wrote:
 If you navigate to Help - Software Updates, what Update Sites are listed
 there?

The listing is below. I note that only a few are marked for being used
in installation of new software; I selected all and refreshed, but
that didn't help.

?xml version=1.0 encoding=UTF-8?
bookmarks
   site url=http://download.eclipse.org/technology/epp/updates/1.0/;
selected=true name=EPP Usage Data Collector Update Site/
   site url=http://download.eclipse.org/releases/ganymede;
selected=true name=Ganymede Update Site/
   site url=http://dl.google.com/eclipse/plugin/3.4; selected=true
name=/
   site url=http://download.eclipse.org/birt/update-site/2.3;
selected=false name=/
   site url=http://download.eclipse.org/datatools/updates;
selected=false name=/
   site url=http://download.eclipse.org/dsdp/dd/updates;
selected=false name=/
   site url=http://download.eclipse.org/dsdp/nab/updates;
selected=false name=/
   site url=http://download.eclipse.org/dsdp/tm/updates/3.0;
selected=false name=/
   site url=http://download.eclipse.org/modeling/emf/updates/;
selected=false name=/
   site url=http://download.eclipse.org/modeling/emft/updates/;
selected=false name=/
   site url=http://download.eclipse.org/modeling/gmf/updates/
releases/ selected=false name=/
   site url=http://download.eclipse.org/modeling/m2m/updates/;
selected=false name=/
   site url=http://download.eclipse.org/modeling/m2t/updates/;
selected=false name=/
   site url=http://download.eclipse.org/modeling/mdt/updates/;
selected=false name=/
   site url=http://download.eclipse.org/rt/rap/update-site;
selected=false name=/
   site url=http://download.eclipse.org/stp/updates/;
selected=false name=/
   site url=http://download.eclipse.org/technology/dltk/updates/;
selected=false name=/
   site url=http://download.eclipse.org/technology/emft/updates/;
selected=false name=/
   site url=http://download.eclipse.org/tools/buckminster/updates;
selected=false name=/
   site url=http://download.eclipse.org/tools/cdt/releases/ganymede;
selected=false name=/
   site url=http://download.eclipse.org/tools/gef/update-site/
releases/site.xml selected=false name=/
   site url=http://download.eclipse.org/tools/mylyn/update/e3.4;
selected=false name=/
   site url=http://download.eclipse.org/tools/mylyn/update/extras;
selected=false name=/
   site url=http://download.eclipse.org/webtools/updates/;
selected=false name=/
   site url=http://eclipse.org/tptp/updates/; selected=false
name=/
   site url=http://www.eclipse.org/modeling/emft/?
project=search#search selected=false name=/
   site url=http://www.eclipse.org/modeling/emft/updates/;
selected=false name=/
   site url=http://download.eclipse.org/eclipse/updates/3.4;
selected=true name=The Eclipse Project Updates/
/bookmarks

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



replacement for String.format in GWT?

2011-02-15 Thread Magnus
Hi,

I need String.format:

String r = String.format(%2d %2d:%2d:%2d,d,h,m,s);

Since GWT does not support this method: What can I do instead?

Magnus

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



Need some generalized advice

2011-02-15 Thread Nate
I'm not a programmer by title although it is in my job description.
We fly sensors in an aircraft and are in the process of upgrading the
system from one computer that does everything to a distributed system
that uses small Linux computers (PC-104) with one (controller)
providing the GUI and user interaction and sending commands and
receiving status and some data from the others.

My supervisor would prefer that the user interface be implemented as a
webpage so that he can bypass the clunky display on the aircraft and
use a notebook.  I told him that I had no idea how this could be done.
I'm coding in Java (and learning Java).

My model, from reading some information about GWT is that I would have
all the code that supports the application reside on the controller.
The web page would interact with that code.

Is this realistic?

The user would need to use a file picker to access files on the
controller, is that possible? Difficult?

I have almost no contact with other programmers and none with
experience with the web so this forum appears to be my best source.

Thanks,
Nate

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



CellTable, possible to addRow() instead of addColumn() in some way ?

2011-02-15 Thread Fille
Hello

I wanna be able to add rows instead of columns. So i want the
cells to lay out horizontally rather than vertically. Any option to do
this, or should i use another type of Widget ?

Regards, Filip

-- 
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 to customize celltree.

2011-02-15 Thread icemaker
Hello,

The cell tree get all it resources (images and css) from
CellTree.BasicResources which extends CellTree.Resources.

To use your own images and css you have to extend CellTree.Resources.

Ex:

interface TreeResources extends CellTree.Resources {
@Source(cellTreeClosedItem.gif)
ImageResource cellTreeClosedItem();

@Source(cellTreeOpenItem.gif)
ImageResource cellTreeOpenItem();

@Source(MyCellTree.css)
CellTree.Style cellTreeStyle();
}

This tells that the cellTreeCloseItem image will be
'cellTreeClosedItem.gif' which is in the same package as your custom
interface TreeResources. You can put the image in another package if
you want. You just have to prefix the image name with the the package
path.

It also tells that the cellTreeOpenItem image will be
'cellTreeOpenItem.gif' and that the css to use for the tree style will
be MyCellTree.css.

To create MyCellTree.css, just copy the content from CellTree.css
which is in the package com\google\gwt\user\cellview\client (from gwt-
user.jar or
http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/src/com/google/gwt/user/cellview/client/CellTree.css)
and customize it.

Then to tell your tree to use your customized resource you just do :

CellTree.Resources resource = GWT.create(TreeResources.class);
CellTree cellTree = new CellTree(new MyTreeModel(),null, resource);


I know it is a bit weird and badly documented from Google :/
I've spent hours to find how to do this.

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



Re: Need some generalized advice

2011-02-15 Thread Jeff Chimene
On 02/15/2011 07:56 AM, Nate wrote:
 I'm not a programmer by title although it is in my job description.
 We fly sensors in an aircraft and are in the process of upgrading the
 system from one computer that does everything to a distributed system
 that uses small Linux computers (PC-104) with one (controller)
 providing the GUI and user interaction and sending commands and
 receiving status and some data from the others.
 
 My supervisor would prefer that the user interface be implemented as a
 webpage so that he can bypass the clunky display on the aircraft and
 use a notebook.  I told him that I had no idea how this could be done.
 I'm coding in Java (and learning Java).

At a minimum (among other requirements) your controller must implement
an HTTPD (HTTP daemon) to use GWT.

 My model, from reading some information about GWT is that I would have
 all the code that supports the application reside on the controller.
 The web page would interact with that code.

That's mostly correct. The web page would execute Javascript downloaded
to the notebook. The application would need to interact with the
controller. More detail is needed about the controller.

 Is this realistic?

Maybe.

 The user would need to use a file picker to access files on the
 controller, is that possible? Difficult?

Maybe. It depends on the software running on the controller.

 I have almost no contact with other programmers and none with
 experience with the web so this forum appears to be my best source.

Please consider hiring someone to help evaluate requirements. It's way
too early to be thinking about GWT.

Cheers,
jec

-- 
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: ClientBundle images missing in IE8

2011-02-15 Thread socratesJ
I've determined that this problem only occurs if IE8 is in standards
mode; that is, if I use a doctype such as !DOCTYPE HTML PUBLIC -//
W3C//DTD HTML 4.01//EN as opposed to not specifying a doctype (which
puts the browser in quirks mode).

However, I need to use standards mode, so I'd still like to figure out
what the problem is.

-- 
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 to ensure a single EntityManager per request?

2011-02-15 Thread FrugoFrog
I may be wrong but guice JpaPersistModule works the same.
+ you get benefits of @Transactional.
Anyway good work I'm sure people will find it useful

cheers

2011/2/15 KaffeineComa kaffeinec...@gmail.com:
 Ah, good catch.  Example updated, 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: Need some generalized advice

2011-02-15 Thread Y2i


 It's way too early to be thinking about GWT. 

I second that.  

A lot depends on the node that is supposed to provide the GUI.  The node has 
to run a web server, but the kind of the web server depends on the node 
environment and your requirements.  
Does the node have Java runtime?  If not then Java-based web/app-servers are 
out of the question.
Do the requirements allow usage of a regular web-server like apache?  If not 
you might consider some embedded web-servers like http://www.tntnet.org/ or 
http://goahead.com/products/webserver/licensing.aspx

-- 
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: Need some generalized advice

2011-02-15 Thread Robert Lockwood
A little more information:
I work for a US Government Agency - there is no money.
The controller will be a PC104 computer, the OS will probably be Ubuntu
Server, I will be using Java for my server side apps.  The Server will
support a GUI that will have a few buttons, at least one for each sensor,
and a list of other tools.  It will talk to the satellite computers over a
lan that just connects the computes that drive the sensors and receive
information from them from time to time.  It may control one instrument that
provides current aircraft attitude and position.

On Tue, Feb 15, 2011 at 11:13 AM, Jeff Chimene jchim...@gmail.com wrote:

 On 02/15/2011 07:56 AM, Nate wrote:
  I'm not a programmer by title although it is in my job description.
  We fly sensors in an aircraft and are in the process of upgrading the
  system from one computer that does everything to a distributed system
  that uses small Linux computers (PC-104) with one (controller)
  providing the GUI and user interaction and sending commands and
  receiving status and some data from the others.
 
  My supervisor would prefer that the user interface be implemented as a
  webpage so that he can bypass the clunky display on the aircraft and
  use a notebook.  I told him that I had no idea how this could be done.
  I'm coding in Java (and learning Java).

 At a minimum (among other requirements) your controller must implement
 an HTTPD (HTTP daemon) to use GWT.

  My model, from reading some information about GWT is that I would have
  all the code that supports the application reside on the controller.
  The web page would interact with that code.

 That's mostly correct. The web page would execute Javascript downloaded
 to the notebook. The application would need to interact with the
 controller. More detail is needed about the controller.

  Is this realistic?

 Maybe.

  The user would need to use a file picker to access files on the
  controller, is that possible? Difficult?

 Maybe. It depends on the software running on the controller.

  I have almost no contact with other programmers and none with
  experience with the web so this forum appears to be my best source.

 Please consider hiring someone to help evaluate requirements. It's way
 too early to be thinking about GWT.

 Cheers,
 jec

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




-- 
When I was 12 I thought I would live forever.
So far, so good.

-- 
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: Need some generalized advice

2011-02-15 Thread Robert Lockwood
The computers will arrive with Ubuntu SE installed but we can change that.
 I think that Apache is included, I'll need to check when I get back to the
office.  Any free server would do.

On Tue, Feb 15, 2011 at 11:34 AM, Y2i yur...@gmail.com wrote:

 It's way too early to be thinking about GWT.

 I second that.

 A lot depends on the node that is supposed to provide the GUI.  The node
 has to run a web server, but the kind of the web server depends on the node
 environment and your requirements.
 Does the node have Java runtime?  If not then Java-based web/app-servers
 are out of the question.
 Do the requirements allow usage of a regular web-server like apache?  If
 not you might consider some embedded web-servers like
 http://www.tntnet.org/ or
 http://goahead.com/products/webserver/licensing.aspx

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




-- 
When I was 12 I thought I would live forever.
So far, so good.

-- 
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: UI Binder File Not Loaded During Runtime

2011-02-15 Thread Nick Apperley
Interestingly enough if I adjust the code to only attach a Label to
RootLayoutPanel in the onModuleLoad method no compilation is done, and
nothing is displayed on the web page. This is weird since a minor
change has been made to the code, even if nothing was displayed
Firefox should freeze to indicate that compilation is currently being
done. No error messages are being displayed in Eclipse's Console
window, absolutely nothing to go by.


On Feb 15, 10:51 am, Jeff Larsen larse...@gmail.com wrote:
 Pop open firebug and start drilling down into the DOM and see if you can
 find your code in there. I.e. any of your labels, widgets, panels. If they
 aren't there, then maybe an error is being caught somewhere and not thrown,
 if they are there but not visible, start mucking around with CSS properties
 to see if you've attached stuff correctly.

 Note, if you're using layout panels, you're best case scenario is to use
 layoutpanels from rootpanel all the way through to your top level panels.

 doing something like
 FlowPanel panel = new FlowPanel();
 DockLayoutPanel dockPanel = new DockLayoutPanel();
 //do stuff with docklayoutpanel
 RootLayoutPanel.get().add(panel);

 this will cause nothing to be displayed.

If it is done outside of the onModuleLoad method of an EntryPoint.

-- 
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: UI Binder File Not Loaded During Runtime

2011-02-15 Thread Jeff Larsen
Are you working in offline mode? That happened to me earlier today. 

-- 
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: UI Binder File Not Loaded During Runtime

2011-02-15 Thread Nick Apperley
Not in offline mode. Anyway I have recreated the project as a new Web
Application (the Google one) project in Eclipse. Compilation works
normally but now I have an exception appearing in development mode,
which didn't occur previously with the old project type (GWT Java).


---
10:11:55.193 [ERROR] [autohome_automator] Unable to load module entry
point class com.darc.autohome.automatortool.client.AutohomeAutomator
(see associated exception for details)

java.lang.AssertionError: This UIObject's element is not set; you may
be missing a call to either Composite.initWidget() or
UIObject.setElement()
at com.google.gwt.user.client.ui.UIObject.getElement(UIObject.java:
528)
at
com.google.gwt.user.client.ui.ComplexPanel.add(ComplexPanel.java:94)
at
com.google.gwt.user.client.ui.AbsolutePanel.add(AbsolutePanel.java:97)
at
com.darc.autohome.automatortool.client.Controller.showLoginPage(Controller.java:
28)
at
com.darc.autohome.automatortool.client.AutohomeAutomator.onModuleLoad(AutohomeAutomator.java:
17)
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:
396)
at
com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:
183)
at
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
510)
at
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
352)
at java.lang.Thread.run(Thread.java:619)
---

-- 
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: Need some generalized advice

2011-02-15 Thread Y2i
Since your GUI computer has Java run-time then you can use servlet-based 
environment.  Servlet-based web-servers will simplify a lot if you are 
planning to use GWT because GWT provides great servlet integration (GWT-RPC 
and GWT Request Factory).  And there are many web-servers to chose from.

-- 
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: UI Binder File Not Loaded During Runtime

2011-02-15 Thread Nick Apperley
Based on the exception the problem occurs when the login page (a
Composite) is being added to the RootLayoutPanel.


On Feb 16, 10:17 am, Nick Apperley napper...@gmail.com wrote:
 Not in offline mode. Anyway I have recreated the project as a new Web
 Application (the Google one) project in Eclipse. Compilation works
 normally but now I have an exception appearing in development mode,
 which didn't occur previously with the old project type (GWT Java).

 ---
 10:11:55.193 [ERROR] [autohome_automator] Unable to load module entry
 point class com.darc.autohome.automatortool.client.AutohomeAutomator
 (see associated exception for details)

 java.lang.AssertionError: This UIObject's element is not set; you may
 be missing a call to either Composite.initWidget() or
 UIObject.setElement()
     at com.google.gwt.user.client.ui.UIObject.getElement(UIObject.java:
 528)
     at
 com.google.gwt.user.client.ui.ComplexPanel.add(ComplexPanel.java:94)
     at
 com.google.gwt.user.client.ui.AbsolutePanel.add(AbsolutePanel.java:97)
     at
 com.darc.autohome.automatortool.client.Controller.showLoginPage(Controller.java:
 28)
     at
 com.darc.autohome.automatortool.client.AutohomeAutomator.onModuleLoad(AutohomeAutomator.java:
 17)
     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:
 396)
     at
 com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:
 183)
     at
 com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
 510)
     at
 com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
 352)
     at java.lang.Thread.run(Thread.java:619)
 ---

-- 
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: replacement for String.format in GWT?

2011-02-15 Thread Ben Imp
If you are trying to format a date, which appears to be the case, you
can use DateTimeFormat.

-Ben

On Feb 15, 12:36 pm, Magnus alpineblas...@googlemail.com wrote:
 Hi,

 I need String.format:

 String r = String.format(%2d %2d:%2d:%2d,d,h,m,s);

 Since GWT does not support this method: What can I do instead?

 Magnus

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



Problems installing today

2011-02-15 Thread Nate
I'm running Eclipse Helios on my iMac.  Today I installed GWT after I
created a new project for it I selected Debug-Web Application and
received a source not found error:

Thread [main] (Suspended (exception ClassNotFoundException))
URLClassLoader$1.run() line: 202
AccessController.doPrivileged(PrivilegedExceptionActionT,
AccessControlContext) line: not available [native method]
Launcher$ExtClassLoader(URLClassLoader).findClass(String) line: 190
Launcher$ExtClassLoader.findClass(String) line: 229
Launcher$ExtClassLoader(ClassLoader).loadClass(String, boolean) line:
307
Launcher$AppClassLoader(ClassLoader).loadClass(String, boolean) line:
296
Launcher$AppClassLoader.loadClass(String, boolean) line: 301
Launcher$AppClassLoader(ClassLoader).loadClass(String) line: 248
InstrumentationImpl.loadClassAndStartAgent(String, String, String)
line: 280
InstrumentationImpl.loadClassAndCallPremain(String, String) line:
338

How do I correct this?

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.



Re: UI Binder File Not Loaded During Runtime

2011-02-15 Thread Nick Apperley
Something is not being initialized properly (most likely the
Composite). Shouldn't the server take care of this?


On Feb 16, 10:23 am, Nick Apperley napper...@gmail.com wrote:
 Based on the exception the problem occurs when the login page (a
 Composite) is being added to the RootLayoutPanel.


-- 
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 2.2 and WEB-INF/deploy

2011-02-15 Thread Filipe Sousa


On Tuesday, February 15, 2011 1:59:01 PM UTC, Thomas Broyer wrote:

 From the doc, you should deploy it (otherwise, why would it be emitted to 
 the ${war}/WEB-INF?)


that's a good question.
 



 http://google-web-toolkit.googlecode.com/svn/javadoc/2.2/com/google/gwt/core/ext/linker/EmittedArtifact.Visibility.html#Deploy

 See also the doc for the -deploy command line argument:
 The directory into which deployable but not servable output files will 
 be written (defaults to 'WEB-INF/deploy' under the -war directory/jar, and 
 may be the same as the -extra directory/jar)

 I haven't found where those files would later be used by server code, so I 
 guess you can safely exclude them (i.e. use a -deploy that points outside 
 your ${war}).


Just in case I'll pack the deploy folder. Unfortunately this folder takes 
several MBytes. 

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



UiBinder doesn't autocomplete anymore in Eclipse

2011-02-15 Thread pete
Hallo,

since I updated my Google-Plugin with the last GWT 2.2 release, for
some reason the autocomplete in UiBinder templates doesn't work
anymore in my Eclipse 3.5
If I press control + space, I see possibilities (e.g. when providing a
path) but if I click on a possibility, it doesn't get filled in. This
is really annoying, since I have to type everything, like long package
combinations in type declarations or long class names in the
templates.

Has anyone else experienced this problem? And maybe even solved it?

Many thanks in advance and greetings,
Pete

-- 
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: UiBinder doesn't autocomplete anymore in Eclipse

2011-02-15 Thread Jeff Chimene
On 02/15/2011 03:16 PM, pete wrote:
 Hallo,
 
 since I updated my Google-Plugin with the last GWT 2.2 release, for
 some reason the autocomplete in UiBinder templates doesn't work
 anymore in my Eclipse 3.5
 If I press control + space, I see possibilities (e.g. when providing a
 path) but if I click on a possibility, it doesn't get filled in. This
 is really annoying, since I have to type everything, like long package
 combinations in type declarations or long class names in the
 templates.
 
 Has anyone else experienced this problem? And maybe even solved it?
 
 Many thanks in advance and greetings,
 Pete
 

I've seen it, reproduced it, reported it, and the GWT team is looking
into it.

Cheers,
jec

-- 
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: Can't work with GWT Designer

2011-02-15 Thread Eric Clayberg
To completely uninstall the old version of GWT Designer, go to Help 
About  Installation Details  Installed Software, select all of the
GWT Designer / WindowBuilder v8.1.x components (everything with a
8.1.x version tag), and click Uninstall.

-Eric

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



  1   2   >