Re: Server communication that is compatible with Android

2011-11-18 Thread Thomas Broyer
Absolutely!

RF is not tied to AppEngine at all (we do use it since its early 
beginnings, two years ago, as part of GWT 2.1-M1, on local Jetty 
servers). The server-side of RF is just a servlet.

And there's a pure JVM version that can run on Android (use 
RequestFactorySource instead of GWT.create(), and init with a 
UrlRequestTransport –or a RequestTransport of your own based on Apache 
HttpClient– that point to your server)

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/N6Kqe2vXi3wJ.
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: DataGrid, Activity/Place don't work on IE7

2011-11-18 Thread Thomas Broyer
Does the Showcase work in IE7? 
http://gwt.google.com/samples/Showcase/Showcase.html#!CwDataGrid
If it does, then it's not an issue with DataGrid in IE7, but how you're 
using it in your app.

(also, note that using RootLayoutPanel is not enough if you don't have 
RequiresResize/ProvidesResize widgets all the way down to your DataGrid: in 
the sample code you posted, you have a VerticalPanel which breaks the 
chain; but it's not the issue, as you explicitly set the width and height 
of the DockLayoutPanel).

I'm sorry I don't have time to download/build/test your sample project, and 
don't have an IE7 at hand either.

What I'd do:
 - try removing the DockLayoutPanel (setting explicit dimensions on the 
DataGrid instead)
 - set breakpoints within DataGrid (onResize, setSize and similar)
 - add logs (window.alert, GWT.log, or java.util.logging) of the DataGrid 
dimensions (and/or explore the DOM using the IE Developer Toolbar); beware 
that layout panels handle resize in a Scheduler#scheduleFinally, so defer 
your logging a bit; don't do it straight in your start() method.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/cNX6AM2JCyMJ.
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: Different GWT compilation from Eclipse and command line

2011-11-18 Thread jogo
Hi Gal, thank you for sharing the gwt ant build script.

The script wasn't the problem, I was able to compile the source with
the default ant build script. The problem was that compiled code from
Eclipse worked but from command line didn't.

Today I made some other tests and I finally I identified the problem.

I compiled the source code in Eclipse using DETAILED, PRETTY and
OBFUSCATED output. And I did the same with the ant script. Then I
compared them.

I was hoping to see some differences in Eclipse generated code and in
command line, but to my surprise all generated files were binary
identical!  = it was not problem of compiling.

Then I deployed to the test environment each version. OBFUSCATED
version failed with error. But, when I deployed PRETTY and DETAILED
versions the code worked!

So it also explains, why I wasn't getting errors from Eclipse build,
because output might have been set to PRETTY / DETAILED. Ant script by
default produces obfuscated code.


Here is a code snippet from the native method, that fails:

public static native String parseJSON(String json) /*-{
var retval = [];

try {
var x = 0;

if (json != null) {
var obj = eval( '(' + json + ')' );   HERE IT
FAILS
var entries = obj.feed.entry;

I was getting error 'Can't find variable obj'.

I've replaced the eval function with JSON.parse method (http://
www.json.org/js.html) and included json2.js file in the entry html
file, but it is still the same. Obfuscated version doesn't work and
I'm getting the same error 'Can't find variable obj' while detailed
version works.

Any ideas?


On Nov 17, 4:08 am, Gal Dolber gal.dol...@gmail.com wrote:
 I'm compiling projects using gwt trunk from ant without problem

 this is my base ant scripthttp://pastebin.com/prRQEETz

 and this is how I extend it for each projecthttp://pastebin.com/t7RLmd29

 the script asume you are using lombok and it support annotation processors,
 but you should be able to extract the gwt compilation part.

 Hope it helps









 On Wed, Nov 16, 2011 at 4:48 PM, jogo stanislav.tvaru...@gmail.com wrote:
  Hi,

  I'm getting really frustrated from this, so any advice is highly
  appreciated.

  In my GWT project, there is a java native method that calls eval
  function inside. All worked fine till I updated from 2.3.0 to 2.4.0
  (on Windows XP in Eclipse). After that, when I compiled the project in
  Eclipse (GWT 2.4.0) the native method stopped working and I spent
  quite a lot of time figuring out what was the cause of this problem.

  It turned out, that the update form 2.3.0 to 2.4.0 caused it. Then I
  downgraded back to GWT SDK 2.3.0, re-configured Eclipse and then again
  all worked fine.

  Today I created a simple ant build script (generated from
  webAppCreator app using SDK 2.3.0) and used it. And again, the problem
  re-surfaced, the native method doesn't work! The ant script uses SDK
  2.3.0.

  The surprising thing is, that when I compile the project from Eclipse
  with SDK 2.3.0 all works fine. When I compile the project from command
  line using the same SDK and JRE compiled code is different and doesn't
  work.

  Any idea where the problem might be? 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.

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

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

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



Re: code splitting in gwt

2011-11-18 Thread Ed
Some use cases:

1. Load faster by bringing chunks of code down as needed.

2. Load only what the user needs at the app level. I use this to
handle multiple backends for a single frontend.

e

On Thu, Nov 17, 2011 at 10:11 AM, Thomas Klöber kloe...@ics.de wrote:
 Am 17.11.2011 11:17, schrieb HARISH SAHARAN:

 dear sir,
              can u plz tell me about code splitting means why to use
 it ?
  and how to use it ??

 plz read this:
 http://code.google.com/intl/de-DE/webtoolkit/doc/latest/DevGuideCodeSplitting.html

 --
 Intelligent Communication Software Vertriebs GmbH
 Firmensitz: Kistlerhof Str. 111, 81379 München
 Registergericht: Amtsgericht München, HRB 88283
 Geschäftsführer: Albert Fuss

 --
 You received 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: DataGrid, Activity/Place don't work on IE7

2011-11-18 Thread Juan Pablo Gardella
Well some news:

- Showcase work on IE7.

- If I removing the DockLayoutPanel (setting explicit dimensions on the
DataGrid instead):

DON'T WORK
g:VerticalPanel addStyleNames='mainPanel'
g:DockLayoutPanel unit=PX height=450px width=700px
g:center
c:DataGrid ui:field=resultTable /
/g:center
/g:DockLayoutPanel
/g:VerticalPanel

WORKS:
 c:DataGrid ui:field=resultTable height=450px
width=700px/

So, it seems datagrid inside dockpanel doesn't work well on IE7.

I'll continue with more tests.. Thanks Thomas


Works. So in IE7, you can't put Datagrid

2011/11/18 Juan Pablo Gardella gardellajuanpa...@gmail.com

 Thanks again Thomas! I'll try your suggestions.

 Juan



 2011/11/18 Thomas Broyer t.bro...@gmail.com

 Does the Showcase work in IE7?
 http://gwt.google.com/samples/Showcase/Showcase.html#!CwDataGrid
 If it does, then it's not an issue with DataGrid in IE7, but how you're
 using it in your app.

 (also, note that using RootLayoutPanel is not enough if you don't have
 RequiresResize/ProvidesResize widgets all the way down to your DataGrid: in
 the sample code you posted, you have a VerticalPanel which breaks the
 chain; but it's not the issue, as you explicitly set the width and height
 of the DockLayoutPanel).

 I'm sorry I don't have time to download/build/test your sample project,
 and don't have an IE7 at hand either.

 What I'd do:
  - try removing the DockLayoutPanel (setting explicit dimensions on the
 DataGrid instead)
  - set breakpoints within DataGrid (onResize, setSize and similar)
  - add logs (window.alert, GWT.log, or java.util.logging) of the DataGrid
 dimensions (and/or explore the DOM using the IE Developer Toolbar); beware
 that layout panels handle resize in a Scheduler#scheduleFinally, so defer
 your logging a bit; don't do it straight in your start() method.

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

 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: DataGrid, Activity/Place don't work on IE7

2011-11-18 Thread Raphael André Bauer
On Fri, Nov 18, 2011 at 12:55 PM, Juan Pablo Gardella
gardellajuanpa...@gmail.com wrote:
 Well some news:

 - Showcase work on IE7.

 - If I removing the DockLayoutPanel (setting explicit dimensions on the
 DataGrid instead):

 DON'T WORK
     g:VerticalPanel addStyleNames='mainPanel'
         g:DockLayoutPanel unit=PX height=450px width=700px
             g:center
                 c:DataGrid ui:field=resultTable /
             /g:center
         /g:DockLayoutPanel
     /g:VerticalPanel

 WORKS:
          c:DataGrid ui:field=resultTable height=450px
 width=700px/

 So, it seems datagrid inside dockpanel doesn't work well on IE7.

 I'll continue with more tests.. Thanks Thomas

The problem is almost certainly your VerticalPanel (Thomas already
pointed that out). But I am not sure if setting the height and width
will remediate things...

Can you try to remove the VerticalPanel and check if it works?

Eg try that:

        g:DockLayoutPanel unit=PX height=450px width=700px
             g:center
                 c:DataGrid ui:field=resultTable /
             /g:center         /g:DockLayoutPanel


Best,


Raphael

-- 
You received 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: DataGrid, Activity/Place don't work on IE7

2011-11-18 Thread Juan Pablo Gardella
Nop :( don't work. I can't understand why inside DockLayoutPanel the grid
doesn't display. If I put another widget (for ex. a Label) it shows.

In showcase use DockLayoutPanel, but use different layout. It's have rigth
panel and left panel. I use only one main panel. I want discover why don't
work.

Thanks for your time,
Juan

2011/11/18 Raphael André Bauer raphael.andre.ba...@gmail.com

 On Fri, Nov 18, 2011 at 12:55 PM, Juan Pablo Gardella
 gardellajuanpa...@gmail.com wrote:
  Well some news:
 
  - Showcase work on IE7.
 
  - If I removing the DockLayoutPanel (setting explicit dimensions on the
  DataGrid instead):
 
  DON'T WORK
  g:VerticalPanel addStyleNames='mainPanel'
  g:DockLayoutPanel unit=PX height=450px width=700px
  g:center
  c:DataGrid ui:field=resultTable /
  /g:center
  /g:DockLayoutPanel
  /g:VerticalPanel
 
  WORKS:
   c:DataGrid ui:field=resultTable height=450px
  width=700px/
 
  So, it seems datagrid inside dockpanel doesn't work well on IE7.
 
  I'll continue with more tests.. Thanks Thomas

 The problem is almost certainly your VerticalPanel (Thomas already
 pointed that out). But I am not sure if setting the height and width
 will remediate things...

 Can you try to remove the VerticalPanel and check if it works?

 Eg try that:

 g:DockLayoutPanel unit=PX height=450px width=700px
  g:center
  c:DataGrid ui:field=resultTable /
  /g:center /g:DockLayoutPanel


 Best,


 Raphael

 --
 You received 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: Hibernate ClassCastException in GWT hosted mode only

2011-11-18 Thread Alexander Lochschmied


It only becomes:


Caused by: java.lang.ClassCastException: org.hibernate.dialect.MySQL5Dialect 
cannot be cast to org.hibernate.dialect.Dialect


We haven playing with those JARs as there may be incompatibilities (JPA 1 
vs 2) I think. Currently we do *not *reference them 
(hibernate-jpa-2.0-api, hibernate-validator and validation-api).

Could it be a class loading issue? I see the following in log with JPA 
setup being disabled (that's when Jetty starts normally):
JspRuntimeContext  - Parent class loader is: ContextLoader@null

Thanks Juan!

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/cXtHXc6B_MkJ.
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: Hibernate ClassCastException in GWT hosted mode only

2011-11-18 Thread Alexander Lochschmied
Sorry for the typo; wanted to say: We have been playing ...

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/MDrIMjRfHUwJ.
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: Hibernate ClassCastException in GWT hosted mode only

2011-11-18 Thread Juan Pablo Gardella
I have a sample that use hibernate 3.6.x and run inside jetty here:
https://bitbucket.org/gardellajuanpablo/gwt-sample/wiki/Home

Check the pom.xml.

If you can't resolve the issue tell me.

Juan



2011/11/18 Alexander Lochschmied alexander.lochschm...@gmail.com

 It only becomes:


 Caused by: java.lang.ClassCastException: org.hibernate.dialect.MySQL5Dialect 
 cannot be cast to org.hibernate.dialect.Dialect


 We haven playing with those JARs as there may be incompatibilities (JPA 1
 vs 2) I think. Currently we do *not *reference them
 (hibernate-jpa-2.0-api, hibernate-validator and validation-api).

 Could it be a class loading issue? I see the following in log with JPA
 setup being disabled (that's when Jetty starts normally):
 JspRuntimeContext  - Parent class loader is: ContextLoader@null

 Thanks Juan!

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

 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.



GWT Module cleanup

2011-11-18 Thread Jonathan Gossage
GWT has the entry point EntryPoint to initialize a module but I cannot
find an analogous entry point for a module being unloaded. I want to
release some resources when a module is unloaded and I can`t find the
place to do it. Any ideas?

-- 
You received 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 Developer Plugin for Firefox 8

2011-11-18 Thread Levi Van Zele
Thanks a lot! Works on Ubuntu amd64 as well.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/DoL-mvcndQAJ.
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.



Best practives to work with complex tokens with Activities and Places (MVP)

2011-11-18 Thread Andrew Uglev
Hi! I read a lot about MVP, tokens, places but still newbie and need
an advise about complex token strategy.
For example I have a Book object (that has its activity, place, view).
The book can be shown, edited and commented by its ID. The token need
to be switched to smth like
#bookPlace:234/show
#bookPlace:234/edit
#bookPlace:234/comment

Switching to edit and add comment need to be done without reloading
object (I mean that something like  getPlaceController().goTo(new
BookPlace(edit)) will reload the object)

To switch to comment state of book's view without reloading I'm
trying to use
History.newItem(History.getToken() + /comment, false);  // token
goes to #bookPlace:234/comment, the view displays comment input form

To properly display  #bookPlace:234/comment token In the Book activity
constructor I need parse the token using something like:
String[] tokenPath = place.getPlaceName().split(/);
this.bookID = tokenPath[0];
this.action = tokenPath[1];

Are there some helper classes to parse and map complex tokens? Am I
right using  History.newItem(History.getToken() + /comment, false);
to add actions to token?

Any links on the best complex tokens implementation with Places and
Activities are welcome.

-- 
You received 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: Hibernate ClassCastException in GWT hosted mode only

2011-11-18 Thread kebatshotse setimela
i cannot solve it

On 11/18/11, Juan Pablo Gardella gardellajuanpa...@gmail.com wrote:
 I have a sample that use hibernate 3.6.x and run inside jetty here:
 https://bitbucket.org/gardellajuanpablo/gwt-sample/wiki/Home

 Check the pom.xml.

 If you can't resolve the issue tell me.

 Juan



 2011/11/18 Alexander Lochschmied alexander.lochschm...@gmail.com

 It only becomes:


 Caused by: java.lang.ClassCastException:
 org.hibernate.dialect.MySQL5Dialect cannot be cast to
 org.hibernate.dialect.Dialect


 We haven playing with those JARs as there may be incompatibilities (JPA 1
 vs 2) I think. Currently we do *not *reference them
 (hibernate-jpa-2.0-api, hibernate-validator and validation-api).

 Could it be a class loading issue? I see the following in log with JPA
 setup being disabled (that's when Jetty starts normally):
 JspRuntimeContext  - Parent class loader is: ContextLoader@null

 Thanks Juan!

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

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

2011-11-18 Thread Thomas Broyer
A module is never unloaded; except when the page itself is unloaded. So 
Window.addCloseHandler might be what you're looking for; but there's no 
need to release resources then, the whole browser context is unloaded 
(the page, its scripts, stylesheets, images, etc.)

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/wqxRehEq2lkJ.
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: Hibernate ClassCastException in GWT hosted mode only

2011-11-18 Thread Thomas Broyer


On Friday, November 18, 2011 2:21:33 PM UTC+1, Alexander Lochschmied wrote:

 It only becomes:


 Caused by: java.lang.ClassCastException: org.hibernate.dialect.MySQL5Dialect 
 cannot be cast to org.hibernate.dialect.Dialect


 We haven playing with those JARs as there may be incompatibilities (JPA 1 
 vs 2) I think. Currently we do *not *reference them 
 (hibernate-jpa-2.0-api, hibernate-validator and validation-api).

 Could it be a class loading issue?


It's very likely the case yes; generally because the MySQL5Dialect comes 
from the parent classloader of the one containing the Dialect class. Could 
it be that some of your dependencies are not in the WEB-INF/lib?

IMO, when using Maven, you should really make at least 2 projects: one for 
the server and one for the client (you can possibly make server depend on 
client, but I'd rather make a third project shared that both client and 
server depend on); and you launch the server using the jetty-maven-plugin 
or whatever, and then run the DevMode in -noserver mode for the client-side 
code.
The problem is that there's no scope=client and scope=server in Maven, 
so everything in scope=compile or scope=runtime will be copied to your 
webapp's WEB-INF/lib, as expected, but will *also* be in the classpath of 
the DevMode, because there's no way to know whether your client-side code 
needs them or not; that leads to having all server classes twice on the 
classpath of the webapp (because it's a child classloader of the DevMode's 
one).

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



How do I programmatically get info about a CellTable's headers?

2011-11-18 Thread laredotornado
Hi,

I'm using GWT 2.4.  I have a
com.google.gwt.user.cellview.client.CellTable widget, but I'm having
trouble figuring out a programmatic way to get the String headers
after the widget is constructed.  I add column data like so ...

tableWidget.addColumn(column, header);

where column is a com.google.gwt.user.cellview.client.Column object
and header is a String.

Thanks for your help, - Dave

-- 
You received 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 compile error- AsyncFragmentLoader.onLoad

2011-11-18 Thread Nupur
Hi,
I posted this some where else, but not sure if it was in the right
place. Sorry if this qualifies as cross-posting, but I really need to
solve this problem.

I have created a GWT project in Eclipse. It compiles fine from
Eclipse, but on GWT compile, I get

[ERROR] An internal compiler exception occurred
com.google.gwt.dev.jjs.InternalCompilerException: Unable to locate
index method: AsyncFragmentLoader.onLoad
at com.google.gwt.dev.jjs.ast.JProgram.getIndexedMethod(JProgram.java:
767)
at
com.google.gwt.dev.jjs.impl.ControlFlowAnalyzer.init(ControlFlowAnalyzer.java:
858)
at com.google.gwt.dev.jjs.impl.Pruner.execImpl(Pruner.java:600)
at com.google.gwt.dev.jjs.impl.Pruner.exec(Pruner.java:489)
at
com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.optimizeLoop(JavaToJavaScriptCompiler.java:
830)
at
com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.optimize(JavaToJavaScriptCompiler.java:
745)
at
com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:
684)
at
com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:
33)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:284)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:233)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:145)
at com.google.gwt.dev.Compiler.run(Compiler.java:232)
at com.google.gwt.dev.Compiler.run(Compiler.java:198)
at com.google.gwt.dev.Compiler$1.run(Compiler.java:170)
at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:
88)
at
com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:
82)
at com.google.gwt.dev.Compiler.main(Compiler.java:177)


I would be so grateful for some help. I have looked at the classpath,
there are no duplicates.

-- 
You received 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: DialogBoxes and MenuBars . . . zIndexing a bad thing?

2011-11-18 Thread King_V
For anyone who has actually followed this - my solution (the hide()
followed by show()) is not actually a particularly viable solution.
It works, more or less, as long as there are no items inside the
Window (the class that extends DialogBox), such as Buttons, TextBoxes,
etc.

In Firefox 5, a Button will still work, but a TextBox will never be
able to get focus.

In IE8, a Button will require a double-click to work, but a TextBox
can still be used correctly.

I don't know what other side effects will happen with other Widgets.

Back to the drawing board

On Nov 11, 4:17 pm, King_V kin...@mindless.com wrote:
 Well, this is embarrassing, but maybe the answer will help someone
 else who's run into the same problem.

 Override the onBrowserEvent() method in my own subclass of DialogBox
 as follows:

   @Override
   public void onBrowserEvent(Event event) {
     switch(event.getTypeInt()) {
       case Event.ONMOUSEDOWN:
         hide();
         show();
     }
     super.onBrowserEvent(event);
   }

 And that does it, with no ill effects in terms of obscuring the
 MenuBar objects.  Sheesh, I must now hold the record for shortest time
 between someone posting and answering their own question!

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



Multiple DialogBoxes, bringing one to the front of others - a conundrum.

2011-11-18 Thread King_V
All,

Ok, so I'm still, after a bit of hiatus, trying to create a Window-
type of class that extends DialogBox.  I'm going to call it MyWindow
for now.

I'm MOST of the way there.  I've been able to create a Caption class
that will have minimize, maximize, and close buttons.

I've been able to get it to change the cursor for a resizable MyWindow
- though I haven't  yet implemented the code that does the resizing.

The real roadblock I have right now is how to bring one of the
MyWindow objects to the front of the others.

Normally, DialogBox will have the most recently shown one in front of
previous ones.

Now, they ALL seem to have a z-index of 0.  Yet, obviously, there are
some on top of others.

For the MyWindow class, I want to be able to click on one of these
objects, and have it brought to the front.

Two solutions I've tried have drawbacks that make them non-viable
solutions.
   1 - If I rely on incrementing the zIndex, other objects, such as
menu items in a MenuBar, wind up being concealed by any MyWindow
that's in the area.
   2 - Using the hide() followed by show() in an override of
onBrowserEvent solved that problem, but introduced issues with being
unable to focus on certain components inside the MyWindow.

I have detailed what I've encountered in the thread DialogBoxes and
MenuBars . . . zIndexing a bad thing? located at:
http://groups.google.com/group/google-web-toolkit/browse_thread/thread/9a819fd58c9a15bb/ea04ac89956cda4c

So, my question - how do I get around this?  How can I get true window-
like behavior, being able to pop a MyWindow up in front of other
MyWindow objects, without these unintended side-effects?

Any help on this matter 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.



Re: I can't get RichTextAre OnPaste Event hooking|sinking to work?

2011-11-18 Thread darkflame
Funny, thought I replied to this :-/

Anyway, fantasic work.
I did a quick implementation in my app and found the following:

Chrome - works flawlessly. At least data cut and paste from open
office is stripped clean nicely.
Firefox - as expected, workaround needed.
Opera - unfortuntely data isnt stripped :-/ (completely contradicting
what I read on their forums...must have been out of date).

The work around popup does have some issues for me...my Richtext box
is already a popup and it appears under it. I guess this can  be fixed
with a basic zIndex.

Anyway, once again, great work, supprised its not getting more
attention.

On Nov 5, 4:53 pm, Brandon Donnelson branflake2...@gmail.com wrote:
 Here is my latest rendition. I can't find a perfect solution due to mozilla
 clipboard data access. But I found a workaround using doubleclick on the
 RichTextArea. I want to add later, a warning for firefox pasters. So far
 this is what I have.

 http://code.google.com/p/gwt-examples/wiki/DemoGWTTextBoxExpander?ts=...
 - wiki with demo and source

 http://code.google.com/p/gwt-examples/source/browse/#svn%2Ftrunk%2FGo...
 - workaround

 http://demogwttextexpand.appspot.com/- demo

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



Drag-and-drop plugin of GwtQuery is now compatible with GWT 2.4

2011-11-18 Thread Julien Dramaix
Hello,

I've just released a new version of the drag-and-drop plugin of
GwtQuery.
This plugin allows you to add easily drag-and-drop support to any DOM
element or Widget including the data presentation widgets. This
release brings a new widget : DragAndDropDataGrid. Check the example
(and the others) : 
http://gwtquery-plugins.googlecode.com/svn/trunk/droppable/demo/DataGridSample/DataGridSample.html

Documentation : 
http://code.google.com/p/gwtquery-plugins/wiki/DragAndDropPluginForGWTDeveloppers
Download page : http://code.google.com/p/gwtquery-plugins/downloads/list

Any comments are welcome,

Julien

-- 
You received 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 compiled app but not with dev mode

2011-11-18 Thread Oliver Uvman
Thanks for the replies! Setting up logging was easy, and after that it
took me a while to figure out that after upgrading to a new GWT
version, the gwt-query lib I used was no longer compatible. After
upgrading this one as well, my application works again.
I'll also take your good advice and exclude those folders from my git
repo.
Thanks again!
Warm regards // Oliver Uvman
On Nov 16, 1:45 am, Thomas Broyer t.bro...@gmail.com wrote:
 Look at your browser's developer tools; there are uncaught exceptions.
 Looking at them I can see there's a ClassCastException, but I didn't dig
 deeper to try to find which class and where in the code.

 Add a GWT.UncaughtExceptionHandler with some logging.

 Oh, and BTW, do not commit war/WEB-INF/classes, war/WEB-INF/deploy, .gwt et
 at.

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



Problem in viewing ui.xml in designer mode.

2011-11-18 Thread Neorj
Hi,
I am new to GWT and uiBinder concept.
While trying out examples on eclipse Galileo. I stumbled upon the
following error below.
I started my eclipse using jdk1.6.0.
I am using Mac OS X Ver 10.5.8.
Any assistance would be of great help.

Regards
RJ


Internal Error

GWT Designer encountered unexpected internal error.

This could be caused by a GWT Designer bug or by a misconfiguration
issue, conflict, partial update, etc.

java.lang.UnsupportedClassVersionError: Bad version number in .class
file

Hide stack trace.
Stack trace:

java.lang.UnsupportedClassVersionError: Bad version number in .class
file
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:676)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:
124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:317)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at
com.google.gdt.eclipse.designer.hosted.tdt.HostedModeSupport.loadImpl(HostedModeSupport.java:
111)
at
com.google.gdt.eclipse.designer.hosted.tdt.HostedModeSupport.init(HostedModeSupport.java:
84)
at
com.google.gdt.eclipse.designer.hosted.tdt.HostedModeSupportFactory.create(HostedModeSupportFactory.java:
33)
at
com.google.gdt.eclipse.designer.model.widgets.support.GwtState.getHostedModeSupport(GwtState.java:
939)
at
com.google.gdt.eclipse.designer.model.widgets.support.GwtState.initialize0(GwtState.java:
228)
at
com.google.gdt.eclipse.designer.model.widgets.support.GwtState.initialize(GwtState.java:
204)
at
com.google.gdt.eclipse.designer.uibinder.parser.UiBinderContext.createGWTState(UiBinderContext.java:
434)
at
com.google.gdt.eclipse.designer.uibinder.parser.UiBinderContext.createProjectClassLoader(UiBinderContext.java:
295)
at
org.eclipse.wb.internal.core.xml.model.EditorContext.createClassLoader(EditorContext.java:
146)
at
com.google.gdt.eclipse.designer.uibinder.parser.UiBinderContext.createClassLoader(UiBinderContext.java:
252)

-- 
You received 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: TabLayoutPanel Dynamic Resizing

2011-11-18 Thread Ashwani Gupta
Finally got a chance to work on this.

I tried inspecting the Element using IE 9 (using F12 Developer Tools).
Almost all my elements have position = absolute. I tried setting the
TabLayoutPanelContent height to 100% but nothing happend.

Its not that nothing is visible I have been seeing textarea vertically
aligned but then I can only see the first 12 of them and no way to see the
rest of them, so what I am expecting is that if TabLayoutPanel resizes the
scroll bar should appear so I can scroll down to all my text areas.


On Tue, Nov 15, 2011 at 11:58 PM, Ashwin Desikan
ashwin.desi...@gmail.comwrote:

 try setting absolute height and check if the position shows as absolute
 using Inspect Element or firebug. You can use them also to change the
 height of the TabLayoutPanelContent Style, see if that makes your panel to
 appear.

 I think its mostly due to your vertical panel, its not getting resized
 most probably. try the above option and see if the panel appears. Then we
 can try out other options

 ~Ashwin


 On Wednesday 16 November 2011 01:22:09 PM IST, Ash wrote:

 i tried setting the height of verticalpanel to 100% and also in px but
 both didn't work.
 Could be something  wrong with my code.


 On Nov 15, 11:18 pm, Ashwin 
 Desikanashwin.desi...@gmail.**comashwin.desi...@gmail.com
  wrote:

 you can override the height of the content panel in CSS. if you are not
 using styles, you have to additionally set the height of the Vertical
 Panel you are adding inside your TabLayoutPanel.

 ~Ashwin

 On Wednesday 16 November 2011 12:45:46 PM IST, Ash wrote:



  p.setHeight(100%);


  Setting the height of TabLayoutPanel to 100% as above doesn't work
 either.


  Ash


  On Nov 15, 10:57 pm, Ashwin 
 Desikanashwin.desi...@gmail.**comashwin.desi...@gmail.com
wrote:

 you have only provided the height of the tab bar which is 30 px. You
 also have to set the height of the tabpael content. Set it to 100%


  ~Ashwin


  On Wednesday 16 November 2011 12:01:48 PM IST, Ash wrote:


  Can some one tell me why the TabLayoutPanel won't resize in the
 following code.


  TabLayoutPanel p = new TabLayoutPanel(30, Unit.PX);


  VerticalPanel vp = new VerticalPanel();


  // int array[] = new int [100];
 for (int i = 0; i  100; i++) {
 TextArea ta = new TextArea();
 ta.setText(Integer.toString(i)**);
 vp.add(ta);


  }


  p.add(vp, New Tab);


  // Attach the LayoutPanel to the RootLayoutPanel. The
 latter will
 listen for
 // resize events on the window to ensure that its
 children are
 informed of
 // possible size changes.


  RootLayoutPanel rp = RootLayoutPanel.get();
 rp.add(p);- Hide quoted text -


  - Show quoted text -- Hide quoted text -


 - Show quoted text -




 --
 You received 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.comgoogle-web-toolkit@googlegroups.com
 .
 To unsubscribe from this group, send email to google-web-toolkit+**
 unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at http://groups.google.com/**
 group/google-web-toolkit?hl=enhttp://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.



[gwt-contrib] Re: Changes to support experimental development mode work: (issue1594803)

2011-11-18 Thread skybrian

http://gwt-code-reviews.appspot.com/1594803/

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


[gwt-contrib] GWT / Spring Roo Integration

2011-11-18 Thread Nick Thorson
Not sure if this is the group to join, but it seemed like at the very
least it was a good place to start.  I have been building GWT / Spring
Roo apps for about a year now, and have several thoughts I would like
to share with the development team of the GWT plugin for Spring Roo.
For the most part it works great for getting an application up and
running.  However, if I want to extend an application, I run into
several head aches.  I have identified work-arounds that I would like
to share.

Thank you,

Nick Thorson

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


[gwt-contrib] Re: Changes to support experimental development mode work: (issue1594803)

2011-11-18 Thread cromwellian

LGTM

http://gwt-code-reviews.appspot.com/1594803/

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