Google Wave UI GWT Sample

2009-07-21 Thread Allahbaksh

Hi,
Google Wave UI which is designed using GWT look awesome. When will the
client side code of Google Wave will be open sourced.
I think it is nice Sample application of GWT and should be added to
GWT samples.

I think GWT-Mosiac has similar UI look and feel as Wave. But I would
like to see how wave client is designed using GWT.
Regards,
Allahbaksh
--~--~-~--~~~---~--~~
You received 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 Horizontal Panel

2009-07-21 Thread alex.d

No, in that case you should use HorizontalSplitPanel.

On 20 Jul., 21:15, Rahul coolrahul18...@gmail.com wrote:
 there are no errors when i run it
 Hello and Hello22 comes sides next to each other, shouldnt they be
 separate by an horizontal spilit?

 On Jul 20, 2:54 pm, Rahul coolrahul18...@gmail.com wrote:

  Hi,
  I am not able to see the Horizontal Panel
  this is my code

  public void onModuleLoad() {
                  HorizontalPanel panel = new HorizontalPanel();
                  Label L1 = new Label();
                  Label L2 = new Label();

                  L1.setText(Hello);
                  L2.setText(Hello 22);
                  panel.add(L1);
                  panel.add(L2);
                  RootPanel root = RootPanel.get();
                  root.add(panel);
          }
          }

  When i change horizontal Panel to horizontal shift panel its works,
  but it does not works with horizontal panel
  why is 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
-~--~~~~--~~--~--~---



Re: Determining a specific cell in a FlexTable

2009-07-21 Thread alex.d

You can let each widget know it's position in the table by extending
it with row and col properties.

On 20 Jul., 16:37, jeffdonthemic j...@jeffdouglas.com wrote:
 I'm working on my first project using the FlexTable and am developing
 a time entry POC. Essentially users can click a button to add a new
 row to the entry screen, select a project for that row and then enter
 time for 7 days. I then total the 7 days for the line and then sum all
 of the lines for a grand total. Not rocket science.

 I'm using a few handlers to determine which cell and row the user is
 currently entering time for but it seems like a hack. Is there an easy
 way to determine which widget in the FlexTable (row x, column x) the
 user is currently interacting with?

 Thanks!
 Jeff
--~--~-~--~~~---~--~~
You received 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: Google Wave UI GWT Sample

2009-07-21 Thread DuoCentillion

Good luck trying to get Google to Open Source that Gem.  Why dont they
Open Source all their search indexing algos while they are at it.

On Jul 21, 7:04 am, Allahbaksh a.allahba...@gmail.com wrote:
 Hi,
 Google Wave UI which is designed using GWT look awesome. When will the
 client side code of Google Wave will be open sourced.
 I think it is nice Sample application of GWT and should be added to
 GWT samples.

 I think GWT-Mosiac has similar UI look and feel as Wave. But I would
 like to see how wave client is designed using GWT.
 Regards,
 Allahbaksh
--~--~-~--~~~---~--~~
You received 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: Google Wave UI GWT Sample

2009-07-21 Thread Thomas Broyer



On 21 juil, 09:29, DuoCentillion duocentill...@gmail.com wrote:
 Good luck trying to get Google to Open Source that Gem.  Why dont they
 Open Source all their search indexing algos while they are at it.

Surely you didn't listened to Google I/O keynotes, they said they
*will* open-source it (Q3, maybe Q4, this year)

--~--~-~--~~~---~--~~
You received 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: Google Wave UI GWT Sample

2009-07-21 Thread Cristiano

I'm interested into the Google Wave UI too!

On 21 Lug, 09:35, Thomas Broyer t.bro...@gmail.com wrote:
 On 21 juil, 09:29, DuoCentillion duocentill...@gmail.com wrote:

  Good luck trying to get Google to Open Source that Gem.  Why dont they
  Open Source all their search indexing algos while they are at it.

 Surely you didn't listened to Google I/O keynotes, they said they
 *will* open-source it (Q3, maybe Q4, this year)
--~--~-~--~~~---~--~~
You received 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 Toolkit Problem

2009-07-21 Thread martinhansen

Does your ServiceImpl class extend RemoteServiceServlet?

On 20 Jul., 22:01, JonJ27 jon...@gmail.com wrote:
 Hi all.. i hope you can help me. I am new to GWT. I am using RAD 7.5.

 I have ran through the StockWatcher tutorial and succesfully got the
 app working and even got the Client Server communication using 2
 seperate machines using RPC using a Proxy.

 I also managed to import the created project into a Dynamic Web
 Project created by RAD. This also would run on WebSphere Test Env and
 Hosted mode.

 However, i have now come across an issue where the app wont recognise
 the Service class specifed in the web.xml as a servlet. .

 I have even gone back to basics and created a new GWT application from
 scratch and followed through the StockWatcher tutorial again but i
 keep getting the same error which i have posted below.

 I have ran the updates for the GWT. I believe the version i am on is
 1.7.

 Thanks in advance for your help.

 20-Jul-2009 19:42:32 com.google.apphosting.utils.jetty.JettyLogger
 warn
 WARNING: failed stockPriceServiceImpl
 Throwable occurred: javax.servlet.UnavailableException: Servlet class
 com.google.gwt.sample.stockwatcher.server.StockPriceServiceImpl is not
 a javax.servlet.Servlet
         at org.mortbay.jetty.servlet.ServletHolder.checkServletType
 (ServletHolder.java:377)
         at org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:
 234)
         at org.mortbay.component.AbstractLifeCycle.start
 (AbstractLifeCycle.java:40)
         at org.mortbay.jetty.servlet.ServletHandler.initialize
 (ServletHandler.java:612)
         at org.mortbay.jetty.servlet.Context.startContext(Context.java:139)
         at org.mortbay.jetty.webapp.WebAppContext.startContext
 (WebAppContext.java:1218)
         at org.mortbay.jetty.handler.ContextHandler.doStart
 (ContextHandler.java:500)
         at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:
 448)
         at org.mortbay.component.AbstractLifeCycle.start
 (AbstractLifeCycle.java:40)
         at org.mortbay.jetty.handler.HandlerWrapper.doStart
 (HandlerWrapper.java:117)
         at org.mortbay.component.AbstractLifeCycle.start
 (AbstractLifeCycle.java:40)
         at org.mortbay.jetty.handler.HandlerWrapper.doStart
 (HandlerWrapper.java:117)
         at org.mortbay.jetty.Server.doStart(Server.java:217)
         at org.mortbay.component.AbstractLifeCycle.start
 (AbstractLifeCycle.java:40)
         at
 com.google.appengine.tools.development.JettyContainerService.startContainer
 (JettyContainerService.java:147)
         at
 com.google.appengine.tools.development.AbstractContainerService.startup
 (AbstractContainerService.java:116)
         at com.google.appengine.tools.development.DevAppServerImpl.start
 (DevAppServerImpl.java:211)
         at com.google.appengine.tools.development.gwt.AppEngineLauncher.start
 (AppEngineLauncher.java:86)
         at com.google.gwt.dev.HostedMode.doStartUpServer(HostedMode.java:365)
         at com.google.gwt.dev.HostedModeBase.startUp(HostedModeBase.java:590)
         at com.google.gwt.dev.HostedModeBase.run(HostedModeBase.java:397)
         at com.google.gwt.dev.HostedMode.main(HostedMode.java:232)
 20-Jul-2009 19:42:32 com.google.apphosting.utils.jetty.JettyLogger
 warn
 WARNING: Failed startup of context
 com.google.apphosting.utils.jetty.devappenginewebappcont...@4e9d4e9d
 {/,C:\Files\IBM\RAD\GoogleWebToolkit\StockWatcher\war}
 Throwable occurred: javax.servlet.UnavailableException: Servlet class
 com.google.gwt.sample.stockwatcher.server.StockPriceServiceImpl is not
 a javax.servlet.Servlet
         at org.mortbay.jetty.servlet.ServletHolder.checkServletType
 (ServletHolder.java:377)
         at org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:
 234)
         at org.mortbay.component.AbstractLifeCycle.start
 (AbstractLifeCycle.java:40)
         at org.mortbay.jetty.servlet.ServletHandler.initialize
 (ServletHandler.java:612)
         at org.mortbay.jetty.servlet.Context.startContext(Context.java:139)
         at org.mortbay.jetty.webapp.WebAppContext.startContext
 (WebAppContext.java:1218)
         at org.mortbay.jetty.handler.ContextHandler.doStart
 (ContextHandler.java:500)
         at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:
 448)
         at org.mortbay.component.AbstractLifeCycle.start
 (AbstractLifeCycle.java:40)
         at org.mortbay.jetty.handler.HandlerWrapper.doStart
 (HandlerWrapper.java:117)
         at org.mortbay.component.AbstractLifeCycle.start
 (AbstractLifeCycle.java:40)
         at org.mortbay.jetty.handler.HandlerWrapper.doStart
 (HandlerWrapper.java:117)
         at org.mortbay.jetty.Server.doStart(Server.java:217)
         at org.mortbay.component.AbstractLifeCycle.start
 (AbstractLifeCycle.java:40)
         at
 com.google.appengine.tools.development.JettyContainerService.startContainer
 (JettyContainerService.java:147)
         at
 

InfoWindowContent JavaScript Browsers

2009-07-21 Thread lumo

Hello NG!

i found something akward.
i am putting some data in a InfoWindow.
when i open this data in FF or IE all works fine.
as soon as i put it in the infowindow as InfoWindowContent
IE stops executing the JavaScript.
i even tried with the most simple JS around...
script type=text/javascriptalert('OK');/script
note that FF executes ALL javascripts correct! but this will not help,
as also IE has to work on the page...

note that IE also throws:
==
Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64;
Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR
3.0.30729; Media Center PC 6.0)
Timestamp: Tue, 21 Jul 2009 07:39:58 UTC


Message: 'lat' is null or not an object
Line: 1099
Char: 86
Code: 0
URI: http://maps.gstatic.com/intl/de_ALL/mapfiles/159e/maps2.api/main.js
==
which is gmaps api - probably this stops the scripts from working -
afaik ie stops executing JS after an error...

hope someone can solve this with me.
thanks in advance
lumo
--~--~-~--~~~---~--~~
You received 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 Toolkit Problem

2009-07-21 Thread JonJ27

Hi Martin

Yeah it does.

com.google.gwt.user.client.rpc.RemoteService.

Thanks in advance for your help.

Jonathan


On Jul 21, 8:42 am, martinhansen martin.hanse...@googlemail.com
wrote:
 Does your ServiceImpl class extend RemoteServiceServlet?

 On 20 Jul., 22:01, JonJ27 jon...@gmail.com wrote:



  Hi all.. i hope you can help me. I am new to GWT. I am using RAD 7.5.

  I have ran through the StockWatcher tutorial and succesfully got the
  app working and even got the Client Server communication using 2
  seperate machines using RPC using a Proxy.

  I also managed to import the created project into a Dynamic Web
  Project created by RAD. This also would run on WebSphere Test Env and
  Hosted mode.

  However, i have now come across an issue where the app wont recognise
  the Service class specifed in the web.xml as a servlet. .

  I have even gone back to basics and created a new GWT application from
  scratch and followed through the StockWatcher tutorial again but i
  keep getting the same error which i have posted below.

  I have ran the updates for the GWT. I believe the version i am on is
  1.7.

  Thanks in advance for your help.

  20-Jul-2009 19:42:32 com.google.apphosting.utils.jetty.JettyLogger
  warn
  WARNING: failed stockPriceServiceImpl
  Throwable occurred: javax.servlet.UnavailableException: Servlet class
  com.google.gwt.sample.stockwatcher.server.StockPriceServiceImpl is not
  a javax.servlet.Servlet
          at org.mortbay.jetty.servlet.ServletHolder.checkServletType
  (ServletHolder.java:377)
          at 
  org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:
  234)
          at org.mortbay.component.AbstractLifeCycle.start
  (AbstractLifeCycle.java:40)
          at org.mortbay.jetty.servlet.ServletHandler.initialize
  (ServletHandler.java:612)
          at org.mortbay.jetty.servlet.Context.startContext(Context.java:139)
          at org.mortbay.jetty.webapp.WebAppContext.startContext
  (WebAppContext.java:1218)
          at org.mortbay.jetty.handler.ContextHandler.doStart
  (ContextHandler.java:500)
          at 
  org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:
  448)
          at org.mortbay.component.AbstractLifeCycle.start
  (AbstractLifeCycle.java:40)
          at org.mortbay.jetty.handler.HandlerWrapper.doStart
  (HandlerWrapper.java:117)
          at org.mortbay.component.AbstractLifeCycle.start
  (AbstractLifeCycle.java:40)
          at org.mortbay.jetty.handler.HandlerWrapper.doStart
  (HandlerWrapper.java:117)
          at org.mortbay.jetty.Server.doStart(Server.java:217)
          at org.mortbay.component.AbstractLifeCycle.start
  (AbstractLifeCycle.java:40)
          at
  com.google.appengine.tools.development.JettyContainerService.startContainer
  (JettyContainerService.java:147)
          at
  com.google.appengine.tools.development.AbstractContainerService.startup
  (AbstractContainerService.java:116)
          at com.google.appengine.tools.development.DevAppServerImpl.start
  (DevAppServerImpl.java:211)
          at 
  com.google.appengine.tools.development.gwt.AppEngineLauncher.start
  (AppEngineLauncher.java:86)
          at 
  com.google.gwt.dev.HostedMode.doStartUpServer(HostedMode.java:365)
          at 
  com.google.gwt.dev.HostedModeBase.startUp(HostedModeBase.java:590)
          at com.google.gwt.dev.HostedModeBase.run(HostedModeBase.java:397)
          at com.google.gwt.dev.HostedMode.main(HostedMode.java:232)
  20-Jul-2009 19:42:32 com.google.apphosting.utils.jetty.JettyLogger
  warn
  WARNING: Failed startup of context
  com.google.apphosting.utils.jetty.devappenginewebappcont...@4e9d4e9d
  {/,C:\Files\IBM\RAD\GoogleWebToolkit\StockWatcher\war}
  Throwable occurred: javax.servlet.UnavailableException: Servlet class
  com.google.gwt.sample.stockwatcher.server.StockPriceServiceImpl is not
  a javax.servlet.Servlet
          at org.mortbay.jetty.servlet.ServletHolder.checkServletType
  (ServletHolder.java:377)
          at 
  org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:
  234)
          at org.mortbay.component.AbstractLifeCycle.start
  (AbstractLifeCycle.java:40)
          at org.mortbay.jetty.servlet.ServletHandler.initialize
  (ServletHandler.java:612)
          at org.mortbay.jetty.servlet.Context.startContext(Context.java:139)
          at org.mortbay.jetty.webapp.WebAppContext.startContext
  (WebAppContext.java:1218)
          at org.mortbay.jetty.handler.ContextHandler.doStart
  (ContextHandler.java:500)
          at 
  org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:
  448)
          at org.mortbay.component.AbstractLifeCycle.start
  (AbstractLifeCycle.java:40)
          at org.mortbay.jetty.handler.HandlerWrapper.doStart
  (HandlerWrapper.java:117)
          at org.mortbay.component.AbstractLifeCycle.start
  (AbstractLifeCycle.java:40)
          at org.mortbay.jetty.handler.HandlerWrapper.doStart
  (HandlerWrapper.java:117)
          at 

Re: Common parent project - How?

2009-07-21 Thread Wualla

Hi


Will using Link Source let me combine both the code from the common
and the child projects? It seems to block this attempt.


Thanks

On Jul 21, 12:49 am, Jason Parekh jasonpar...@gmail.com wrote:
 Hey,
 I believe the easiest way to accomplish this is instead of using the project
 dependencies, use the linked source feature.  For each of your child
 projects, go to Properties  Java Build Path  Source  Link Source, and set
 the location to your core project's src directory (and the name to
 whatever you like).

 jason

 On Mon, Jul 20, 2009 at 2:42 PM, Wualla wua...@walla.co.il wrote:

  Hi

  Scenario:

  Core client and server code needs to be shared among several projects
  (referred to as child projects)

  My try was ro create the core project as a GWT project, and add it to
  the build path of the child projects as a dependency project.

  Under Jetty, everything works OK except I get this message:

  [WARN] Server class 'com.mycompany.core.client.domainObjects.User'
  could not be found in the web app, but was found on the system
  classpath
  [WARN] Adding classpath entry '.../Core/war/WEB-INF/classes/' to the
  web app classpath for this session

  When deployed - to Tomcat - I get:

  ...
  javax.servlet.ServletException: Error instantiating servlet class
  com.mycompany.myProject.server.MyServiceImpl
  ...
  java.lang.NoClassDefFoundError: com/mycompany/core/client/domain/User
  ...
  java.lang.ClassNotFoundException:
  com.mycompany.core.client.domainObjects.User
  ...

  What should I do? Help 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
-~--~~~~--~~--~--~---



Re: map, add marker and remove marker

2009-07-21 Thread Irwan Hendra

I'm not sure if that answer my question
because i'm using mapPanel from GWT-EXT not map from GWT and
GMarkerManager



On Jul 21, 3:42 am, Eric Ayers zun...@google.com wrote:
 That sounds like it could be attributable to this Maps API bug:

  http://code.google.com/p/gmaps-api-issues/issues/detail?id=295



 On Mon, Jul 20, 2009 at 3:11 AM, Irwan Hendraoverta...@gmail.com wrote:

  Hi

  I'm new with GWT so please bear with me
  I'm using GWT EXT and openlayer map, i'm using mapPanel to display map
  and markers on it

  following example from here:
 http://abhijeetmaharana.com/blog/2008/04/07/gwt-ext-and-google-maps/

  however, when i tried to remove the markers using
  mapPanel.removeAllMarkers() all markers got removed fine, except it
  doesn't purge the memory used, so in the end the browser (both ie and
  firefox) used up 1gb memory and then crashed

  I know this should be posted in GWT-EXT forum, but for some reason I
  never received activation email from them, so I have no choice

  please help thanks

 --
 Eric Z. Ayers - GWT Team - Atlanta, GA USAhttp://code.google.com/webtoolkit/
--~--~-~--~~~---~--~~
You received 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: Automatic Testing

2009-07-21 Thread Joakim Sjöberg

Hello Dan!

Thanks for the answer! I think that right now what we need is a simple 
end-to-end smoke test. Witch of WebDriver or
Selenium would you think is the best way to go? Do you know if any of them have 
the possibilities of getting
an xml file with data to enter during the testing to run the test with?

How does the ensureDebugId work? Is that something you add in your GWT 
application?

Many question :)

Hope to get some answers :)

// Joakim

-Original Message-
From: Google-Web-Toolkit@googlegroups.com 
[mailto:google-web-tool...@googlegroups.com] On Behalf Of Daniel Wellman
Sent: Monday, July 20, 2009 1:20 PM
To: Google Web Toolkit
Subject: Re: Automatic Testing


If you're looking to write unit or integration tests for GWT client
code, I've written an article about my experiences here:
Google Web Toolkit: Writing Ajax Applications Test-First
http://blog.danielwellman.com/2008/11/test-first-gwt-article-in-november-2008-better-software-magazine.html

If you've finished your application and want to add simple end-to-end
smoke tests, you might want to consider using WebDriver or Selenium.
To add temporary DOM IDs which only appear for testing (which will
make writing those WebDriver or Selenium tests easier), consider using
the method on UIObject called ensureDebugId:

http://tinyurl.com/mdwyky
or
http://google-web-toolkit.googlecode.com/svn/javadoc/1.6/com/google/gwt/user/client/ui/UIObject.html#ensureDebugId%28com.google.gwt.dom.client.Element,%20java.lang.String%29

Dan


On Jul 20, 5:38 am, Joakim Sjöberg joakim.sjob...@artificial-
solutions.com wrote:
 Hello!

 I have a question that you might be able to answer. We are developing a GWT 
 application and would like some form of Automatic testing of the

 GWT application. Is there any good way to do this? Could someone please point 
 me in the right direction?

 Regards

 Joakim Sjöberg
 Developer
 Artificial Solutions Scandinavia AB


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



How to use arrowkeys for cell navigation in Grid

2009-07-21 Thread Suren

Hi All,

I want a functionality to move one cell to another cell in a Grid by
pressing any one of the arrow keys in the keyboard. But currenty only
the browser's scrollbar is moving.

What I need to do to acheive this?

Kindly help me in this regards

Thanks
Suren
--~--~-~--~~~---~--~~
You received 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 changing the font-size for Tabpanel

2009-07-21 Thread aftershock

It works. 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: GWT Toolkit Problem

2009-07-21 Thread JonJ27

In addition to this.

I have just tried the very same code on my laptop with GWT SDK 1.6.4
and Google Plugin for Eclipse 3.4 and it works fine.

So.. .i uninstalled GWT on my problematic machine. Opened the
workspace with the -clean command. Reinstalled GWT SDK and Plugin
(didnt install the app engine this time as i dont think i need it). I
then ran the same code i created the previous day and that failed
again ahh!!

So, i deleted all my code.. .deleted the workspace and started again
with the sample app. Didnt include the App Engine when creating the
GWT Application. Recreated the same code.. and...

hey presto it now works.

Very confused but i guess my previous attempt at the demo copied some
jar files into the WEB-INF/lib direcotry that werent quite right.
Anyway.. onwards and upwards..

So i think for now.. i am ok..

Will keep you posted.

Thanks again for your help.

Jonathan


On Jul 21, 9:08 am, JonJ27 jon...@gmail.com wrote:
 Hi Martin

 Yeah it does.

 com.google.gwt.user.client.rpc.RemoteService.

 Thanks in advance for your help.

 Jonathan

 On Jul 21, 8:42 am, martinhansen martin.hanse...@googlemail.com
 wrote:



  Does your ServiceImpl class extend RemoteServiceServlet?

  On 20 Jul., 22:01, JonJ27 jon...@gmail.com wrote:

   Hi all.. i hope you can help me. I am new to GWT. I am using RAD 7.5.

   I have ran through the StockWatcher tutorial and succesfully got the
   app working and even got the Client Server communication using 2
   seperate machines using RPC using a Proxy.

   I also managed to import the created project into a Dynamic Web
   Project created by RAD. This also would run on WebSphere Test Env and
   Hosted mode.

   However, i have now come across an issue where the app wont recognise
   the Service class specifed in the web.xml as a servlet. .

   I have even gone back to basics and created a new GWT application from
   scratch and followed through the StockWatcher tutorial again but i
   keep getting the same error which i have posted below.

   I have ran the updates for the GWT. I believe the version i am on is
   1.7.

   Thanks in advance for your help.

   20-Jul-2009 19:42:32 com.google.apphosting.utils.jetty.JettyLogger
   warn
   WARNING: failed stockPriceServiceImpl
   Throwable occurred: javax.servlet.UnavailableException: Servlet class
   com.google.gwt.sample.stockwatcher.server.StockPriceServiceImpl is not
   a javax.servlet.Servlet
           at org.mortbay.jetty.servlet.ServletHolder.checkServletType
   (ServletHolder.java:377)
           at 
   org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:
   234)
           at org.mortbay.component.AbstractLifeCycle.start
   (AbstractLifeCycle.java:40)
           at org.mortbay.jetty.servlet.ServletHandler.initialize
   (ServletHandler.java:612)
           at 
   org.mortbay.jetty.servlet.Context.startContext(Context.java:139)
           at org.mortbay.jetty.webapp.WebAppContext.startContext
   (WebAppContext.java:1218)
           at org.mortbay.jetty.handler.ContextHandler.doStart
   (ContextHandler.java:500)
           at 
   org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:
   448)
           at org.mortbay.component.AbstractLifeCycle.start
   (AbstractLifeCycle.java:40)
           at org.mortbay.jetty.handler.HandlerWrapper.doStart
   (HandlerWrapper.java:117)
           at org.mortbay.component.AbstractLifeCycle.start
   (AbstractLifeCycle.java:40)
           at org.mortbay.jetty.handler.HandlerWrapper.doStart
   (HandlerWrapper.java:117)
           at org.mortbay.jetty.Server.doStart(Server.java:217)
           at org.mortbay.component.AbstractLifeCycle.start
   (AbstractLifeCycle.java:40)
           at
   com.google.appengine.tools.development.JettyContainerService.startContainer
   (JettyContainerService.java:147)
           at
   com.google.appengine.tools.development.AbstractContainerService.startup
   (AbstractContainerService.java:116)
           at com.google.appengine.tools.development.DevAppServerImpl.start
   (DevAppServerImpl.java:211)
           at 
   com.google.appengine.tools.development.gwt.AppEngineLauncher.start
   (AppEngineLauncher.java:86)
           at 
   com.google.gwt.dev.HostedMode.doStartUpServer(HostedMode.java:365)
           at 
   com.google.gwt.dev.HostedModeBase.startUp(HostedModeBase.java:590)
           at com.google.gwt.dev.HostedModeBase.run(HostedModeBase.java:397)
           at com.google.gwt.dev.HostedMode.main(HostedMode.java:232)
   20-Jul-2009 19:42:32 com.google.apphosting.utils.jetty.JettyLogger
   warn
   WARNING: Failed startup of context
   com.google.apphosting.utils.jetty.devappenginewebappcont...@4e9d4e9d
   {/,C:\Files\IBM\RAD\GoogleWebToolkit\StockWatcher\war}
   Throwable occurred: javax.servlet.UnavailableException: Servlet class
   com.google.gwt.sample.stockwatcher.server.StockPriceServiceImpl is not
   a javax.servlet.Servlet
           at 

Re: Add external java project to GWT project in Eclipse

2009-07-21 Thread martinhansen

Hello Jason,

that did the trick! Thank you very much, it works fine now. Great!


On 20 Jul., 23:43, Jason Parekh jasonpar...@gmail.com wrote:
 Hi Martin,
 For the Linked folder location, ensure you have the trailing src
 included.

 jason

 On Mon, Jul 20, 2009 at 4:35 PM, martinhansen 

 martin.hanse...@googlemail.com wrote:

  Now I tried the link source function without Google App Engine. At
  first, it seems to work, and the project is added to my main project.
  The only problem is: The package declarations produce errors. Eclipse
  shows an error message:

  The declared package com.company.data does not match the expected
  package src.com.company.data

  What to do?

  On 20 Jul., 22:29, martinhansen martin.hanse...@googlemail.com
  wrote:
   Hello Donald,

   I already tried the Google App Engine approach, but it didn't work for
   me. And GAE adds a lot of stuff I don't need to my project. I really
   don't want to mess around with it, since I managed to kill my GWT
   app's configuration several times and I had to create a new project.

   Meanwhile, I tried the output folder approach. I tried to change the
   default output folder of DataProject, but I
   didn't manage successfully. Eclipse says: Path '/GwtApp/src' must
   denote location inside project 'DataProject'. Am I heading the wrong
   way there?

   On 20 Jul., 22:21, Donald W. Long donald.w.l...@gmail.com wrote:

I looked at the linked source method and you have to have the linked
source fully qualified.  Thats nice if you always have your source in
the same place.  You could try using the linked variables but then
thats also work.  Do not see this as a real option for projects that
will be worked on by many developers at the same time.

If I am wrong please let me know.

Thanks

Donald W. Long (donald.w.l...@thelongsfamily.com)

On Jul 20, 1:34 pm, Jason Parekh jasonpar...@gmail.com wrote:

 Hi Martin,
 You may try using the link source option, as suggested by the thread
  athttp://groups.google.com/group/google-appengine-java/browse_thread/th..
  ..
  If that doesn't work, you could set the output directory of your
 dependencies to be the GWT output folder.

 jason

 On Mon, Jul 20, 2009 at 12:14 PM, martinhansen 

 martin.hanse...@googlemail.com wrote:

  Hello Sean,

  thank you very much. I've thought of that solution too, but it is
  not
  appropriate for my GWT project. I have to add 4 external projects
  to
  my GWT project, and all of these 4 projects are subject to change
  every day. It would be too much work to export them to a jar file
  every day. Is there some way to automatically add the external
  project
  sources to the GWT output folder?

  On 20 Jul., 18:03, Sean slough...@gmail.com wrote:
   You can export the non-GWT java files into a jar and drop those
  in the
   WEB-INF/lib folder. That's what I do.

   On Jul 20, 11:44 am, martinhansen 
  martin.hanse...@googlemail.com
   wrote:

Hello,

my GWT server-side code needs an external java project. I have
  added
the project under Configure build path / Projects. It works
  fine in
hosted mode. But when I deploy my application on a server, I
  get lots
of ClassNotFoundExceptions. Obviously, GWT cannot find the
  external
java code. When I look at the war\WEB-INF\classes folder, I see
  that
the external java classes have not been included.

How can I get GWT to include the external classes?- 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.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



external jar in GWT 1.6.x on HostedMode (jetty) not work

2009-07-21 Thread vetal

Hi all!
A need your help!
I have GWT application what work with service from external, then i
run in web mode all work fine!
But when i run in HostedMode i always get 404. I add this jar in
dependency and after running Jetty i see it in WEB-INF/lib but service
nit started, and i dont see any exception on console.
Any idea!!

Thanks,
vetal
--~--~-~--~~~---~--~~
You received 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: InfoWindowContent JavaScript Browsers

2009-07-21 Thread Eric Ayers

Hi lumo,

My guess is that your code is passing 'null' into a Maps API method.
Which method, we cannot tell because we have neither code from your
project, nor a stack trace from hosted mode.  Have you tried using
hosted mode along with a JavaScript debugger?  That will get to the
bottom of this in a jiffy.

-Eric.

On Tue, Jul 21, 2009 at 3:42 AM, lumolumo2...@gmail.com wrote:

 Hello NG!

 i found something akward.
 i am putting some data in a InfoWindow.
 when i open this data in FF or IE all works fine.
 as soon as i put it in the infowindow as InfoWindowContent
 IE stops executing the JavaScript.
 i even tried with the most simple JS around...
 script type=text/javascriptalert('OK');/script
 note that FF executes ALL javascripts correct! but this will not help,
 as also IE has to work on the page...

 note that IE also throws:
 ==
 Webpage error details

 User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64;
 Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR
 3.0.30729; Media Center PC 6.0)
 Timestamp: Tue, 21 Jul 2009 07:39:58 UTC


 Message: 'lat' is null or not an object
 Line: 1099
 Char: 86
 Code: 0
 URI: http://maps.gstatic.com/intl/de_ALL/mapfiles/159e/maps2.api/main.js
 ==
 which is gmaps api - probably this stops the scripts from working -
 afaik ie stops executing JS after an error...

 hope someone can solve this with me.
 thanks in advance
 lumo
 




-- 
Eric Z. Ayers - GWT Team - Atlanta, GA USA
http://code.google.com/webtoolkit/

--~--~-~--~~~---~--~~
You received 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: GAE + GWT + password transfer

2009-07-21 Thread El Mentecato Mayor

For what you're doing and the limitations you have mentioned, I would
go with OpenID, that way you rely on third parties to do the
authentication, and I think in most cases it will use https.  I have
used Spring Security to quickly setup openID as an authentication
method (although I have never run within appspot, so can't help with
specifics for your case).

On Jun 12, 11:45 am, Shane shanelstev...@gmail.com wrote:
 Maybe the question got lost in my research.

 I'm not from a Web background (C++ + video games), so this may be
 painfully obvious, but I want to know how people authenticate over non-
 HTTPS connections, specifically using GAE (Java).

 My point is that any app that stores any sort of user specific data
 will need the user to log into their app.  I've had a look around at
 various public sites, and watched the data going back and forth over
 the wire, and the results are surprising.  A lot of public sites use
 basic auth over http, which surprises me.  As I mention above, even
 Twitter doesn't use HTTPS in its default state for users loggin in,
 and same goes for their REST API.

 So, what do people do?  I am going to look into OpenID and OAuth next.

 Cheers,
 Shane

 On Jun 13, 12:57 am, Isaac Truett itru...@gmail.com wrote:

  I'm not sure what your question is. Do you have a specific question?

  You mentioned problems with HTTPS on GAE, which is probably a topic
  more appropriate for the GAE group. As far as GWT is concerned, I
  think you've already got the gist: HTTPS is a must-have for sending
  passwords over a public network in anything that can come close to
  being called a secure way.

  On Fri, Jun 12, 2009 at 7:46 AM, Shaneshanelstev...@gmail.com wrote:

   I really wish I had an answer to this.

   On Jun 10, 5:04 pm, Shane shanelstev...@gmail.com wrote:
   Sorry to keep talking to myself here, but I find what other sites are
   doing really interesting, and pertinent to GAE because there doesn't
   seem to be an agreed upon solution.

   Facebook uses a form for their logins that posts to an HTTPS url:

  https://login.facebook.com/login.php?

   So does Google for that matter.

   Twitter also allows forhttp://twitter.comandhttps://twitter.com,
   although the default is plaint http, probably because https is slower
   and more computationally expensive.

   So it looks like https is the most secure way, but I noticed that
   Google App Engine doesn't allow SSL unless you are using a
   *.appspot.com domain.

  http://code.google.com/appengine/docs/python/config/appconfig.html#Se...

   So if I have have my blah.mydomain.com pointing via DNS CNAME, to my
   blah.appspot.com, I can't usehttps://blah.mydomain.com.

   All this just to not send the password to the server plain text.  :|

   Cheers,
   Shane

   On Jun 10, 4:15 pm, Shane shanelstev...@gmail.com wrote:

I've actually just noticed that Twitter itself uses Basic Auth:

   http://apiwiki.twitter.com/Authentication

It says OAuth is in development, but that Basic Auth won't be going
anywhere for the foreseeable future.

The trouble is, Basic Auth is insecure:

   http://en.wikipedia.org/wiki/Basic_access_authentication

Although the scheme is easily implemented, it relies on the
assumption that the connection between the client and server computers
is secure and can be trusted. Specifically, the credentials are passed
as plaintext and could be intercepted easily. The scheme also provides
no protection for the information passed back from the server.

I am going to look around at other public web API's, but if a site as
large as Twitter is content to use this system, should I be all that
worried?

I would really like to know what experienced web programmers do here,
either in GAE+GWT, or just generally.

Cheers,
Shane

On Jun 10, 1:02 am, Shane shanelstev...@gmail.com wrote:

 I've seen some pretty heated debates around the discussion boards
 about this, but I haven't seen a solution that people decide on.

 Simply put, any application that I want to write will likely perform
 some sort of mashup between other services, like Twitter.

 For me to do anything interesting, I need the user to enter their
 Twitter username and password into a GWT client-side control on my
 site, which I then send back to my app on running on GAE.  I'll then
 use the password to log into Twitter with their credentials and do
 whatever if is I want to do, all the while not saving the users
 password in plain text anywhere.  I have no interest in holding onto
 anyone's credentials.

 So what is the best way for me to do this?  I am hearing people say
 that anything short of HTTPS is a waste of time.

 I guess this also becomes the larger issue of authentication
 generally, and I'm surprised there are still such heated discussions
 on the subject.  I thought it'd be a done deal by now.

 So, if anyone could 

Re: InfoWindowContent JavaScript Browsers

2009-07-21 Thread Eric Ayers

On Tue, Jul 21, 2009 at 7:14 AM, Eric Ayerszun...@google.com wrote:
 Hi lumo,

 My guess is that your code is passing 'null' into a Maps API method.
 Which method, we cannot tell because we have neither code from your
 project, nor a stack trace from hosted mode.  Have you tried using
 hosted mode along with a JavaScript debugger?

Sorry, I meant to say a *Java* debugger!  Like the one found in eclipse.

-- 
Eric Z. Ayers - GWT Team - Atlanta, GA USA
http://code.google.com/webtoolkit/

--~--~-~--~~~---~--~~
You received 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 1.7.0 - gwt-dnd 2.6.5 (Drag-and-drop) / gwt-log 2.6.2 (Logging) / gwt-voices 1.6.0 (Sound)

2009-07-21 Thread twdarkflame

Thanks :)
We are still bug fixing a lot, and refining the game/game engine, so
we arnt publishing it that much yet.
I'll list us in the app gallery probably in a month or so.



On Jul 21, 7:17 am, Fred Sauer fre...@google.com wrote:
 Thomas,
 I've also listed your project here:  http://code.google.com/p/gwt-voices/
  http://code.google.com/p/gwt-dnd/

 Fred





 On Mon, Jul 20, 2009 at 4:14 PM, Fred Sauer fre...@google.com wrote:
  Thomas,
  That's pretty cool. Ook leuk om iets in 't Nederlands te zien.
  Have you listed your game in the App Gallery yet?
   http://gwtgallery.appspot.com/

  Thanks for the suggestion for a global function to stop playing sounds.
  That seems pretty useful. Would you mind proposing it here?
   http://code.google.com/p/gwt-voices/issues/list

  Thanks
  Fred

  On Sat, Jul 18, 2009 at 5:10 AM, twdarkflame darkfl...@gmail.com wrote:

  Id use these libuarys a lot in a online adventure game engine under
  development (beta version here;
 http://www.cuyperscode.nl/CuypersCode2_betatest/CCIIstart.html
  (an educational game being developed with it, but the engine will be
  used for a lot more).

  You can see DnD used for the inventory and sound used all over the
  place.
  These libs are fantastic and have been much help.
  I'll be updateing to 1.7 now :)

  As for specific features, theres nothing really else I need.
  I guess a global stop/disable for sounds might be usefull though.

  -Thomas Wrobel

  On Jul 16, 4:08 am, Fred Sauer fre...@google.com wrote:
   Hi
   With GWT 1.7.0 out the door I thought it would be a good time to provide
  an
   update for gwt-dnd, gwt-log and gwt-voices. GWT 1.7 adds a new user
  agent
   deferred binding property value 'ie8' which is a breaking change for any
   project using user agent based deferred binding. To accommodate the new
   value all three libraries have a new version available for download.
  Links
   and additional details for the three projects can be found below.

   Before I talk about what's new for each of these projects though I'd
  like to
   take a moment to reach out and thank everyone who reported a bug,
  submitted
   a feature request or contributed a patch. It's really amazing how the
   efforts of individuals can be compounded for the benefit of all the
   developers in the community using these libraries and ultimately all the
   users of their apps. Thank you!

   While I have your attention, I'd like to express my interest in hearing
  more
   about how you are using these libraries in your web applications, what
   features you appreciate the most and which ones you think could use some
   improvement. In particular, I'm interested in how you might be using
  these
   libraries in team settings or in more complex development scenarios. It
   could be that you or one of your colleagues has built a library or
  higher
   level API on top of one of gwt-dnd, gwt-log or gwt-voices. Or that you
   collaborate with a group of developers on an enterprise application
  which
   has specific needs and requirements which aren't typically found in
  smaller
   application. Please send me an email. I'd very much like to hear what
  you're
   working on. I'm also interested in hearing about the apps you didn't
  build
   or couldn't convince your co-workers to build. Perhaps you're an avid
  GWT
   developer at nights and on the weekends, but you can't convince the rest
  of
   your team at work to take GWT for dry run.

   On to release notes:

   In each case, be sure to check the Compatibility Matrix (see links
  below) so
   that you're using the correct one wirth your version of GWT.

   *gwt-dnd-2.6.5.jar* - Drag-and-drop in the web browser

   A notable recent change is the now automatic scrolling into view during
   dragging. This should make dragging in the context of scrollbars a lot
   easier for your users. More exciting features can be found in trunk.

      - Demo site -

 http://allen-sauer.com/com.allen_sauer.gwt.dnd.demo.DragDropDemo/Drag...
      - Main project page -http://code.google.com/p/gwt-dnd/
      - Release notes -http://code.google.com/p/gwt-dnd/wiki/ReleaseNotes
      - Getting Started Guide -
      http://code.google.com/p/gwt-dnd/wiki/GettingStarted(includes
      compatibility matrix)
      - Downloads -http://code.google.com/p/gwt-dnd/downloads/list
      - Building from trunk -
      http://code.google.com/p/gwt-dnd/wiki/UsingSourceWithEclipse

   *gwt-log-2.6.2.jar* - Client side logging with a very large number of
   features

   Recent changes include a fix for those of you trying to use gwt-log
  inside
   of GWTTestCase. More exciting features can be found in trunk.

      - Demo site -

 http://allen-sauer.com/com.allen_sauer.gwt.log.demo.LogDemo/LogDemo.html
      - Main project page -http://code.google.com/p/gwt-log/
      - Release notes -http://code.google.com/p/gwt-log/wiki/ReleaseNotes
      - Getting Started Guide -
      

Re: Why ImageBundleGenerator does not optimize the generated icon set?

2009-07-21 Thread twdarkflame

That makes sense, but can this be changed for a future release?

I've been using a common icon-set for a few projects, and it would be
nice if it could be auto-optimized when compiling, rather then having
to manually make a different version for each project.


On Jul 20, 4:36 pm, Thomas Broyer t.bro...@gmail.com wrote:
 On 15 juil, 04:31, Kelvin kelvin...@gmail.com wrote:

  I create a SilkImageBundle and put all silk icons library to it. the
  silk icon library contains 1000 icons and just a few hundreds of them
  are being used by the application.
  And I supposed that GWT can optimize the icon set and contains only
  the icons that being used. However, the generated icon set is the full
  set of silk library.

 To answer your question (why is it behaving that way?): the generators
 run before any optimization of the code, so the ImageBundleGenerator
 cannot know which method (hence, image) is actually used and which
 isn't.
--~--~-~--~~~---~--~~
You received 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: Automatic Testing

2009-07-21 Thread Daniel Wellman

Joakim,

Either tool should work.  If you try out Selenium, you'll need to try
out the Selenium RC version, which lets you write your tests in Java,
Ruby, Python, etc.  WebDriver lets you write your tests in Java.

I'd probably use WebDriver if I had to start a new project today -
parts of it are getting merged into the next version of Selenium.
http://google-opensource.blogspot.com/2009/05/introducing-webdriver.html

Since you'll be writing your tests in a programming language like
Java, you can do whatever you want with input XML files, but it will
be up to you to parse the files just like you would in any other
program.

As for ensureDebugId, the JavaDoc for UIObject has some documentation
about how to use it.
http://google-web-toolkit.googlecode.com/svn/javadoc/1.6/com/google/gwt/user/client/ui/UIObject.html#ensureDebugId(java.lang.String)

Good luck!

On Jul 21, 4:22 am, Joakim Sjöberg joakim.sjob...@artificial-
solutions.com wrote:
 Hello Dan!

 Thanks for the answer! I think that right now what we need is a simple 
 end-to-end smoke test. Witch of WebDriver or
 Selenium would you think is the best way to go? Do you know if any of them 
 have the possibilities of getting
 an xml file with data to enter during the testing to run the test with?

 How does the ensureDebugId work? Is that something you add in your GWT 
 application?

 Many question :)

 Hope to get some answers :)

 // Joakim

 -Original Message-
 From: Google-Web-Toolkit@googlegroups.com 
 [mailto:google-web-tool...@googlegroups.com] On Behalf Of Daniel Wellman
 Sent: Monday, July 20, 2009 1:20 PM
 To: Google Web Toolkit
 Subject: Re: Automatic Testing

 If you're looking to write unit or integration tests for GWT client
 code, I've written an article about my experiences here:
 Google Web Toolkit: Writing Ajax Applications 
 Test-Firsthttp://blog.danielwellman.com/2008/11/test-first-gwt-article-in-novem...

 If you've finished your application and want to add simple end-to-end
 smoke tests, you might want to consider using WebDriver or Selenium.
 To add temporary DOM IDs which only appear for testing (which will
 make writing those WebDriver or Selenium tests easier), consider using
 the method on UIObject called ensureDebugId:

 http://tinyurl.com/mdwyky
 orhttp://google-web-toolkit.googlecode.com/svn/javadoc/1.6/com/google/g...

 Dan

 On Jul 20, 5:38 am, Joakim Sjöberg joakim.sjob...@artificial-
 solutions.com wrote:
  Hello!

  I have a question that you might be able to answer. We are developing a GWT 
  application and would like some form of Automatic testing of the

  GWT application. Is there any good way to do this? Could someone please 
  point me in the right direction?

  Regards

  Joakim Sjöberg
  Developer
  Artificial Solutions Scandinavia AB


--~--~-~--~~~---~--~~
You received 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 XMLParser converting element names to lowercase?

2009-07-21 Thread Stuart_L

Hi all,

I'm using the GWT XMLParser as described here:
http://code.google.com/p/bunsenandbeaker/wiki/DevGuideXML

I have to use it this way as I send a response string back from a form
submission.

However the parser seems to be converting all the element names to
lowercase? This is makes it un-usable as we hoped to be able to alter
the xml doc and then send it on again. But this means that is fails
the XSD validation on the server side as the elements names do not
match (case senstive). And all our server parsing methods retrieve the
elements using the sentence case names as well!

Has anyone else experienced this? Have any advice, thanks.

-Stu
--~--~-~--~~~---~--~~
You received 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 gwt:debug

2009-07-21 Thread Nathan Wells

I'm assuming you get to the point where your console states something
to the effect of Listening on port 8000 and stops...

At this point you need to go into eclipse and create a debug
configuration for a Remote Java Application The defaults should work
just fine...

Start the debug configuration and your hosted mode server and browser
should pop right up.

On Jul 20, 8:05 am, helmahjoub elmahjoubha...@gmail.com wrote:
 Hello,
 I have a small problem, I want to launch my application in debug mode
 with the mvn gwt:debug commande, but I have nothing. With the mvn
 gwt:run command, I get the window of the hosted mode.
 Is there a configuration to do?
 Thank you!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-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: So Many Forum Messages per day... Can things be split up at all?

2009-07-21 Thread El Mentecato Mayor

Just select to receive one daily digest message instead of each email
if you think this is too much.  Or you could even turn off receiving
messages at all and only use the web interface to see the messages and
read only those that are of interest to you.

I personally don't see a need to split up this group.  GWT is specific
enough to have this group as it is.  I think most of the bulk come
from questions that have been asked already (people not doing their
research before asking), questions that are too general or almost
impossible to understand to merit any kind of response.


On Jun 10, 5:36 pm, Dalla dalla_man...@hotmail.com wrote:
 I was actually thinking the same thing earlier today. There are
 propably a bunch of topics that never get answered simply because it
 there are so many new posts each day. Guess this is sort of a mailing
 discussion group rather than a forum though. But a forum would be
 great :-)

 On 10 Juni, 22:06, Paul Hargreaves cbassthef...@yahoo.co.uk wrote:

  There are so many messages appearing on this forum that my inbox is so full 
  that there are rivers of unseen questions floating down the road. I am not 
  sure whether this is run by google or publicly run. In any case it is hard 
  to keep track of messages. Is there any way you can create different forums 
  for different levels of experience/platforms/requirements? One is a start I 
  suppose :o)

  Paul
--~--~-~--~~~---~--~~
You received 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
-~--~~~~--~~--~--~---



cannot see the web application only in Internet explorer

2009-07-21 Thread aftershock

Hi,

I have a web application. I can see it only in Internet explorer.
I pressed Browse/Compile button.
I could see the application in Explorer.
But when I copied the web address, I could not see the application in
Opera 9.65 , in Firefox 3,5 or in Google Chrome.2.0.172
What can be the reason? Can you tell me how I can fix this?

I use Eclipse. The project compiles well...


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: which panel should i use

2009-07-21 Thread twdarkflame

A few ways to do it, depending on how flexible you want to be able to
put data in/change it/

You  could, for example, just use a simple grid widget (2 x However
many rows you need).
Then setting contents at particularly cells is easy.

Or, you could use a horizontal panel containing two vertical panels.
(Adding new entrys to specific sides is then as easy as just adding
new items to the left or right panel).

Or you could use a vertical panel filled with lots of horizontal
panels.each horizontal panel containing a label and tab index.
You could even make a new object for that horizontal sub-panel.

Lots of options.


On Jul 21, 2:41 am, Rahul coolrahul18...@gmail.com wrote:
 Hi,
 i want to create an horizontal split with an list of Labels on left
 side and an tab index on the right side.

 I would like to know which panel should be best for it , horizontal
 spilt panel or dock panel? or any other?

 how to add more widgets on one side of horizontal spilt panel. i was
 trying the setLeft option but it only allows the last one to display

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



Generators don't work good with refresh button

2009-07-21 Thread Alen Vrečko

Hi.

The generators are without a doubt a remarkable feature of gwt. But if
you use any reflection on the client classes in the generator you lose
refresh button support. Furthermore while not that major I do find it
annoying that refreshing doesn't recompile the generator code. You
have to stop the hosted mode and start again.

It all boils down to the fact that client code is loaded in
ComplingClassLoader and the Generator is loaded in a different
ClassLoader than that.

Reflection is not that nice. But sometimes one has perfectly
legitimate use cases to use reflection. A good example is Google-Gin.

It came up here 
http://groups.google.com/group/google-gin/browse_thread/thread/d383babb48a287bb
.

Basically gin is instantiating the gin modules which are client code.
If you change the module refresh doesn't work since gin generator is
still seeing the original module loaded and not the recompiled.

I've partially solved the issue (renaming modules doesn't work) by
hacking into the byte[] definitions for the newly created code. Like
this http://pastie.org/553279 .

I guess JavaRebel could be used or something like that. But I'd like
to see a pure gwt solution to this.

I've been thinking in the lines of compiling the generators and
putting the generators in a child of CompilingClassLoader. In that
case using reflection in the generators should get the latest class
definitions. Also changing generator code and pressing refresh would
work.

What do you guys think?

Cheers
Alen
--~--~-~--~~~---~--~~
You received 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: ListBox CSS

2009-07-21 Thread El Mentecato Mayor

Try adding a large z-index number to your CSS style like
z-index: 1000;
and report back.

On Jun 10, 10:03 am, stephen.sm...@paretopartners.com
stephen.sm...@paretopartners.com wrote:
 I have 2 seperate problems although im sure there related.

 Firstly i have a greyout panel (custom made), that is added to the
 RootPanel, the full height and width of the page and has the following
 css style:

 .panel-GlassPanel {
   background-color: black;
   filter:alpha(opacity=50);    /** 50% is hardcoded in fade */
   -moz-opacity:.50;
   opacity:.50;

 }

 This works perfectly for all elements apart from ListBox which stays
 the same colour as it was previously.

 Secondly i have a popup that im fading out by using a timer to slowly
 decrease the opacity. again, works great, apart from the list box
 which isnt faded at all! any ideas why?

 Im adding the ListBox to a grid on the PopupPanel like so:

  listBox = new ListBox(true);
  grid.setWidget(0, 0, new Label(Roles: ));
  grid.setWidget(0, 1, dropBox);

 Its like it has styles that are unnessacerily overriding its parent
 elements. (i say unnessacery but perhaps theres a good reason?)

 Thanks in advance,
 Steve
--~--~-~--~~~---~--~~
You received 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
-~--~~~~--~~--~--~---



Client source, what's included, what's not

2009-07-21 Thread Kwhit

How does the compiler/deployer know what source code is to be
xcompiled into JS for and shipped to the browser and what not in
Ecipse?

More specifically I would like

 src/com..myproj.clientto be included

but...

 srctest/com..myproj.client

not.

Is there a way of doing that?
Not a big problem if not but it keeps my project structure clean if
there is a way.

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



GWT. Images Loading And Composite

2009-07-21 Thread Дмитрий Николаев



Hi!

I'm in trouble - very often when I update url of the images, browser
not update them (in hosted mode, firefox)

img.setUrl(...); // sometimes won't work

Ok, I try to instantiate new Image every time I need update url. I Use
img = new Image(...); on my SimplePanel.

In hosted mode ot works, but in firefox - won't, when I press shift
+refresh when reloading page (with clearing the cache).

Hacks like DOM.setElementAttribute(Image.getElement(), src, path);
won't 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: GWT 1.7.0 - gwt-dnd 2.6.5 (Drag-and-drop) / gwt-log 2.6.2 (Logging) / gwt-voices 1.6.0 (Sound)

2009-07-21 Thread David

Fred,

Do you speak Dutch or is it Google translate doing its job ?

David

On Tue, Jul 21, 2009 at 1:14 AM, Fred Sauerfre...@google.com wrote:
 Thomas,
 That's pretty cool. Ook leuk om iets in 't Nederlands te zien.
 Have you listed your game in the App Gallery yet?
  http://gwtgallery.appspot.com/
 Thanks for the suggestion for a global function to stop playing sounds. That
 seems pretty useful. Would you mind proposing it here?
   http://code.google.com/p/gwt-voices/issues/list
 Thanks
 Fred

 On Sat, Jul 18, 2009 at 5:10 AM, twdarkflame darkfl...@gmail.com wrote:

 Id use these libuarys a lot in a online adventure game engine under
 development (beta version here;
 http://www.cuyperscode.nl/CuypersCode2_betatest/CCIIstart.html
 (an educational game being developed with it, but the engine will be
 used for a lot more).

 You can see DnD used for the inventory and sound used all over the
 place.
 These libs are fantastic and have been much help.
 I'll be updateing to 1.7 now :)

 As for specific features, theres nothing really else I need.
 I guess a global stop/disable for sounds might be usefull though.

 -Thomas Wrobel


 On Jul 16, 4:08 am, Fred Sauer fre...@google.com wrote:
  Hi
  With GWT 1.7.0 out the door I thought it would be a good time to provide
  an
  update for gwt-dnd, gwt-log and gwt-voices. GWT 1.7 adds a new user
  agent
  deferred binding property value 'ie8' which is a breaking change for any
  project using user agent based deferred binding. To accommodate the new
  value all three libraries have a new version available for download.
  Links
  and additional details for the three projects can be found below.
 
  Before I talk about what's new for each of these projects though I'd
  like to
  take a moment to reach out and thank everyone who reported a bug,
  submitted
  a feature request or contributed a patch. It's really amazing how the
  efforts of individuals can be compounded for the benefit of all the
  developers in the community using these libraries and ultimately all the
  users of their apps. Thank you!
 
  While I have your attention, I'd like to express my interest in hearing
  more
  about how you are using these libraries in your web applications, what
  features you appreciate the most and which ones you think could use some
  improvement. In particular, I'm interested in how you might be using
  these
  libraries in team settings or in more complex development scenarios. It
  could be that you or one of your colleagues has built a library or
  higher
  level API on top of one of gwt-dnd, gwt-log or gwt-voices. Or that you
  collaborate with a group of developers on an enterprise application
  which
  has specific needs and requirements which aren't typically found in
  smaller
  application. Please send me an email. I'd very much like to hear what
  you're
  working on. I'm also interested in hearing about the apps you didn't
  build
  or couldn't convince your co-workers to build. Perhaps you're an avid
  GWT
  developer at nights and on the weekends, but you can't convince the rest
  of
  your team at work to take GWT for dry run.
 
  On to release notes:
 
  In each case, be sure to check the Compatibility Matrix (see links
  below) so
  that you're using the correct one wirth your version of GWT.
 
  *gwt-dnd-2.6.5.jar* - Drag-and-drop in the web browser
 
  A notable recent change is the now automatic scrolling into view during
  dragging. This should make dragging in the context of scrollbars a lot
  easier for your users. More exciting features can be found in trunk.
 
     - Demo site -
 
   http://allen-sauer.com/com.allen_sauer.gwt.dnd.demo.DragDropDemo/Drag...
     - Main project page -http://code.google.com/p/gwt-dnd/
     - Release notes -http://code.google.com/p/gwt-dnd/wiki/ReleaseNotes
     - Getting Started Guide -
     http://code.google.com/p/gwt-dnd/wiki/GettingStarted(includes
     compatibility matrix)
     - Downloads -http://code.google.com/p/gwt-dnd/downloads/list
     - Building from trunk -
     http://code.google.com/p/gwt-dnd/wiki/UsingSourceWithEclipse
 
  *gwt-log-2.6.2.jar* - Client side logging with a very large number of
  features
 
  Recent changes include a fix for those of you trying to use gwt-log
  inside
  of GWTTestCase. More exciting features can be found in trunk.
 
     - Demo site -
 
   http://allen-sauer.com/com.allen_sauer.gwt.log.demo.LogDemo/LogDemo.html
     - Main project page -http://code.google.com/p/gwt-log/
     - Release notes -http://code.google.com/p/gwt-log/wiki/ReleaseNotes
     - Getting Started Guide -
     http://code.google.com/p/gwt-log/wiki/GettingStarted(includes
     compatibility matrix)
     - Downloads -http://code.google.com/p/gwt-log/downloads/list
     - Building from trunk -
     http://code.google.com/p/gwt-log/wiki/UsingSourceWithEclipse
 
  *gwt-voices-1.6.0.jar* - Cross platform browser sound support
 
  Recent change to allow streaming MP3 sounds to be replayed after
  sound.stop() 

Re: Google Wave UI GWT Sample

2009-07-21 Thread Duong BaTien

Hi:

On Tue, 2009-07-21 at 00:29 -0700, DuoCentillion wrote:
 Good luck trying to get Google to Open Source that Gem.  Why dont they
 Open Source all their search indexing algos while they are at it.
 
 On Jul 21, 7:04 am, Allahbaksh a.allahba...@gmail.com wrote:
  Hi,
  Google Wave UI which is designed using GWT look awesome. When will the
  client side code of Google Wave will be open sourced.
  I think it is nice Sample application of GWT and should be added to
  GWT samples.

Yes, i agree and waiting. But i think it is more than that since it uses
bare metal from GWT with best practices such as MVP, Command Pattern,
UiBinder template, Guice and Gin. So it is fast and fit for enterprise
application. I hope the Wave Client will use JSONP for Client-Server
communication to completely separate client and server services. It is a
first step toward Context Automation that bring relevant info from
different resources that the user owns depending on his/her profile and
current action. We are working toward this target.
 
  I think GWT-Mosiac has similar UI look and feel as Wave. But I would
  like to see how wave client is designed using GWT.
  Regards,
  Allahbaksh

GWT-Mosaic adds on GWT a layout manager which is best for a good looking
and fast start-up with maximum possible compatibility. For complex
application, one has to go to the bare metal. So adding another layer of
abstraction may not be an optional.

BaTien
DBGROUPS and BudhNet

  


--~--~-~--~~~---~--~~
You received 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 XMLParser converting element names to lowercase?

2009-07-21 Thread Manolo Carrasco Moñino
I've used it but I didn't mind this client conversion.

Think that gwt-xml parser delegates xml handling to the browser's native xml
processing, so the behavior can be different in different browsers, and
could be browsers converting to lowercase and not.

So I suggest you to filter the xml document sent by the client in the server
side before validating it.


Manolo


On Tue, Jul 21, 2009 at 2:06 PM, Stuart_L stuart.coo...@gmail.com wrote:


 Hi all,

 I'm using the GWT XMLParser as described here:
 http://code.google.com/p/bunsenandbeaker/wiki/DevGuideXML

 I have to use it this way as I send a response string back from a form
 submission.

 However the parser seems to be converting all the element names to
 lowercase? This is makes it un-usable as we hoped to be able to alter
 the xml doc and then send it on again. But this means that is fails
 the XSD validation on the server side as the elements names do not
 match (case senstive). And all our server parsing methods retrieve the
 elements using the sentence case names as well!

 Has anyone else experienced this? Have any advice, thanks.

 -Stu
 


--~--~-~--~~~---~--~~
You received 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: map, add marker and remove marker

2009-07-21 Thread Eric Ayers

Hi Again,

I looked around and couldn't find 'removeAllMarkers' in either
openlayers.Map or in Ext.ux.GMapPanel, so to figure out exactly how
they implemented those with the Google Maps API, you'll have to look
at the source where you got your distribution from.

One thing you can look at is to make sure you are using a recent
version of the maps API.  In the URL where you load the Maps API
script, check the version.  If you are currently using v=2  try
v=2.x. More info about the version number:

 http://code.google.com/apis/maps/documentation/index.html#API_Updates

If you want to avoid memory leaks, one thing you can do is to not
create and destroy markers, but instead re-use them.  You can just
hide them or move them off the map when you aren't using one.  An
example of re-using the markers in raw javascript is here under
comment #15:

http://code.google.com/p/gmaps-api-issues/issues/detail?id=945

-Eric.

On Tue, Jul 21, 2009 at 4:14 AM, Irwan Hendraoverta...@gmail.com wrote:

 I'm not sure if that answer my question
 because i'm using mapPanel from GWT-EXT not map from GWT and
 GMarkerManager



 On Jul 21, 3:42 am, Eric Ayers zun...@google.com wrote:
 That sounds like it could be attributable to this Maps API bug:

  http://code.google.com/p/gmaps-api-issues/issues/detail?id=295



 On Mon, Jul 20, 2009 at 3:11 AM, Irwan Hendraoverta...@gmail.com wrote:

  Hi

  I'm new with GWT so please bear with me
  I'm using GWT EXT and openlayer map, i'm using mapPanel to display map
  and markers on it

  following example from here:
 http://abhijeetmaharana.com/blog/2008/04/07/gwt-ext-and-google-maps/

  however, when i tried to remove the markers using
  mapPanel.removeAllMarkers() all markers got removed fine, except it
  doesn't purge the memory used, so in the end the browser (both ie and
  firefox) used up 1gb memory and then crashed

  I know this should be posted in GWT-EXT forum, but for some reason I
  never received activation email from them, so I have no choice

  please help thanks

 --
 Eric Z. Ayers - GWT Team - Atlanta, GA USAhttp://code.google.com/webtoolkit/
 




-- 
Eric Z. Ayers - GWT Team - Atlanta, GA USA
http://code.google.com/webtoolkit/

--~--~-~--~~~---~--~~
You received 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 XMLParser converting element names to lowercase?

2009-07-21 Thread Stuart_L

Hi Manolo,

Actually I think the problem may be due to the HTML form response
rather than the XML parser.

Our system works by using a FormPanel with a FileUpload object to
upload a zip file to a servlet. The servlet then processes this and
creates an XML file detailing the zip file contents. The FormHandler -
onSubmitComplete(FormSubmitCompleteEvent event) listener receives the
XML string response from the servlet.
However the problem is the FormSubmitCompleteEvent will only accept
content that is of MIME type text/html - it returns null if you try to
send back text/xml or application/xml.

So I think that as it is text/html being returned by the servlet it is
all being converted to lowercase as html is case-insensitive.

Does anyone have any other way to submit a zip file to a servlet and
return an XML string?

Thanks

-Stu

On Jul 21, 2:31 pm, Manolo Carrasco Moñino
manuel.carrasc...@gmail.com wrote:
 I've used it but I didn't mind this client conversion.

 Think that gwt-xml parser delegates xml handling to the browser's native xml
 processing, so the behavior can be different in different browsers, and
 could be browsers converting to lowercase and not.

 So I suggest you to filter the xml document sent by the client in the server
 side before validating it.

 Manolo

 On Tue, Jul 21, 2009 at 2:06 PM, Stuart_L stuart.coo...@gmail.com wrote:

  Hi all,

  I'm using the GWT XMLParser as described here:
 http://code.google.com/p/bunsenandbeaker/wiki/DevGuideXML

  I have to use it this way as I send a response string back from a form
  submission.

  However the parser seems to be converting all the element names to
  lowercase? This is makes it un-usable as we hoped to be able to alter
  the xml doc and then send it on again. But this means that is fails
  the XSD validation on the server side as the elements names do not
  match (case senstive). And all our server parsing methods retrieve the
  elements using the sentence case names as well!

  Has anyone else experienced this? Have any advice, thanks.

  -Stu
--~--~-~--~~~---~--~~
You received 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 1.7.0 - gwt-dnd 2.6.5 (Drag-and-drop) / gwt-log 2.6.2 (Logging) / gwt-voices 1.6.0 (Sound)

2009-07-21 Thread twdarkflame

No, I can read -a little- but I dont speak it at all. Not yet anyway,
I'll have to learn seeing as I'm living in the Netherlands, but I
havnt been able to make time yet.

Of course, that means I cant actually play test most of the game
myself very well, but then, Ive made the engine so there's a pretty
good separation between content and code.

btw, any chance you could help a little with some problems Ive been
having with the drag and drop system?
On the inventory Ive noticed sometimes some items go over other items
and Id like to avoid that. (I'm assuming DnD deals with this partly
itself, as most of the time the items do avoid eachother, just
occasionaly this fails).
I tried implementing my own check for item under on release but had
various problems.

If you want I can privately send over a different link to the game
engine so you can see the problem on more recent code. (the one on the
beta test has the icons popping up afteer dragging, which I've already
fixed).

If you got no time, dont worry about it :)

-Thomas

On Jul 21, 3:19 pm, David david.no...@gmail.com wrote:
 Fred,

 Do you speak Dutch or is it Google translate doing its job ?

 David



 On Tue, Jul 21, 2009 at 1:14 AM, Fred Sauerfre...@google.com wrote:
  Thomas,
  That's pretty cool. Ook leuk om iets in 't Nederlands te zien.
  Have you listed your game in the App Gallery yet?
   http://gwtgallery.appspot.com/
  Thanks for the suggestion for a global function to stop playing sounds. That
  seems pretty useful. Would you mind proposing it here?
    http://code.google.com/p/gwt-voices/issues/list
  Thanks
  Fred

  On Sat, Jul 18, 2009 at 5:10 AM, twdarkflame darkfl...@gmail.com wrote:

  Id use these libuarys a lot in a online adventure game engine under
  development (beta version here;
 http://www.cuyperscode.nl/CuypersCode2_betatest/CCIIstart.html
  (an educational game being developed with it, but the engine will be
  used for a lot more).

  You can see DnD used for the inventory and sound used all over the
  place.
  These libs are fantastic and have been much help.
  I'll be updateing to 1.7 now :)

  As for specific features, theres nothing really else I need.
  I guess a global stop/disable for sounds might be usefull though.

  -Thomas Wrobel

  On Jul 16, 4:08 am, Fred Sauer fre...@google.com wrote:
   Hi
   With GWT 1.7.0 out the door I thought it would be a good time to provide
   an
   update for gwt-dnd, gwt-log and gwt-voices. GWT 1.7 adds a new user
   agent
   deferred binding property value 'ie8' which is a breaking change for any
   project using user agent based deferred binding. To accommodate the new
   value all three libraries have a new version available for download.
   Links
   and additional details for the three projects can be found below.

   Before I talk about what's new for each of these projects though I'd
   like to
   take a moment to reach out and thank everyone who reported a bug,
   submitted
   a feature request or contributed a patch. It's really amazing how the
   efforts of individuals can be compounded for the benefit of all the
   developers in the community using these libraries and ultimately all the
   users of their apps. Thank you!

   While I have your attention, I'd like to express my interest in hearing
   more
   about how you are using these libraries in your web applications, what
   features you appreciate the most and which ones you think could use some
   improvement. In particular, I'm interested in how you might be using
   these
   libraries in team settings or in more complex development scenarios. It
   could be that you or one of your colleagues has built a library or
   higher
   level API on top of one of gwt-dnd, gwt-log or gwt-voices. Or that you
   collaborate with a group of developers on an enterprise application
   which
   has specific needs and requirements which aren't typically found in
   smaller
   application. Please send me an email. I'd very much like to hear what
   you're
   working on. I'm also interested in hearing about the apps you didn't
   build
   or couldn't convince your co-workers to build. Perhaps you're an avid
   GWT
   developer at nights and on the weekends, but you can't convince the rest
   of
   your team at work to take GWT for dry run.

   On to release notes:

   In each case, be sure to check the Compatibility Matrix (see links
   below) so
   that you're using the correct one wirth your version of GWT.

   *gwt-dnd-2.6.5.jar* - Drag-and-drop in the web browser

   A notable recent change is the now automatic scrolling into view during
   dragging. This should make dragging in the context of scrollbars a lot
   easier for your users. More exciting features can be found in trunk.

      - Demo site -

    http://allen-sauer.com/com.allen_sauer.gwt.dnd.demo.DragDropDemo/Drag...
      - Main project page -http://code.google.com/p/gwt-dnd/
      - Release notes -http://code.google.com/p/gwt-dnd/wiki/ReleaseNotes
      - Getting 

Re: GWT XMLParser converting element names to lowercase?

2009-07-21 Thread Thomas Broyer



On 21 juil, 15:47, Stuart_L stuart.coo...@gmail.com wrote:
 Hi Manolo,

 Actually I think the problem may be due to the HTML form response
 rather than the XML parser.

 Our system works by using a FormPanel with a FileUpload object to
 upload a zip file to a servlet. The servlet then processes this and
 creates an XML file detailing the zip file contents. The FormHandler -
 onSubmitComplete(FormSubmitCompleteEvent event) listener receives the
 XML string response from the servlet.
 However the problem is the FormSubmitCompleteEvent will only accept
 content that is of MIME type text/html - it returns null if you try to
 send back text/xml or application/xml.

 So I think that as it is text/html being returned by the servlet it is
 all being converted to lowercase as html is case-insensitive.

Right, if you just send XML labeled as being text/html, it'll be
parsed as HTML and then the FormPanel will re-serialize it with the
help of the innerHTML property.

 Does anyone have any other way to submit a zip file to a servlet and
 return an XML string?

You can try two things (amongst probably many others):
 - prefix your XML with plaintext or wrap it within xmp (they
are roughly equivalent to ![CDATA[]] in the text/html world) and of
course account for it when parsing with XMLParser
 - HTML-escape your XML (i.e. lt; instead of  and amp; instead of
) before sending it to the browser, that way it won't be parsed as
HTML markup, but you'll have to un-escape it on the client side; to
unescape, in your GWT code, you can create a dummy DIV element, set
the form's result with setInnerHTML and get it back with getInnerText
(or just do string replacements of amp; and lt;, but in my opinion
the setInnerHTML/getInnerText is more robust re. non-Windows-1252
characters, which the browser might convert into character references
when serializing using innerHTML)

...of course, it's far easier to just not use square brackets and
ampersands in your response... (e.g. JSON with \u-escaped  and
), and do not count too much on whitespace being preserved too.
--~--~-~--~~~---~--~~
You received 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: Generators don't work good with refresh button

2009-07-21 Thread Thomas Broyer



On 21 juil, 14:30, Alen Vrečko alen_vre...@yahoo.com wrote:
 Hi.

 The generators are without a doubt a remarkable feature of gwt. But if
 you use any reflection on the client classes in the generator you lose
 refresh button support. Furthermore while not that major I do find it
 annoying that refreshing doesn't recompile the generator code. You
 have to stop the hosted mode and start again.

 It all boils down to the fact that client code is loaded in
 ComplingClassLoader and the Generator is loaded in a different
 ClassLoader than that.

 Reflection is not that nice. But sometimes one has perfectly
 legitimate use cases to use reflection. A good example is Google-Gin.
[...]
 What do you guys think?

...that you should have used (or at least cc'd) the GWT-C group ;-)

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

--~--~-~--~~~---~--~~
You received 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: fileupload: ensuring the same file being uploaded

2009-07-21 Thread Vinz369

Hello twittwit and others,

I've been trying to implement file upload for days in my application.
It may looks stupid but I really don't understand how it works.
I have few questions:
- If I want to use the same code as twittwit where should I place it?
in my client folder or server folder? should I add something else in
my web.xml and project.gwt.xml files?

I'm completely lost, please help me!

On Jul 18, 10:15 am, twittwit ytbr...@gmail.com wrote:
 perfect! thanks Manuel!
 common-fileupload is great!
 On Jul 18, 8:51 am, Manuel Carrasco manuel.carrasc...@gmail.com
 wrote:



  filename = item.getName();

  On Sat, Jul 18, 2009 at 12:27 AM, twittwit ytbr...@gmail.com wrote:

   ok thank you. i found the answer:

   public class MyFormHandler extends HttpServlet{
      public void doPost(HttpServletRequest request, HttpServletResponse
   response)  throws ServletException, IOException {
          ServletFileUploadupload= new ServletFileUpload();

          try{
              FileItemIterator iter =upload.getItemIterator(request);

              while (iter.hasNext()) {
                  FileItemStream item = iter.next();

                  String name = item.getFieldName();
                  InputStream stream = item.openStream();

                  // Process the input stream
                  FileOutputStream out = new FileOutputStream
   (example.csv);
                  //ByteArrayOutputStream out = new ByteArrayOutputStream
   ();
                  int len;
                  byte[] buffer = new byte[8192];
                  while ((len = stream.read(buffer, 0, buffer.length)) !
   = -1) {
                      out.write(buffer, 0, len);
                  }
   //...

              }
          }
          catch(Exception e){
              e.printStackTrace();
          }

      }

   }

   however, how can i extract the name of the csv file(client side) so
   that the csv file in my server can have the same name?
   thanks!!

   On Jul 18, 12:19 am, Manuel Carrasco manuel.carrasc...@gmail.com
   wrote:
In the dialog between the browser and the server, the client sends a
multipart/form-data request and there is more information besides the
   file
content, like form elements values, boundary tags, etc.

I recommend you to use apache commons-fileupload library to handle
multipart/form-data request in your servlets.

On Fri, Jul 17, 2009 at 11:44 PM, imgnik ytbr...@gmail.com wrote:

 hi all,

 i posted a question about fileupload here

http://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa.
   ..
 but i think i didn't phrase my question correctly. so gonna do another
 attempt.

 I tried to use agwtfileupload widget to send a csv file to the
 server. and at the server i will write it as a file (for other usage)
 it by doing : (where request is the httpservletrequest and bw is the
 bufferedwriter)

  BufferedReader r = request.getReader();
          while((thisread= r.readLine())!=null){

                  bw.write(thisread);

          }
      bw.close();
          }
          catch(Exception e1){}

 however, i realised that the csv file send out contains :

 --WebKitFormBoundaryN8Z6DOy7DqEWTwtLContent-Disposition: form-
 data; name=uploadFormElement; filename=first.csvContent-Type:
 application/octet-streamBank

 which results in the file created not the same as the fileupload.
 I might be wrong in my analysis. can someone advice me?
--~--~-~--~~~---~--~~
You received 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: which panel should i use

2009-07-21 Thread Rahul

Hi thanks for the reply
i am still confused though

i want a split screen with on the left side a series of widgets with
labels, dropdown menus etc and on the right side i want a tab panel.
how is it possible to create different widgets on only one side of the
horizontalspilit panel. is there any way i can say that i want the
widget to be only at the right side


On Jul 21, 8:28 am, twdarkflame darkfl...@gmail.com wrote:
 A few ways to do it, depending on how flexible you want to be able to
 put data in/change it/

 You  could, for example, just use a simple grid widget (2 x However
 many rows you need).
 Then setting contents at particularly cells is easy.

 Or, you could use a horizontal panel containing two vertical panels.
 (Adding new entrys to specific sides is then as easy as just adding
 new items to the left or right panel).

 Or you could use a vertical panel filled with lots of horizontal
 panels.each horizontal panel containing a label and tab index.
 You could even make a new object for that horizontal sub-panel.

 Lots of options.

 On Jul 21, 2:41 am, Rahul coolrahul18...@gmail.com wrote:

  Hi,
  i want to create an horizontal split with an list of Labels on left
  side and an tab index on the right side.

  I would like to know which panel should be best for it , horizontal
  spilt panel or dock panel? or any other?

  how to add more widgets on one side of horizontal spilt panel. i was
  trying the setLeft option but it only allows the last one to display

  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: JSNI issues

2009-07-21 Thread wsaleem

I checked the link. Overlay types could surely make my life easier in
terms of wrapping Protovis but as long as I cannot access $wnd.pv
through JSNI, I cannot use them.

On Jul 20, 11:28 pm, wsaleem wsal...@gmail.com wrote:
 2) is the pure JS scenario, which I trying to port to GWT using JSNI.
 I fail, though, as the very first command
       vis = new $wnd.pv.Panel().canvas(PVis);
 fails with the following JavaScript exception
       $wnd.pv has no properties
 I will see if the overlay types help. Thanks for the pointer!

 On Jul 20, 7:48 pm, Adam T adam.t...@gmail.com wrote:

  It could still be a similar thing; I'm not 100% clear what you are
  trying to do above, but it looks like your steps are:

  1) Load an external JavaScript library, e.g. protovis.js
  2) Run some other JavaScript which creates something in the DOM, e.g.
  the vis = new pv.Panel().canvas(PVis); .vis.render(); part
  3) In GWT access the rendered PVis component.

  If that's correct, then by moving the protovis.js to the .gwt.xml
  part your ensuring that the library loads before your GWT, but it is
  still possible that part (2) is executing after your GWT code, and
  hence it is not available to your GWT code when it runs.  You could
  wrap that code in it's own file and load through the script tag
  (though I'm not sure about ordering in the gwt.xl file).

  I'd also suggest you use some debugging tools (Firebug for example in
  Firefox) to look at what your code is doing, that should show you the
  scoping of pv etc.

  (though you might be better off writing a wrapper using JavaScript
  Overlay types (http://googlewebtoolkit.blogspot.com/2008/08/getting-to-
  really-know-gwt-part-2.html) that would let you merge GWT and the
  protovis library in a more natural style, than the approach you're
  taking just now)

  Good luck,

  //Adam

  On 20 Juli, 17:41, wsaleem wsal...@gmail.com wrote:

   Adam, I added
       script src=protovis.js /
   to the .gwt.xml.

   No change!

   On Jul 20, 4:24 pm, Adam T adam.t...@gmail.com wrote:

Hi,

It might be the case that in both cases your GWT code is loaded and
executing before the browser has loaded your externally referenced
JavaScript file.  To remove that possiblity, you can place the
script tag you have in the HTML into your module's .gwt.xml
definition, i.e.

module
   inherits name='com.google.gwt.user.User' /
   script type=text/javascript src=protovis.js
/module

With this sett up, the GWT boostrap code should ensure the library
JavaScript is loaded before your GWT code executes.

//Adam

On 19 Juli, 18:19, wsaleem wsal...@gmail.com wrote:

 I am not a JS developer and use it pretty much by example, so it might
 be that I am missing something really basic below.

 I have come across problems using JSNI in the following 2 scenarios:

 1.
 I use Google Visualization API successfully in JS as follows:
 
 HTML file
     script type=text/javascript 
 src=http://www.google.com/jsapi;/
 script
 JS file
     google.load('visualization', '1', {'packages':['piechart']});  //
 == future JSNI problems occur here
     var chart = new google.visualization.LineChart
 (document.getElementById('GoogleVisChart'));
     // other JS commands to draw the chart
 **
 and then try to write a wrapper using GWT JSNI as follows:
 
 HTML file
     script type=text/javascript 
 src=http://www.google.com/jsapi;/
 script
 JAVA file
     class GChart {
       static { _init(); }
       private static native void _init() /*-{ // === ERROR at this
 function
         $wnd.google.load('visualization', '1', {'packages':
 ['piechart']});
       }-*/;

       JavaScriptObject gvis;
       public GChart( String id ) { gvis = _chart( id ); }
       private native JavaScriptObject _chart( String id ) /*-{
         return new $wnd.google.visualization.LineChart
 ($wnd.document.getElementById( id ) );
       }-*/;
       // methods to draw the chart through native functions
 **
 The GWT compiler gives the following error for the above code
 
 [ERROR] Unable to load module entry point class
 com.google.gwt.app.testGViz.client.TestGViz (see associated exception
 for details)
 java.lang.RuntimeException: Failed to invoke native method:
 @com.google.gwt.app.testGViz.client.GChart::_init() with 0 arguments.
         at 
 com.google.gwt.dev.shell.moz.LowLevelMoz.invoke(LowLevelMoz.java:
 132)
         at com.google.gwt.dev.shell.moz.ModuleSpaceMoz.doInvoke
 (ModuleSpaceMoz.java:98)
         at 
 com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
 447)
         at com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid
 (ModuleSpace.java:248)
         at 

Re: large GWT app fails to load in IE - anyone else seeing this?

2009-07-21 Thread Joe Cole

Hi Dave,

We have experienced some issues that may be explained by this.
Did you get any further with fixing the issue?

Joe

On Jun 5, 7:20 pm, DaveS dave.sell...@gmail.com wrote:
 [re-post with better title - sorry for the dup but this is killing
 me!]

 If anyone from theGWTdev team is reading, please get in touch, we
 are struggling badly with this issue and would *really* appreciate any
 help.

 We have a fairly bigGWTapp, and we are experiencing some issues when
 running it in IE.

 Sometimes (and there's no rhyme or reason to it) the app simply fails
 to start up. The HTML file is loaded by the browser, and the
 my.app.nocache.js file is loaded, but it then gets stuck. After a
 *lot* of debugging and cursing IE, we found out that it is stuck in
 the .nocache.js file waiting for the document readyState to become
 ready.

 There is a timer-function in this file, that goes off every 50ms, and
 checks to see if the $doc.readyState is loaded or complete and for
 some reason, when our app fails to load, the $doc.readyState never has
 either of those values (it seems to be stuck in interactive). When
 the app loads and runs correctly, this timer finds the readyState the
 first time it goes off, and it then triggers the app to be loaded. I
 see there is also an event-listener on the DOMContentLoaded event
 that effectively does the same thing, so it looks like the designers
 tried to work around this in more ways than one already. Obviously, in
 the cases where our app fails to start, this event is not firing
 either.

 Has anyone else ever seen this, or have any ideas about why IE is not
 setting the document readyState. I can see it might be because the
 document really isn't ready, but is there any way we can tell what
 it's waiting for?

 Any suggestions gratefully received

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



Re: which panel should i use

2009-07-21 Thread Rahul

i.e. can a splitter contains more than two widgets ? defining where to
place them

On Jul 21, 10:21 am, Rahul coolrahul18...@gmail.com wrote:
 Hi thanks for the reply
 i am still confused though

 i want a split screen with on the left side a series of widgets with
 labels, dropdown menus etc and on the right side i want a tab panel.
 how is it possible to create different widgets on only one side of the
 horizontalspilit panel. is there any way i can say that i want the
 widget to be only at the right side

 On Jul 21, 8:28 am, twdarkflame darkfl...@gmail.com wrote:

  A few ways to do it, depending on how flexible you want to be able to
  put data in/change it/

  You  could, for example, just use a simple grid widget (2 x However
  many rows you need).
  Then setting contents at particularly cells is easy.

  Or, you could use a horizontal panel containing two vertical panels.
  (Adding new entrys to specific sides is then as easy as just adding
  new items to the left or right panel).

  Or you could use a vertical panel filled with lots of horizontal
  panels.each horizontal panel containing a label and tab index.
  You could even make a new object for that horizontal sub-panel.

  Lots of options.

  On Jul 21, 2:41 am, Rahul coolrahul18...@gmail.com wrote:

   Hi,
   i want to create an horizontal split with an list of Labels on left
   side and an tab index on the right side.

   I would like to know which panel should be best for it , horizontal
   spilt panel or dock panel? or any other?

   how to add more widgets on one side of horizontal spilt panel. i was
   trying the setLeft option but it only allows the last one to display

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



Gmail this is taking longer than usual message

2009-07-21 Thread Joe Cole

We have noticed a few cases where we need to clear the browser cache
as the user cannot view the application. This is *very* rare, but we
would like to remove any confusion for the user and popup a message
saying the app hasn't loaded, and how to fix it.

Before we go and implement a javascript timer that checks whether our
application has loaded correctly, has anyone else done this for their
application and used it in production?

Joe

--~--~-~--~~~---~--~~
You received 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: Url rewrite, how?

2009-07-21 Thread twdarkflame

This should be done in the severs *.htaccess file, as far as I know.
In fact, I think its possible to do it so GWT dosnt know the
difference. (ie, thinks its the original url).

On Jul 19, 8:00 am, Paulo Coutinho pa...@prsolucoes.com wrote:
 Hi,

 how i can use url rewrite on GWT ?

 for example:

 www.prsolucoes.com/t...@gmail.com

 or

 www.prsolucoes.com/my/test

 --
 Atenciosamente,
 Paulo Coutinho.
 Blog:www.prsolucoes.com/blog
 Site:www.prsolucoes.com
 Msn:  pa...@prsolucoes.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: Handling Multiple Click Events

2009-07-21 Thread stymie
Anyone? Please help if you're able.
Thanks

On Jul 16, 7:44 pm, stymie jamesty...@gmail.com wrote:
 The following code does not work, what am I doing wrong?I have an
 array of buttons named myButtons.
 Thanks

 for(int i=0;i2;i++){
                         myButtons[i].addClickHandler(new ClickHandler(){
                                 @Override
                                 public void onClick(ClickEvent event) {

                                         
 if(event.getSource().equals(clickMeButton))
                                         {
                                                 Window.alert(works);
                                         }
                                         
 if(event.getSource().equals(clickMe2)){
                                                 Window.alert(works2);
                                         }
                                 }
                         });
                         }
--~--~-~--~~~---~--~~
You received 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: which panel should i use

2009-07-21 Thread Rahul

Hi
thanks a lot guys
i got it working


On Jul 21, 10:24 am, Rahul coolrahul18...@gmail.com wrote:
 i.e. can a splitter contains more than two widgets ? defining where to
 place them

 On Jul 21, 10:21 am, Rahul coolrahul18...@gmail.com wrote:

  Hi thanks for the reply
  i am still confused though

  i want a split screen with on the left side a series of widgets with
  labels, dropdown menus etc and on the right side i want a tab panel.
  how is it possible to create different widgets on only one side of the
  horizontalspilit panel. is there any way i can say that i want the
  widget to be only at the right side

  On Jul 21, 8:28 am, twdarkflame darkfl...@gmail.com wrote:

   A few ways to do it, depending on how flexible you want to be able to
   put data in/change it/

   You  could, for example, just use a simple grid widget (2 x However
   many rows you need).
   Then setting contents at particularly cells is easy.

   Or, you could use a horizontal panel containing two vertical panels.
   (Adding new entrys to specific sides is then as easy as just adding
   new items to the left or right panel).

   Or you could use a vertical panel filled with lots of horizontal
   panels.each horizontal panel containing a label and tab index.
   You could even make a new object for that horizontal sub-panel.

   Lots of options.

   On Jul 21, 2:41 am, Rahul coolrahul18...@gmail.com wrote:

Hi,
i want to create an horizontal split with an list of Labels on left
side and an tab index on the right side.

I would like to know which panel should be best for it , horizontal
spilt panel or dock panel? or any other?

how to add more widgets on one side of horizontal spilt panel. i was
trying the setLeft option but it only allows the last one to display

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



Running Hosted Mode for Front End and another J2EE container for Backend.

2009-07-21 Thread JonJ27

I am using Rational Application Developer 7, with GWT 1.7 plugin. I
have ran through the sample application with no probs.

I then created a Dynamic web project which organises things a little
different from the default GWT project creator and imported all the
StockWactcher code.. This all works fine.

I then wish to add JPA for my persistence layer to the WAR project. I
have added the necessary jar files to my lib directory and this works
great when i complile and run it on my built in WebSphere 7 test
environment.  Unforunately it fails when i'm running it in hosted
mode. I am guessing this is because my JPA configuration file
(persistence.xml) specifies  java:comp/env/jdbcName which is
configured neatly on Websphere but i dont know how to do this on the
tomcat version running in hosted mode.

At the moment this leaves me with the problem that i can run the front
end in hosted mode.. and debug it... but the backend integgration
fails.
or I can run it in my WAS test environment which allows me to debug
the backend but not the gui because this is running compiled GWT code.

Therefore i saw an old thread about runnign the front end in hosted
mode
and the backend using another J2EE container. Have you been able to do
this with WebSphere.

I suppose all i really want to do is change the url that the client is
calling to access my remote service. At the moment i use the
@RemoteServiceRelativePath(stockPrices) tag, which is relative.. but
i would like to be able to specify a different port.. maybe even a
different host.

for example hosted mode uses http://localhost:8080/StockWatcher.html
but i would like to tell it to point to 
http://localhost:9081/StockWatcher/stockwatcher/stockService
for the remote service.
This would allow me to debug both all neatly in my test enviromnet. I
could probably do this by installing Apache Http Server and create a
Proxy but would like to run it all from my test enviroment.

Any thoughts?

Thanks in advance

Jonathan
--~--~-~--~~~---~--~~
You received 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 XMLParser converting element names to lowercase?

2009-07-21 Thread Stuart_L

Hi Thomas,

Thanks for your suggestions, I've used the xmp tag and the DIV trick
and it now works a treat!

Thanks for your help

-Stu

On Jul 21, 3:07 pm, Thomas Broyer t.bro...@gmail.com wrote:
 On 21 juil, 15:47, Stuart_L stuart.coo...@gmail.com wrote:



  Hi Manolo,

  Actually I think the problem may be due to the HTML form response
  rather than the XML parser.

  Our system works by using a FormPanel with a FileUpload object to
  upload a zip file to a servlet. The servlet then processes this and
  creates an XML file detailing the zip file contents. The FormHandler -
  onSubmitComplete(FormSubmitCompleteEvent event) listener receives the
  XML string response from the servlet.
  However the problem is the FormSubmitCompleteEvent will only accept
  content that is of MIME type text/html - it returns null if you try to
  send back text/xml or application/xml.

  So I think that as it is text/html being returned by the servlet it is
  all being converted to lowercase as html is case-insensitive.

 Right, if you just send XML labeled as being text/html, it'll be
 parsed as HTML and then the FormPanel will re-serialize it with the
 help of the innerHTML property.

  Does anyone have any other way to submit a zip file to a servlet and
  return an XML string?

 You can try two things (amongst probably many others):
  - prefix your XML with plaintext or wrap it within xmp (they
 are roughly equivalent to ![CDATA[]] in the text/html world) and of
 course account for it when parsing with XMLParser
  - HTML-escape your XML (i.e. lt; instead of  and amp; instead of
 ) before sending it to the browser, that way it won't be parsed as
 HTML markup, but you'll have to un-escape it on the client side; to
 unescape, in your GWT code, you can create a dummy DIV element, set
 the form's result with setInnerHTML and get it back with getInnerText
 (or just do string replacements of amp; and lt;, but in my opinion
 the setInnerHTML/getInnerText is more robust re. non-Windows-1252
 characters, which the browser might convert into character references
 when serializing using innerHTML)

 ...of course, it's far easier to just not use square brackets and
 ampersands in your response... (e.g. JSON with \u-escaped  and
 ), and do not count too much on whitespace being preserved too.
--~--~-~--~~~---~--~~
You received 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: JSNI issues

2009-07-21 Thread Adam T

.perhaps you have the Javascript library in the wrong place and it
is not being loaded.  I'd still suggest you get hold of a debug tool
in your browser to see what's loaded etc as you're going to need it
when you get into trying to access the library and going further, but,
the following works for me to access the library.

1.  In my applications .gwt.xml file I have put: script src=protovis-
r2.6.js/
2.  I also have defined my module in the .gwt.xml file as follows:
module rename-to='testAA'
3.  I'm using GWT1.6, so the protovis-r2.6.js file needs to go in
within the war file, i.e. it goes in the folder /war/testAA/
4.  In my application I just create a simple JSNI method

public native JavaScriptObject getVis()/*-{
var vis = new $wnd.pv.Panel().canvas(test);
return vis;
}-*/;

5.  In my onModuleLoad I simply call the method and alert the fact
that I have an object

public void onModuleLoad() {
JavaScriptObject v =  getVis();
Window.alert(v.toString());
}

that tells me I have got a valid JavaScript object and I see no
exceptions or errors.

Hope that helps, or at least gives you some hints.

//Adam

On 21 Juli, 16:23, wsaleem wsal...@gmail.com wrote:
 I checked the link. Overlay types could surely make my life easier in
 terms of wrapping Protovis but as long as I cannot access $wnd.pv
 through JSNI, I cannot use them.

 On Jul 20, 11:28 pm, wsaleem wsal...@gmail.com wrote:

  2) is the pure JS scenario, which I trying to port to GWT using JSNI.
  I fail, though, as the very first command
        vis = new $wnd.pv.Panel().canvas(PVis);
  fails with the following JavaScript exception
        $wnd.pv has no properties
  I will see if the overlay types help. Thanks for the pointer!

  On Jul 20, 7:48 pm, Adam T adam.t...@gmail.com wrote:

   It could still be a similar thing; I'm not 100% clear what you are
   trying to do above, but it looks like your steps are:

   1) Load an external JavaScript library, e.g. protovis.js
   2) Run some other JavaScript which creates something in the DOM, e.g.
   the vis = new pv.Panel().canvas(PVis); .vis.render(); part
   3) In GWT access the rendered PVis component.

   If that's correct, then by moving the protovis.js to the .gwt.xml
   part your ensuring that the library loads before your GWT, but it is
   still possible that part (2) is executing after your GWT code, and
   hence it is not available to your GWT code when it runs.  You could
   wrap that code in it's own file and load through the script tag
   (though I'm not sure about ordering in the gwt.xl file).

   I'd also suggest you use some debugging tools (Firebug for example in
   Firefox) to look at what your code is doing, that should show you the
   scoping of pv etc.

   (though you might be better off writing a wrapper using JavaScript
   Overlay types (http://googlewebtoolkit.blogspot.com/2008/08/getting-to-
   really-know-gwt-part-2.html) that would let you merge GWT and the
   protovis library in a more natural style, than the approach you're
   taking just now)

   Good luck,

   //Adam

   On 20 Juli, 17:41, wsaleem wsal...@gmail.com wrote:

Adam, I added
    script src=protovis.js /
to the .gwt.xml.

No change!

On Jul 20, 4:24 pm, Adam T adam.t...@gmail.com wrote:

 Hi,

 It might be the case that in both cases your GWT code is loaded and
 executing before the browser has loaded your externally referenced
 JavaScript file.  To remove that possiblity, you can place the
 script tag you have in the HTML into your module's .gwt.xml
 definition, i.e.

 module
    inherits name='com.google.gwt.user.User' /
    script type=text/javascript src=protovis.js
 /module

 With this sett up, the GWT boostrap code should ensure the library
 JavaScript is loaded before your GWT code executes.

 //Adam

 On 19 Juli, 18:19, wsaleem wsal...@gmail.com wrote:

  I am not a JS developer and use it pretty much by example, so it 
  might
  be that I am missing something really basic below.

  I have come across problems using JSNI in the following 2 scenarios:

  1.
  I use Google Visualization API successfully in JS as follows:
  
  HTML file
      script type=text/javascript 
  src=http://www.google.com/jsapi;/
  script
  JS file
      google.load('visualization', '1', {'packages':['piechart']});  
  //
  == future JSNI problems occur here
      var chart = new google.visualization.LineChart
  (document.getElementById('GoogleVisChart'));
      // other JS commands to draw the chart
  **
  and then try to write a wrapper using GWT JSNI as follows:
  
  HTML file
      script type=text/javascript 
  src=http://www.google.com/jsapi;/
  script
  JAVA file
      class GChart {
        

Serializable objects

2009-07-21 Thread Kinjal Khandhar
 Hello All,

I am building an application that has an interface which implements
java.io.serializable.I want to transfer the data back and forth between
client and server.

The problem is that interface is not in my current GWT package(client and
server).Its in diff package.Hence it gives me compiler error saying check
the inheritance chain.

Is it that I need to have that interface in my gwt package or may be there
is a need to define the path of that package somewhere.

Please help me if anyone is aware of the problem.

-Kinjal.

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



Designing Website Using GWT

2009-07-21 Thread prateep

Hi,
I am prateep using GWT since two months.I know how to develop simple
widgets.I saw one website that was developed completely using GWT.I
want to develop a website like that.I am also providing the URL:
http://examples.roughian.com

Please can anybody help me to develop a website like this.


Thanking you,

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



not able to deploy to tomcat server

2009-07-21 Thread sathya

I have developed my whole application in GWT in eclipse. I have tested
in hosted mode.Evertthing works fine. Now I need to deploy into tomcat
server on my machine. So using eclipse, I have compiled the whole
project successfully. WAR directory got generated. I have zipped this
war file and renamed with extension .war and placed this in webapps
directory of tomcat server.

When I use localhost:8080 URL,firstpage opens successfully.(tomcat is
able to unzip this).However none of RPC calls work. I am stuck with
this problem from past 1 week. I tried all possible ways posted on web
but nothing seems to work.

I tried to compile the starter application shipped with GWT and placed
on tomcat. Even this is not working with RPC calls.

I am not sure what settings I need to do on my tomcat. 

Can you please suggest me detailed steps to deploy starter application
shipped with GWT on tomcat using eclipse?

later I can map the same to my application.

Can anyone help 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
-~--~~~~--~~--~--~---



GWT Showcase Examples - Blank page

2009-07-21 Thread iFireBelly.com

The link to the GWT Showcase currently produces a blank page in IE6
(see http://gwt.google.com/samples/Showcase/Showcase.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
-~--~~~~--~~--~--~---



Onload module problem

2009-07-21 Thread Bhayat

In my application i can reach server side code in Onload module that
is in MyApplication class(this class implements EntryPoints) but i
need to reach server side code not only in this class.For example on
diffent class i create an button and also onclick event but i cant
make this click listener work.

How can i do this ? Do you have any suggetion ?

--~--~-~--~~~---~--~~
You received 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: Determining a specific cell in a FlexTable

2009-07-21 Thread Lucasi


Yes Jeff...
You can do it adding a clickHandler on the table and map the click
event

 table.addClickHandler(new ClickHandler() {

public void onClick(ClickEvent event) {
final HTMLTable table = (HTMLTable) event.getSource();
final HTMLTable.Cell cell = table.getCellForEvent
(event);
//cell.getCellIndex()   COL
//cell.getRowIndex()   ROW


Regards

Luiz Lucasi

--~--~-~--~~~---~--~~
You received 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: New site created with GWT

2009-07-21 Thread bogdan_niculescu

Can you tell us how you made a Customized SEO ? I want to optimise my
site and make it Google searchable and I don't know how to make
this..

 Thanks,
   Bogdan


On Jun 30, 11:34 pm, Michael W mwang_2...@yahoo.com wrote:
 I am happy to announce that we launched beta version of holidayinn
 website written withGWTthis past weekend.
 Thenewsitehttp://www.holidayinn.com/hotels/us/en/reservationwill
 replace existingsitehttp://www.ichotelsgroup.com/h/d/hi/1/en/homein
 the future.

 The existingsitehas over 2 million hit a day.

 GWTis used in client side and Spring MVC is applied in server side

 Following lists some of the features including the package we used:

 --Multi-language (currently only support US English and Queen English)
 --Spring SL
 --JSON.
 --RPC.encodeResponseForSuccess
 --Suggest Box
 --Client side logging
 --Customized SEO
 --RPC timed out
 --Session backup, once refresh page, client side data is retrieved
 from server again by using RPC
 --Visual effect to display hotel images
 --Integrated dynamic content management

--~--~-~--~~~---~--~~
You received 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 Showcase Examples - Blank page

2009-07-21 Thread Neha Chachra
Maybe it's just Google phasing out IE6. Youtube and
Gmailhttp://tinyurl.com/m8ldg9have already done that, apparently.
Hope it's all true :)

-neha
nay-ha


On Tue, Jul 21, 2009 at 4:14 PM, iFireBelly.com rob.r...@googlemail.comwrote:


 The link to the GWT Showcase currently produces a blank page in IE6
 (see http://gwt.google.com/samples/Showcase/Showcase.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: Accessing ActiveX from GWT code

2009-07-21 Thread Sumit Chandel
Hi Gugi,
You can interact with your ActiveX object in GWT code the same way you would
access it through regular JavaScript. This can be accomplished by using the
JavaScript Native Interface feature available in GWT. Using JSNI, you can
write native methods implemented in regular handwritten JavaScript. There
are a few catches to be wary about, such as the fact that the 'window'
variable must actually be referenced through the '$wnd' variable in JSNI
code, but other than that, JSNI is straightforward to use.

Check out the documentation linked below for more details.

JavaScript Native Interface:
http://code.google.com/webtoolkit/doc/1.6/DevGuideCodingBasics.html#DevGuideJavaScriptNativeInterface

Hope that helps,
-Sumit Chandel


On Thu, Jul 16, 2009 at 10:46 PM, Gugi vsbgu...@gmail.com wrote:


 Is it possible to access the ActiveX object( using JavaScript) inside
 a GWT client code. I need this functionality because I want to
 encapsulate my visual basic logic for printing to continuous dot
 matrix printers inside the activex and call from GWT code.

 


--~--~-~--~~~---~--~~
You received 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: Annotations in GWT

2009-07-21 Thread Sumit Chandel
Hi Gian,
The reason why your code snippet fails at Line 37 is because GWT doesn't
support / emulate the Class.getAnnotation() or isAnnotationPresent()
methods. Although GWT does support the use of annotations, which is useful
for cases where you would like to reuse a POJO on both the client and the
server-side. However, supporting something like getAnnotation() in GWT code
wouldn't be as useful since there wouldn't be a lean equivalent of that in
the target JavaScript world.

You can check out more details about the GWT Emulated JRE to see the types
and methods that are supported at the link below.

GWT Emulated JRE:
http://code.google.com/webtoolkit/doc/1.6/RefJreEmulation.html

Hope that helps,
-Sumit Chandel

On Fri, Jul 17, 2009 at 8:02 AM, Gianluigi dava...@yahoo.it wrote:




 Hi to all, it's first time that i try to use annotation in client side gwt
 application, i tried to compile that code:

 @Target( { ElementType.TYPE })
 @Retention(RetentionPolicy.RUNTIME)
 @interface MyAnn {
String value() default ;
 }

 @MyAnn(value=foo1)
 class B {}

 public class MyAnnotation {

public MyAnnotation() {}

public static final void foo() {

B b = new B();

MyAnn ann = b.getClass().getAnnotation(MyAnn.class);
GWT.log( + b.getClass().isAnnotationPresent(MyAnn.class), null);

}
 }

 but when the compiler reach getAnnotation OR isAnnotationPresent say to me
 an error like this:

 [ERROR] Line 31: The method isAnnotationPresent(ClassMyAnn) is undefined
 for the type Classcapture#1-of ? extends B

 What's wrong with my code? thanks for any hint
 Gian





 


--~--~-~--~~~---~--~~
You received 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: Running Hosted Mode for Front End and another J2EE container for Backend.

2009-07-21 Thread JonJ27

Hi All.

sorry.. i guess i was looking at a very old thread.

I have just discovered the -noserver option which i think does exactly
what i want.



On Jul 21, 4:25 pm, JonJ27 jon...@gmail.com wrote:
 I am using Rational Application Developer 7, with GWT 1.7 plugin. I
 have ran through the sample application with no probs.

 I then created a Dynamic web project which organises things a little
 different from the default GWT project creator and imported all the
 StockWactcher code.. This all works fine.

 I then wish to add JPA for my persistence layer to the WAR project. I
 have added the necessary jar files to my lib directory and this works
 great when i complile and run it on my built in WebSphere 7 test
 environment.  Unforunately it fails when i'm running it in hosted
 mode. I am guessing this is because my JPA configuration file
 (persistence.xml) specifies  java:comp/env/jdbcName which is
 configured neatly on Websphere but i dont know how to do this on the
 tomcat version running in hosted mode.

 At the moment this leaves me with the problem that i can run the front
 end in hosted mode.. and debug it... but the backend integgration
 fails.
 or I can run it in my WAS test environment which allows me to debug
 the backend but not the gui because this is running compiled GWT code.

 Therefore i saw an old thread about runnign the front end in hosted
 mode
 and the backend using another J2EE container. Have you been able to do
 this with WebSphere.

 I suppose all i really want to do is change the url that the client is
 calling to access my remote service. At the moment i use the
 @RemoteServiceRelativePath(stockPrices) tag, which is relative.. but
 i would like to be able to specify a different port.. maybe even a
 different host.

 for example hosted mode useshttp://localhost:8080/StockWatcher.html
 but i would like to tell it to point 
 tohttp://localhost:9081/StockWatcher/stockwatcher/stockService
 for the remote service.
 This would allow me to debug both all neatly in my test enviromnet. I
 could probably do this by installing Apache Http Server and create a
 Proxy but would like to run it all from my test enviroment.

 Any thoughts?

 Thanks in advance

 Jonathan
--~--~-~--~~~---~--~~
You received 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
-~--~~~~--~~--~--~---



ClassCastException only in Chrome and OBF mode

2009-07-21 Thread Martin Trummer

I get a ClassCastException on some of my RPC only, when the
application runs in Chrome and only when it's compiled in (OBF)
obfuscated mode.

When I compile it in DETAILED mode, everything works fine.
The same RPCs in other browsers also work fine (even in OBF mode).

Now I'm quite stuck, because I have no idea where to start searching:
 * the log files of the backend and the webserver-logs do not show any
exceptions/errors when this happens: this is what I excepted, because
the exception only occurs in chrome - so it's a client side issue
 * the only information I have is, what I can see on the Java-Script
Console of Chrome - thowable.toString() prints:
   java.lang.ClassCastException: null

so, unfortunaltely the class-cast-exception has no message telling me
which class it tries to cast or which one is expected

any ideas where to look / what to do?

--~--~-~--~~~---~--~~
You received 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: which panel should i use

2009-07-21 Thread Kango_V

How did you lay it out in the end?  I'm on the learning curve as well.

On Jul 21, 3:22 pm, Rahul coolrahul18...@gmail.com wrote:
 Hi
 thanks a lot guys
 i got it working

 On Jul 21, 10:24 am, Rahul coolrahul18...@gmail.com wrote:



  i.e. can a splitter contains more than two widgets ? defining where to
  place them

  On Jul 21, 10:21 am, Rahul coolrahul18...@gmail.com wrote:

   Hi thanks for the reply
   i am still confused though

   i want a split screen with on the left side a series of widgets with
   labels, dropdown menus etc and on the right side i want a tab panel.
   how is it possible to create different widgets on only one side of the
   horizontalspilit panel. is there any way i can say that i want the
   widget to be only at the right side

   On Jul 21, 8:28 am, twdarkflame darkfl...@gmail.com wrote:

A few ways to do it, depending on how flexible you want to be able to
put data in/change it/

You  could, for example, just use a simple grid widget (2 x However
many rows you need).
Then setting contents at particularly cells is easy.

Or, you could use a horizontal panel containing two vertical panels.
(Adding new entrys to specific sides is then as easy as just adding
new items to the left or right panel).

Or you could use a vertical panel filled with lots of horizontal
panels.each horizontal panel containing a label and tab index.
You could even make a new object for that horizontal sub-panel.

Lots of options.

On Jul 21, 2:41 am, Rahul coolrahul18...@gmail.com wrote:

 Hi,
 i want to create an horizontal split with an list of Labels on left
 side and an tab index on the right side.

 I would like to know which panel should be best for it , horizontal
 spilt panel or dock panel? or any other?

 how to add more widgets on one side of horizontal spilt panel. i was
 trying the setLeft option but it only allows the last one to display

 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: Handling Multiple Click Events

2009-07-21 Thread Neha Chachra
It works actually. I just tried it :) What's the error you're getting?
Hm, while I haven't played much with the event handlers in GWT yet, I think
a better approach might be to implement the ClickHandler interface and
attach the same object to all the buttons rather than creating new objects
for an array of buttons.

-neha
nay-ha


On Tue, Jul 21, 2009 at 10:46 PM, stymie jamesty...@gmail.com wrote:

 Anyone? Please help if you're able.
 Thanks

 On Jul 16, 7:44 pm, stymie jamesty...@gmail.com wrote:
  The following code does not work, what am I doing wrong?I have an
  array of buttons named myButtons.
  Thanks
 
  for(int i=0;i2;i++){
  myButtons[i].addClickHandler(new ClickHandler(){
  @Override
  public void onClick(ClickEvent event) {
 
 
 if(event.getSource().equals(clickMeButton))
  {
  Window.alert(works);
  }
 
 if(event.getSource().equals(clickMe2)){
  Window.alert(works2);
  }
  }
  });
  }
 


--~--~-~--~~~---~--~~
You received 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: ClassCastException only in Chrome and OBF mode

2009-07-21 Thread Paul Robinson

This may be a dumb question, but since you didn't mention hosted
modehave you tried it under hosted mode as well?

Martin Trummer wrote:
 I get a ClassCastException on some of my RPC only, when the
 application runs in Chrome and only when it's compiled in (OBF)
 obfuscated mode.

 When I compile it in DETAILED mode, everything works fine.
 The same RPCs in other browsers also work fine (even in OBF mode).

 Now I'm quite stuck, because I have no idea where to start searching:
  * the log files of the backend and the webserver-logs do not show any
 exceptions/errors when this happens: this is what I excepted, because
 the exception only occurs in chrome - so it's a client side issue
  * the only information I have is, what I can see on the Java-Script
 Console of Chrome - thowable.toString() prints:
java.lang.ClassCastException: null

 so, unfortunaltely the class-cast-exception has no message telling me
 which class it tries to cast or which one is expected

 any ideas where to look / what to do?

   

--~--~-~--~~~---~--~~
You received 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: ClassCastException only in Chrome and OBF mode

2009-07-21 Thread Jason Essington

Uhm hosted mode is IE, FF, or Safari depending upon the platform ...

That said, do you also get the error on Safari?

-jason

On Jul 21, 2009, at 10:34 AM, Paul Robinson wrote:


 This may be a dumb question, but since you didn't mention hosted
 modehave you tried it under hosted mode as well?

 Martin Trummer wrote:
 I get a ClassCastException on some of my RPC only, when the
 application runs in Chrome and only when it's compiled in (OBF)
 obfuscated mode.

 When I compile it in DETAILED mode, everything works fine.
 The same RPCs in other browsers also work fine (even in OBF mode).

 Now I'm quite stuck, because I have no idea where to start searching:
 * the log files of the backend and the webserver-logs do not show any
 exceptions/errors when this happens: this is what I excepted, because
 the exception only occurs in chrome - so it's a client side issue
 * the only information I have is, what I can see on the Java-Script
 Console of Chrome - thowable.toString() prints:
   java.lang.ClassCastException: null

 so, unfortunaltely the class-cast-exception has no message telling me
 which class it tries to cast or which one is expected

 any ideas where to look / what to do?



 


--~--~-~--~~~---~--~~
You received 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 1.7.0 - gwt-dnd 2.6.5 (Drag-and-drop) / gwt-log 2.6.2 (Logging) / gwt-voices 1.6.0 (Sound)

2009-07-21 Thread Fred Sauer
I'm fluent in Dutch actually. I have family in the Netherlands and spent
about 13 years there.
Kun jij ook Nederlands spreken?

Groeten
Fred

On Tue, Jul 21, 2009 at 6:19 AM, David david.no...@gmail.com wrote:


 Fred,

 Do you speak Dutch or is it Google translate doing its job ?

 David

 On Tue, Jul 21, 2009 at 1:14 AM, Fred Sauerfre...@google.com wrote:
  Thomas,
  That's pretty cool. Ook leuk om iets in 't Nederlands te zien.
  Have you listed your game in the App Gallery yet?
   http://gwtgallery.appspot.com/
  Thanks for the suggestion for a global function to stop playing sounds.
 That
  seems pretty useful. Would you mind proposing it here?
http://code.google.com/p/gwt-voices/issues/list
  Thanks
  Fred
 
  On Sat, Jul 18, 2009 at 5:10 AM, twdarkflame darkfl...@gmail.com
 wrote:
 
  Id use these libuarys a lot in a online adventure game engine under
  development (beta version here;
  http://www.cuyperscode.nl/CuypersCode2_betatest/CCIIstart.html
  (an educational game being developed with it, but the engine will be
  used for a lot more).
 
  You can see DnD used for the inventory and sound used all over the
  place.
  These libs are fantastic and have been much help.
  I'll be updateing to 1.7 now :)
 
  As for specific features, theres nothing really else I need.
  I guess a global stop/disable for sounds might be usefull though.
 
  -Thomas Wrobel
 
 
  On Jul 16, 4:08 am, Fred Sauer fre...@google.com wrote:
   Hi
   With GWT 1.7.0 out the door I thought it would be a good time to
 provide
   an
   update for gwt-dnd, gwt-log and gwt-voices. GWT 1.7 adds a new user
   agent
   deferred binding property value 'ie8' which is a breaking change for
 any
   project using user agent based deferred binding. To accommodate the
 new
   value all three libraries have a new version available for download.
   Links
   and additional details for the three projects can be found below.
  
   Before I talk about what's new for each of these projects though I'd
   like to
   take a moment to reach out and thank everyone who reported a bug,
   submitted
   a feature request or contributed a patch. It's really amazing how the
   efforts of individuals can be compounded for the benefit of all the
   developers in the community using these libraries and ultimately all
 the
   users of their apps. Thank you!
  
   While I have your attention, I'd like to express my interest in
 hearing
   more
   about how you are using these libraries in your web applications, what
   features you appreciate the most and which ones you think could use
 some
   improvement. In particular, I'm interested in how you might be using
   these
   libraries in team settings or in more complex development scenarios.
 It
   could be that you or one of your colleagues has built a library or
   higher
   level API on top of one of gwt-dnd, gwt-log or gwt-voices. Or that you
   collaborate with a group of developers on an enterprise application
   which
   has specific needs and requirements which aren't typically found in
   smaller
   application. Please send me an email. I'd very much like to hear what
   you're
   working on. I'm also interested in hearing about the apps you didn't
   build
   or couldn't convince your co-workers to build. Perhaps you're an avid
   GWT
   developer at nights and on the weekends, but you can't convince the
 rest
   of
   your team at work to take GWT for dry run.
  
   On to release notes:
  
   In each case, be sure to check the Compatibility Matrix (see links
   below) so
   that you're using the correct one wirth your version of GWT.
  
   *gwt-dnd-2.6.5.jar* - Drag-and-drop in the web browser
  
   A notable recent change is the now automatic scrolling into view
 during
   dragging. This should make dragging in the context of scrollbars a lot
   easier for your users. More exciting features can be found in trunk.
  
  - Demo site -
  
  
 http://allen-sauer.com/com.allen_sauer.gwt.dnd.demo.DragDropDemo/Drag...
  - Main project page -http://code.google.com/p/gwt-dnd/
  - Release notes -
 http://code.google.com/p/gwt-dnd/wiki/ReleaseNotes
  - Getting Started Guide -
  http://code.google.com/p/gwt-dnd/wiki/GettingStarted(includes
  compatibility matrix)
  - Downloads -http://code.google.com/p/gwt-dnd/downloads/list
  - Building from trunk -
  http://code.google.com/p/gwt-dnd/wiki/UsingSourceWithEclipse
  
   *gwt-log-2.6.2.jar* - Client side logging with a very large number of
   features
  
   Recent changes include a fix for those of you trying to use gwt-log
   inside
   of GWTTestCase. More exciting features can be found in trunk.
  
  - Demo site -
  
  
 http://allen-sauer.com/com.allen_sauer.gwt.log.demo.LogDemo/LogDemo.html
  - Main project page -http://code.google.com/p/gwt-log/
  - Release notes -
 http://code.google.com/p/gwt-log/wiki/ReleaseNotes
  - Getting Started Guide -
  

Re: GWT 1.7.0 - gwt-dnd 2.6.5 (Drag-and-drop) / gwt-log 2.6.2 (Logging) / gwt-voices 1.6.0 (Sound)

2009-07-21 Thread Fred Sauer
I could take a peek if you send me the link. A screenshot might work as
well.
Fred

On Tue, Jul 21, 2009 at 6:51 AM, twdarkflame darkfl...@gmail.com wrote:


 No, I can read -a little- but I dont speak it at all. Not yet anyway,
 I'll have to learn seeing as I'm living in the Netherlands, but I
 havnt been able to make time yet.

 Of course, that means I cant actually play test most of the game
 myself very well, but then, Ive made the engine so there's a pretty
 good separation between content and code.

 btw, any chance you could help a little with some problems Ive been
 having with the drag and drop system?
 On the inventory Ive noticed sometimes some items go over other items
 and Id like to avoid that. (I'm assuming DnD deals with this partly
 itself, as most of the time the items do avoid eachother, just
 occasionaly this fails).
 I tried implementing my own check for item under on release but had
 various problems.

 If you want I can privately send over a different link to the game
 engine so you can see the problem on more recent code. (the one on the
 beta test has the icons popping up afteer dragging, which I've already
 fixed).

 If you got no time, dont worry about it :)

 -Thomas

 On Jul 21, 3:19 pm, David david.no...@gmail.com wrote:
  Fred,
 
  Do you speak Dutch or is it Google translate doing its job ?
 
  David
 
 
 
  On Tue, Jul 21, 2009 at 1:14 AM, Fred Sauerfre...@google.com wrote:
   Thomas,
   That's pretty cool. Ook leuk om iets in 't Nederlands te zien.
   Have you listed your game in the App Gallery yet?
http://gwtgallery.appspot.com/
   Thanks for the suggestion for a global function to stop playing sounds.
 That
   seems pretty useful. Would you mind proposing it here?
 http://code.google.com/p/gwt-voices/issues/list
   Thanks
   Fred
 
   On Sat, Jul 18, 2009 at 5:10 AM, twdarkflame darkfl...@gmail.com
 wrote:
 
   Id use these libuarys a lot in a online adventure game engine under
   development (beta version here;
  http://www.cuyperscode.nl/CuypersCode2_betatest/CCIIstart.html
   (an educational game being developed with it, but the engine will be
   used for a lot more).
 
   You can see DnD used for the inventory and sound used all over the
   place.
   These libs are fantastic and have been much help.
   I'll be updateing to 1.7 now :)
 
   As for specific features, theres nothing really else I need.
   I guess a global stop/disable for sounds might be usefull though.
 
   -Thomas Wrobel
 
   On Jul 16, 4:08 am, Fred Sauer fre...@google.com wrote:
Hi
With GWT 1.7.0 out the door I thought it would be a good time to
 provide
an
update for gwt-dnd, gwt-log and gwt-voices. GWT 1.7 adds a new user
agent
deferred binding property value 'ie8' which is a breaking change for
 any
project using user agent based deferred binding. To accommodate the
 new
value all three libraries have a new version available for download.
Links
and additional details for the three projects can be found below.
 
Before I talk about what's new for each of these projects though I'd
like to
take a moment to reach out and thank everyone who reported a bug,
submitted
a feature request or contributed a patch. It's really amazing how
 the
efforts of individuals can be compounded for the benefit of all the
developers in the community using these libraries and ultimately all
 the
users of their apps. Thank you!
 
While I have your attention, I'd like to express my interest in
 hearing
more
about how you are using these libraries in your web applications,
 what
features you appreciate the most and which ones you think could use
 some
improvement. In particular, I'm interested in how you might be using
these
libraries in team settings or in more complex development scenarios.
 It
could be that you or one of your colleagues has built a library or
higher
level API on top of one of gwt-dnd, gwt-log or gwt-voices. Or that
 you
collaborate with a group of developers on an enterprise application
which
has specific needs and requirements which aren't typically found in
smaller
application. Please send me an email. I'd very much like to hear
 what
you're
working on. I'm also interested in hearing about the apps you didn't
build
or couldn't convince your co-workers to build. Perhaps you're an
 avid
GWT
developer at nights and on the weekends, but you can't convince the
 rest
of
your team at work to take GWT for dry run.
 
On to release notes:
 
In each case, be sure to check the Compatibility Matrix (see links
below) so
that you're using the correct one wirth your version of GWT.
 
*gwt-dnd-2.6.5.jar* - Drag-and-drop in the web browser
 
A notable recent change is the now automatic scrolling into view
 during
dragging. This should make dragging in the context of scrollbars a
 lot
easier for your users. More exciting 

Changing page control

2009-07-21 Thread Bhayat

i have two classes and they have onload module,when i started to work
my project in one class,can i jump another class or can i use other's
onload module.if i cant do this,do you have any idea that reaching
serverside codes from different classes.Because my project goes on
only one page so,i couldnt organize my code because of using only one
class and only one entrypoint(onload module).

please tell me how can i reach my server side methods from different
classes ?? :(
--~--~-~--~~~---~--~~
You received 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: ClassCastException only in Chrome and OBF mode

2009-07-21 Thread mars1412

it doesn't occur in hosted mode - my hosted mode browser is IE6 -
unfortunately we must still use GWT 1.5.2 and there's no OOPHM
available

ah - yeah - maybe I should mention some versions:
 * GWT 1.5.2 (I'll try to upgrade to 1.5.3 soon)
 * Chrome 2.0.172.37
 * app does not work in safari  4.0.2 at all (this is due to some java-
script limitation - GWT fix for this exists in GWT 1.7 AFAIK)



On 21 Jul., 18:44, Jason Essington jason.essing...@gmail.com wrote:
 Uhm hosted mode is IE, FF, or Safari depending upon the platform ...

 That said, do you also get the error on Safari?

 -jason

 On Jul 21, 2009, at 10:34 AM, Paul Robinson wrote:



  This may be a dumb question, but since you didn't mention hosted
  modehave you tried it under hosted mode as well?

  Martin Trummer wrote:
  I get a ClassCastException on some of my RPC only, when the
  application runs in Chrome and only when it's compiled in (OBF)
  obfuscated mode.

  When I compile it in DETAILED mode, everything works fine.
  The same RPCs in other browsers also work fine (even in OBF mode).

  Now I'm quite stuck, because I have no idea where to start searching:
  * the log files of the backend and the webserver-logs do not show any
  exceptions/errors when this happens: this is what I excepted, because
  the exception only occurs in chrome - so it's a client side issue
  * the only information I have is, what I can see on the Java-Script
  Console of Chrome - thowable.toString() prints:
    java.lang.ClassCastException: null

  so, unfortunaltely the class-cast-exception has no message telling me
  which class it tries to cast or which one is expected

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



How to test GWT MapWidget?

2009-07-21 Thread Dalla

Hi all

I´m trying my best to implement the MVP pattern to be able to create
fast unit tests,
using JUnit4 only instead of using GWTTestCase.

I´ve trying to create a simple application using the GWT Google Maps
API,
but i´m having trobles writing tests for my presenter.
The presenter, somewhat stripped, looks like this:

public class MapDisplayPresenter {

HandlerManager eventBus;
MapDisplayInterface widget;
MapData data;


public MapDisplayPresenter(MapDisplayInterface mapDisplayWidget,
MapData data,
HandlerManager eventBus) {
this.data = data;
this.eventBus = eventBus;
this.bindDisplay(mapDisplayWidget);
}

private void bindDisplay(final MapDisplayInterface widget) {
this.widget = widget;
widget.getMap().addMapClickHandler(new MapClickHandler() {

public void onClick(MapClickEvent event) {
widget.getMap().addOverlay(new 
Marker(event.getLatLng()));
}

});
}

interface MapDisplayInterface {
HasClickHandlers getButton();
MapWidget getMap();
HasText getTextBox();
ListBox getList();
}

}

Since the MapWidget doesn´t implement alot of interfaces, I couldn´t
find a good way to access the MapWidget
without exposing the entire object instance through my
MapDisplayInterface.

The problem comes when I try writing tests for this presenter.
I tried using JUnit, extending it iwth Jmock, further extending it
using JDaves unfinalizer,
but sooner or later, the MapWidget or one of it´s subclasses throws an
exception.

So are there any good ways of writing tests here without using
GWTTestCase?
Are there any better ways of implementing my own interface that doesn
´t involve exposing
the entire MapWidget?
Would Selenium (which I have never used) be a better idea?

--Dalla
http://date-time.appspot.com/


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-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: ClassCastException only in Chrome and OBF mode

2009-07-21 Thread Paul Robinson

Do you know which RPC methods trigger it? Is it all RPC methods or just
some/one? Can you use some log statements to narrow this down? Does this
suggest the problem exists in GWT code or your own code?

Can you produce some simpler example code that still shows the problem?

Has the problem just arisen, and if so, what's changed lately? Can you
roll back to an earlier version of your code to see if the problem goes
away? If so, which change made the problem arise?

You could try it in safari 3.x, but that may not tell you much.

mars1412 wrote:
 it doesn't occur in hosted mode - my hosted mode browser is IE6 -
 unfortunately we must still use GWT 1.5.2 and there's no OOPHM
 available

 ah - yeah - maybe I should mention some versions:
  * GWT 1.5.2 (I'll try to upgrade to 1.5.3 soon)
  * Chrome 2.0.172.37
  * app does not work in safari  4.0.2 at all (this is due to some java-
 script limitation - GWT fix for this exists in GWT 1.7 AFAIK)



 On 21 Jul., 18:44, Jason Essington jason.essing...@gmail.com wrote:
   
 Uhm hosted mode is IE, FF, or Safari depending upon the platform ...

 That said, do you also get the error on Safari?

 -jason

 On Jul 21, 2009, at 10:34 AM, Paul Robinson wrote:



 
 This may be a dumb question, but since you didn't mention hosted
 modehave you tried it under hosted mode as well?
   
 Martin Trummer wrote:
   
 I get a ClassCastException on some of my RPC only, when the
 application runs in Chrome and only when it's compiled in (OBF)
 obfuscated mode.
 
 When I compile it in DETAILED mode, everything works fine.
 The same RPCs in other browsers also work fine (even in OBF mode).
 
 Now I'm quite stuck, because I have no idea where to start searching:
 * the log files of the backend and the webserver-logs do not show any
 exceptions/errors when this happens: this is what I excepted, because
 the exception only occurs in chrome - so it's a client side issue
 * the only information I have is, what I can see on the Java-Script
 Console of Chrome - thowable.toString() prints:
   java.lang.ClassCastException: null
 
 so, unfortunaltely the class-cast-exception has no message telling me
 which class it tries to cast or which one is expected
 
 any ideas where to look / what to do?
 

--~--~-~--~~~---~--~~
You received 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: eclipse + gwt + getting started = Syntax error, annotations are only available if source level is 1.5

2009-07-21 Thread Rajeev Dayal
Do you see any errors in the Problems view?

I think you need to set your source level to 1.5+. Go to
Preferences-Java-Compiler and set your source level to at least 1.5.
Post back here if that doesn't help.

On Mon, Jul 20, 2009 at 9:36 AM, mem mem.name...@gmail.com wrote:


 Good afternoon all. I am new to GWT and java developing itself.
 I have created a java application I wish to turn into an AJAX app via
 the magic of GWT.

 Versions:
 Eclipse SDK  3.4.2
 gwt-windows-1.7.0
 jdk1.6.0_14

 Followed this: http://code.google.com/webtoolkit/gettingstarted.html
 and the non-eclipse part worked fine.

 Following: Creating an Application from Scratch (with Eclipse)
 and it fails with:
 Syntax error, annotations are only available if source level is 1.5

 in the error log, I click proceed anyway and the Web Application
 Starter Project pops up. Click Send and I get:
 Server replies:
 An error occurred while attempting to contact the server. Please check
 your network connection and try again.


 and on the console in eclipse I get:
 The server is running at http://localhost:8080/
 20/07/2009 9:33:18 AM com.google.apphosting.utils.jetty.JettyLogger
 warn
 WARNING: Nested in javax.servlet.ServletException: init:
 java.lang.Error: Unresolved compilation problem:
Syntax error, annotations are only available if source level is 1.5

at test2.server.GreetingServiceImpl.init(GreetingServiceImpl.java:
 9)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
 Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown
 Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
 Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at org.mortbay.jetty.servlet.Holder.newInstance(Holder.java:153)
at org.mortbay.jetty.servlet.ServletHolder.getServlet
 (ServletHolder.java:339)
at
 org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
 463)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
 (ServletHandler.java:1093)
at
 com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter
 (TransactionCleanupFilter.java:43)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
 (ServletHandler.java:1084)
at com.google.appengine.tools.development.StaticFileFilter.doFilter
 (StaticFileFilter.java:124)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
 (ServletHandler.java:1084)
at org.mortbay.jetty.servlet.ServletHandler.handle
 (ServletHandler.java:360)
at org.mortbay.jetty.security.SecurityHandler.handle
 (SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle
 (SessionHandler.java:181)
at org.mortbay.jetty.handler.ContextHandler.handle
 (ContextHandler.java:712)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
 405)
at
 com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle
 (DevAppEngineWebAppContext.java:54)
at org.mortbay.jetty.handler.HandlerWrapper.handle
 (HandlerWrapper.java:139)
at com.google.appengine.tools.development.JettyContainerService
 $ApiProxyHandler.handle(JettyContainerService.java:313)
at org.mortbay.jetty.handler.HandlerWrapper.handle
 (HandlerWrapper.java:139)
at org.mortbay.jetty.Server.handle(Server.java:313)
at
 org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
 506)
at org.mortbay.jetty.HttpConnection$RequestHandler.content
 (HttpConnection.java:844)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:644)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:205)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381)
at org.mortbay.io.nio.SelectChannelEndPoint.run
 (SelectChannelEndPoint.java:396)
at org.mortbay.thread.BoundedThreadPool$PoolThread.run
 (BoundedThreadPool.java:442)
 20/07/2009 9:33:18 AM com.google.apphosting.utils.jetty.JettyLogger
 warn
 WARNING: /test2/greet
 java.lang.Error: Unresolved compilation problem:
Syntax error, annotations are only available if source level is 1.5

at test2.server.GreetingServiceImpl.init(GreetingServiceImpl.java:
 9)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
 Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown
 Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
 Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at org.mortbay.jetty.servlet.Holder.newInstance(Holder.java:153)
at org.mortbay.jetty.servlet.ServletHolder.getServlet
 

Profiling memory usage for large gwt application

2009-07-21 Thread ankuur

hi

We are using the gwt 2.0 code from gwt trunk.And we hav seen a drastic
improvement in the page loading especially in case of IE(6 and
7).Actully breaking the compiled code into the multiple script tag
did the trick.
But now we are facing the browser memory problem.Actully our total
compiled script size(in OBF mode)
is more than 3 MB.As we use the application the browser memory keeps
on increasing and sometimes it even reached to the 700MB.

We tried to profile the application using the javascript tool(like
firebug) but of no use because the only provides the performance
metrics and not any memory leaks.

Now we are trying to profile the gwt in the OOPHM mode while
debugging.Its helpful and we are able to find some of the problems in
our code.But actully during debugging time most of the refrences are
held by gwt code(mainly by JavaDispatchImpl class and by the static
variable in RootPanel i.e. widgetstoDetach) and also all the asynccall
backs are held by RequestBuilder.

We are assuming that these refrences wont be hold in the compiled
mode,because all the classes we see are the debugger classes.But its
making that profiling very tedious as we need to search what refrences
are held by the gwt and where our classes are keeping refrence.

I dont know we are going through correct approch fpr profiling or is
there any other way so that we can check all the memory leaks and
reduce the memory footprint of our application in the browser.

Any help in this heartly welcomed.And also if we can reduce the objects
(especially all the RPCs callbacks) then actully we can reduce the
meomory used during debugging and it might help in mking it faster.

regards
ankur

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



Login Application

2009-07-21 Thread saurabh

Hello ,

  I am developing Login Application using GWT. My Interface is
ready but I am thinking about where should values go. How can I check
the UserName  Password sent by Client or I should use RPC for that.

if this is so then what role my servlet should play.


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: Is there a way to force serialization of a Class ?

2009-07-21 Thread Sumit Chandel
Hi AymenS,
You could manually enter the class name that you want to serialize to the
generated serialization policy file (for example, as part of your build
process). You can take a look at the generated serialization file to see an
example of the format required to add the exception type to the
serialization policy (essentially pairs of fully qualified classnames and
booleans indicating whether the type can be instantiated).

However, it's important to note that allowing a Hibernate exception to
bubble up to the client-side is generally bad practice. Instead, you should
catch the exception on the server-side and either delegate the exception to
something specific and friendlier to the GWT client-side that can be used to
handle the error elegantly on the client or provide some kind of error
signaling in the RPC callback between the client and the server.

Hope that helps,
-Sumit Chandel

On Fri, Jul 17, 2009 at 8:29 AM, AymenS sayhi.ay...@gmail.com wrote:


 What I know in GWT serialization is that only classes that are
 mentionned (params, return type) in RPC methods are included in GWT
 serialization policy white-list.

 I need to serialize org.hibernate.StaleObjectStateException, which is
 thrown, in server-side, when a concurrency access problem happens.

 I added a fake implementation to the source code of my module to
 emulate the real one (org.hibernate.StaleObjectStateException).

 To make it serializable I'm obliged to add the clause  throws
 StaleObjectStateException  to methods (in service layer) which are
 susceptible to throw it at runtime.

 example:

   Customer update(Customer client) throws StaleObjectStateException;


 My question is the following, is there another way to make 
 StaleObjectStateException  without polluting service layer with those
  throws StaleObjectStateException  ?


 p.s. : I'm using GWT-SL (GileadRPCServiceExporter) in server side.

 


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



Working with xml nodes gives exceptions in google chrome only

2009-07-21 Thread mihai007

The following code works as expected in IE7/8, Firefox, Opera, but
fails on chrome:

Node root = XMLParser.parse(?xml version='1.0' ?root /
).getLastChild();
Node node = XMLParser.parse(?xml version='1.0' ?node /
).getLastChild();
root.appendChild(node);

Does anyone have a clue why is it happening and any workarounds? thank
you.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-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: Integrating Google Docs into GWT

2009-07-21 Thread Sumit Chandel
Hi Abhiram,
You will need to provide your own visualization for the spreadsheet data in
your GWT application. The FlexTable widget may be particularly useful here.

To actually persist and work with data in a Google Spreadsheet, however, you
can use the Spreadsheets API (one of many flavours). You can check out the
Spreadsheet API at the link below.

Spreadsheets API:
http://code.google.com/apis/spreadsheets/

http://code.google.com/apis/spreadsheets/Hope that helps,
-Sumit Chandel

On Sat, Jul 18, 2009 at 2:43 AM, twdarkflame darkfl...@gmail.com wrote:


 Not to my knowledge, but you could just use a Frame element, seeing as
 Google docs can provide url links to each document.
 Not particularly neat though.


 On Jul 17, 11:53 am, abhiram abhir...@gmail.com wrote:
  Hi,
 
Is there a way to integrate the 'Google Docs' with the GWT
  application so that I can conveniently display the spreadsheets and
  all in my web application. Just wanted to know if there is any jar
  available for 'Google Docs'. And a sample application also would be of
  great help.
 
  Regards,
  Abhiram
 


--~--~-~--~~~---~--~~
You received 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: Common parent project - How?

2009-07-21 Thread Jason Parekh
Yup, it should.  In your child project, you'll have the code of both
projects.
jason

On Tue, Jul 21, 2009 at 4:11 AM, Wualla wua...@walla.co.il wrote:


 Hi


 Will using Link Source let me combine both the code from the common
 and the child projects? It seems to block this attempt.


 Thanks

 On Jul 21, 12:49 am, Jason Parekh jasonpar...@gmail.com wrote:
  Hey,
  I believe the easiest way to accomplish this is instead of using the
 project
  dependencies, use the linked source feature.  For each of your child
  projects, go to Properties  Java Build Path  Source  Link Source, and
 set
  the location to your core project's src directory (and the name to
  whatever you like).
 
  jason
 
  On Mon, Jul 20, 2009 at 2:42 PM, Wualla wua...@walla.co.il wrote:
 
   Hi
 
   Scenario:
 
   Core client and server code needs to be shared among several projects
   (referred to as child projects)
 
   My try was ro create the core project as a GWT project, and add it to
   the build path of the child projects as a dependency project.
 
   Under Jetty, everything works OK except I get this message:
 
   [WARN] Server class 'com.mycompany.core.client.domainObjects.User'
   could not be found in the web app, but was found on the system
   classpath
   [WARN] Adding classpath entry '.../Core/war/WEB-INF/classes/' to the
   web app classpath for this session
 
   When deployed - to Tomcat - I get:
 
   ...
   javax.servlet.ServletException: Error instantiating servlet class
   com.mycompany.myProject.server.MyServiceImpl
   ...
   java.lang.NoClassDefFoundError: com/mycompany/core/client/domain/User
   ...
   java.lang.ClassNotFoundException:
   com.mycompany.core.client.domainObjects.User
   ...
 
   What should I do? Help 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
-~--~~~~--~~--~--~---



Drag and Drop, how to activate an action when dragging over a widget?

2009-07-21 Thread Memo Sanchez

Good morning.

I created an special scrollPanel, which scrolls when clicking into
the
right or left button. Does anyone knows how can I activate the
onClick
behavior of the left and right buttons when I am dragging a widget
over them?.

Thank you for your time.

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



Interface not RPC serializable

2009-07-21 Thread Juraj Vitko

I'm trying to RPC-send an interface member in a POJO - all types
implementing this interface are Enums (see the example below please).

Now, the application works 100% in both hosted and web modes, but the
Java to JavaScript compiler complains about the POJO object, that the
MyIFace is not RPC-serializable. (was not serializable and has no
concrete serializable subtypes)

Any ideas how to get rid of that compiler warning? I'm using GWT 1.6
for the time being.


class POJO {  //this object is sent via the RPC
  MyIface iface;
}

interface MyIface extends IsSerializable {
  MyIface[] getVals(String param);
}

enum MyEnum implements MyIface {
   one(1),
   two(2);

   private MyEnum(String s) { this.s = s; }
   private MyEnum() { }

   private String s;

   MyIface[] getVals(String param) {
  return MyEnum.values();
   }
}
--~--~-~--~~~---~--~~
You received 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: New problem of blurHandler and setFocus on GWT 1.6

2009-07-21 Thread Sumit Chandel
Hi Nono,
This sounds like an issue that needs fixing to me. Feel free to report this
on the Issue Tracker to get it on the radar and to follow along report
updates on your side.

Issue Tracker:
http://code.google.com/p/google-web-toolkit/issues/list

Cheers,
-Sumit Chandel

On Sat, Jul 18, 2009 at 7:46 AM, Arnaud Blanchard blanchardarn...@gmail.com
 wrote:

 Problem solved (but not clean).

 I still have not found the true answer, but I wanted a way to show you a
 trick to avoid it. It is due to the propagation of the Click-Event and to
 solve it I have add event.stopPropagation() in the first line of the
 function onClick, and it works even though not very clean.

 public void onClick(ClickEvent event) {

 event.stopPropagation();

 edit();
 }




 Regards,

 Nono


 Hi,

 Could you try to addBlurEvent after setting focus to true ?

 Regards,

 2009/6/28 Arnaud Blanchard blanchardarn...@gmail.com

 Hi,
 When I set setFocus on a object it is focussed and immediatly after, an
 onBlur event is send. I did not have this problem on 1.5 with focus
 listener. You can see the code below. solidify is call immediatly after we
 have time to see that the area of text has been selected. Maybe the onClick
 event haven't been destroyed ?

 Thank for your help,

 Nono


 public void edit()
  {
 this.clear();
  areaOfText = new SuggestBox(Text.suggestions);
  areaOfText.setText(text.content);
  areaOfText.addStyleDependentName(Integer.toString(level));



 /* PROBLEM HERE */
 areaOfText.getTextBox().addBlurHandler(new BlurHandler(){
  public void onBlur(BlurEvent event) {
  solidify(areaOfText.getText());
 }
  });
 this.add(areaOfText);
  areaOfText.setFocus(true);
 /* END PROBLEM */
 }

 public void solidify(String newContent)
  {
 if (!newContent.equals(text.content))
  {
 this.text = text.createNewText(newContent);
  this.info = this.info.createNewInfo(text, text.id);
  }
 this.clear();
  label = new Label(text.content);
  label.addStyleDependentName(Integer.toString(level));

 /* MAYBE PROBLEM HERE */
  label.addClickHandler(new ClickHandler(){
  public void onClick(ClickEvent event) {
 edit();
  }
 });
 this.add(label);
  }


 


--~--~-~--~~~---~--~~
You received 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: Command Pattern, MVP, EventBus

2009-07-21 Thread Eduardo Nunes

About the gwt-presenter library, I found some points that I would like
talk to you:
- When I extend WidgetPresenter/BasicPresenter I have to implement
many abstract methods, is it really necessary to set those methods as
abstract? Isn't it better to provide an empty default implementation?
I know that I can do it by myself but it's just a suggestion.
- Isn't it better to define the Place mechanism in the BasicPresenter
checking if the current object is a instanceof SomePlaceInterface
instead of calling directly getPlace?
- I didn't realize the meaning of the startProcessing and
stopProcessing methods in Display interface. Can you gimme some usage
example?

That's my 5cents, I think I will change my project to use your library
and keep it online just as an usage example.

If you want to take a look on it:
http://code.google.com/p/gwt-mvp-sample/source/browse/#svn/branches/gwt-presenter

Best regards,

On Sat, Jul 18, 2009 at 11:32 PM, David Petersonda...@randombits.org wrote:

 I really think it's a purely philosophical decision - I can see how it
 would work fine with EventBus, I'm just choosing not to, basically.
 For me the line in the sand is that events are about information,
 commands are about action. Your mileage may vary :)

 David

 On Jul 18, 7:22 am, Kwhit kwhitting...@gmail.com wrote:
 On Jul 15, 9:36 pm, David Peterson da...@randombits.org wrote:
 - Thinking further, I think it's better to separate the EventBus from
 - the Command system somewhat. The reason being that generally, events
 - are used to update on changes that have already happened, or are
 about
 - to happen. They don't trigger the actual event itself.

 Yes I've been thinking about that.

 Any user action that interacts with the server: sign in, create
 account, update address, etc., has an asynchronous response. I find
 myself tempted to wrap the service request in and make it synchronous
 but that would be morally wrong and lead into all kinds of
 difficulties in the details. So I've gone the other route...

 My proof of concept implementation treats a click on the 'sign in'
 button as an event which it fires and forgets to the event bug. Maybe
 this goes too far in the other direction - time will tell. I'll post
 my results as soon as I've got some real experience with it.
 




-- 
Eduardo S. Nunes
http://e-nunes.com.br

--~--~-~--~~~---~--~~
You received 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: Image Bundle not working in IE

2009-07-21 Thread Sean

If I understand you correctly, what I did was go into Run
Configurations and turned off Run built-in server. Then use the
browser that comes up to goto my deployed site on my external server?

Well, I tried that and I got:
[ERROR] Unable to find 'celticlock.gwt.xml' on your classpath; could
be a typo, or maybe you forgot to include a classpath entry for
source?

But, then I tried to goto the GWT Showcase and I got the same thing:
[ERROR] Unable to find 'showcase.gwt.xml' on your classpath; could be
a typo, or maybe you forgot to include a classpath entry for source?

(Which works in IE for me btw).

So, I think I may be misunderstanding you.

On Jul 20, 11:40 am, Rajeev Dayal rda...@google.com wrote:
 It is odd that it works in hosted mode, but not in web mode - because the IE
 settings (security even) should be the same for IE6 hosted mode, and the
 normal IE6 browser.
 Actually, here is one thing you can test - try hitting your deployed app
 with the hosted browser. Launch hosted mode with the -noserver option, which
 will prevent GWT's default server from starting up. That way, we can
 determine if this is an issue with the hosted browser, or something wonky
 with your deployment.

 On Mon, Jul 20, 2009 at 11:59 AM, Sean slough...@gmail.com wrote:

  The fact that it works when in Hosted mode in IE, but not when it's
  deployed is making me think it is a security thing. I'm just not sure
  the work around. I've tried various security settings, but can't get
  it to show up. THe path looks right to the clear cache, not sure waht
  else could be messing this up. Cause it looks like it's putting the
  correct image sizes (Things next to it are pushed over correctly).

  Very peculiar. I've even noticed that Tree +/- are missing as well as
  disclosure panel's arrows. So it's not just my image bundles, but
  GWT's are having a hard time. Very confusing. I'll keep playing with
  it, see if I can figure something out.

  On Jul 18, 11:25 am, Thomas Broyer t.bro...@gmail.com wrote:
   On 18 juil, 00:34, Sean slough...@gmail.com wrote:

Sadly, even with clean war file, IE still is having problems. I wonder
if it's some security level thing? I'm not sure. IE won't allow me to
turn down my settings to try it. Wont let me go lower then Medium for
non-intranet sites. I don't know why an ImageBundle would be
considered non-secure, but at this point I'm just confused.

   It could be two things:
    - a bad path to the bundle (IE is known to have some bugs re.
   resolving relative paths, though it shouldn't affect ImageBundles; but
   maybe if you're playing with the paths when deploying your app)
    - ImageBundles use an ActiveX (filter: AlphaImageLoader), so it might
   really be a security thing.
--~--~-~--~~~---~--~~
You received 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
-~--~~~~--~~--~--~---



Getting a simple GWT project to gwt-compile in maven2

2009-07-21 Thread Yaakov

Hi,

I am trying to get a very simple GWT project to gwt-compile using the
codehaus' maven-gwt plugin but I don't seem to be having much
success...

The project is nothing more than a regular starter GWT 1.7 (same as
1.6 plus bug fixes) Eclipse GWT plugin project. All I did after
creating a new project in Eclipse with the GWT Eclipse plugin was to
create main/java under the src directory and put that into the class
path instead of just the default src directory.

My pom.xml is shown below. When I do 'mvn clean compile', I see that
GWT compile gets kicked off, but when I go the exploded built WAR and
double click on the host HTML page, it tells me GWT module
'szblankweb' needs to be (re)compiled, please run a compile or use the
Compile/Browse button in hosted mode. Same thing happens if I deploy
the .war file into a container.

If I run the app inside Eclipse in hosted mode and then do 'mvn
package' (without the clean), everything works.

Any idea of what I am not doing or doing wrong here?

Here is my pom.xml:

?xml version=1.0 encoding=UTF-8?
project xmlns=http://maven.apache.org/POM/4.0.0;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
   xsi:schemaLocation=http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd;
   modelVersion4.0.0/modelVersion
   groupIdtest/groupId
   artifactIdtest/artifactId
   packagingwar/packaging
   version1.0-SNAPSHOT/version
   nametest/name

   properties
   gwt.version1.7.0/gwt.version
   maven.compiler.source1.6/maven.compiler.source
   maven.compiler.target1.6/maven.compiler.target
   /properties

   dependencies
   dependency
   groupIdcom.google.gwt/groupId
   artifactIdgwt-servlet/artifactId
   version${gwt.version}/version
   scopecompile/scope
   /dependency
   dependency
   groupIdcom.google.gwt/groupId
   artifactIdgwt-user/artifactId
   version${gwt.version}/version
   scopeprovided/scope
   /dependency
   dependency
   groupIdjunit/groupId
   artifactIdjunit/artifactId
   version4.4/version
   scopetest/scope
   /dependency
   /dependencies

   build
   outputDirectorywar/WEB-INF/classes/outputDirectory
   testOutputDirectorywar/WEB-INF/classes/
testOutputDirectory
   plugins
   plugin
   groupIdorg.apache.maven.plugins/
groupId
   artifactIdmaven-war-plugin/
artifactId
   version2.1-beta-1/version
   configuration
   warSourceDirectory/war/
warSourceDirectory
   /configuration
   /plugin
   plugin
   groupIdorg.codehaus.mojo/groupId
   artifactIdgwt-maven-plugin/
artifactId
   version1.1/version
   executions
   execution
   goals
   goalcompile/
goal
   goaltest/
goal
   /goals
   /execution
   /executions
   /plugin
   plugin
   groupIdorg.apache.maven.plugins/
groupId
   artifactIdmaven-war-plugin/
artifactId
   configuration
   warSourceDirectorywar/
warSourceDirectory
   /configuration
   /plugin

   plugin
   groupIdorg.apache.maven.plugins/
groupId
   artifactIdmaven-compiler-plugin/
artifactId
   version2.0.2/version
   configuration
   source${maven.compiler.source}
/source
   target${maven.compiler.target}
/target
   /configuration
   /plugin
   /plugins
   /build
/project



Here is the output of maven when I run against the pom.xml above:

[INFO] Scanning for projects...
[INFO]

user agent compiling help

2009-07-21 Thread rjcarr

With the release of GWT 1.7 I know have 6 permutations compiling, and
since I have a very targeted audience, I don't need them all.

I found I can change the targets by using something like this in my
module xml file:

set-property name=user.agent value=ie8,gecko,safari/

Will this target the latest releases of these browsers?  If not, which
values should I be using to make this happen?  Can I get a user agent
to browser mapping?

 And I assume that chrome uses safari?
--~--~-~--~~~---~--~~
You received 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: Interface not RPC serializable

2009-07-21 Thread Juraj Vitko

changing the POJO.iface field to:

Enum? extends MyIface iface;

doesn't help either.


On Jul 21, 8:51 pm, Juraj Vitko juraj.vi...@gmail.com wrote:
 I'm trying to RPC-send an interface member in a POJO - all types
 implementing this interface are Enums (see the example below please).

 Now, the application works 100% in both hosted and web modes, but the
 Java to JavaScript compiler complains about the POJO object, that the
 MyIFace is not RPC-serializable. (was not serializable and has no
 concrete serializable subtypes)

 Any ideas how to get rid of that compiler warning? I'm using GWT 1.6
 for the time being.

 class POJO {  //this object is sent via the RPC
   MyIface iface;

 }

 interface MyIface extends IsSerializable {
   MyIface[] getVals(String param);

 }

 enum MyEnum implements MyIface {
    one(1),
    two(2);

    private MyEnum(String s) { this.s = s; }
    private MyEnum() { }

    private String s;

    MyIface[] getVals(String param) {
       return MyEnum.values();
    }

 }


--~--~-~--~~~---~--~~
You received 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: Interface not RPC serializable

2009-07-21 Thread Nuno
Don't you also need to do:

class POJO extends Serializable ?

I got many alerts about this in my classes.

On Tue, Jul 21, 2009 at 3:51 PM, Juraj Vitko juraj.vi...@gmail.com wrote:


 I'm trying to RPC-send an interface member in a POJO - all types
 implementing this interface are Enums (see the example below please).

 Now, the application works 100% in both hosted and web modes, but the
 Java to JavaScript compiler complains about the POJO object, that the
 MyIFace is not RPC-serializable. (was not serializable and has no
 concrete serializable subtypes)

 Any ideas how to get rid of that compiler warning? I'm using GWT 1.6
 for the time being.


 class POJO {  //this object is sent via the RPC
  MyIface iface;
 }

 interface MyIface extends IsSerializable {
  MyIface[] getVals(String param);
 }

 enum MyEnum implements MyIface {
   one(1),
   two(2);

   private MyEnum(String s) { this.s = s; }
   private MyEnum() { }

   private String s;

   MyIface[] getVals(String param) {
  return MyEnum.values();
   }
 }
 



-- 
Quer aprender a programar? acompanhe:
Wants to learn GWT? Follow this blog -

http://tcninja.blogspot.com

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-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: Interface not RPC serializable

2009-07-21 Thread Juraj Vitko

Yeah I've left that out in the example, it of course is marked with
IsSerializable.

However! - I've found a solution (just needed to recall that I've had
similar problem with Interfaces+Classes already):

A Class (or Enum) type extending the said non-serializable interface
(MyIface in the above example) needs to be defined in the same package
as the interface. The compiler warning is then not produced.

I've scanned GWT-Issues (and GWT docs) for this, haven't exactly found
it - should I fill this as an Issue?




On Jul 21, 9:49 pm, Nuno brun...@gmail.com wrote:
 Don't you also need to do:

 class POJO extends Serializable ?

 I got many alerts about this in my classes.



 On Tue, Jul 21, 2009 at 3:51 PM, Juraj Vitko juraj.vi...@gmail.com wrote:

  I'm trying to RPC-send an interface member in a POJO - all types
  implementing this interface are Enums (see the example below please).

  Now, the application works 100% in both hosted and web modes, but the
  Java to JavaScript compiler complains about the POJO object, that the
  MyIFace is not RPC-serializable. (was not serializable and has no
  concrete serializable subtypes)

  Any ideas how to get rid of that compiler warning? I'm using GWT 1.6
  for the time being.

  class POJO {  //this object is sent via the RPC
   MyIface iface;
  }

  interface MyIface extends IsSerializable {
   MyIface[] getVals(String param);
  }

  enum MyEnum implements MyIface {
    one(1),
    two(2);

    private MyEnum(String s) { this.s = s; }
    private MyEnum() { }

    private String s;

    MyIface[] getVals(String param) {
       return MyEnum.values();
    }
  }

 --
 Quer aprender a programar? acompanhe:
 Wants to learn GWT? Follow this blog -

 http://tcninja.blogspot.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-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: Serializable objects

2009-07-21 Thread martinhansen

maybe you need to add a sorce path directive to your application xml
file which points to your package



On 21 Jul., 15:12, Kinjal Khandhar kinjal.stonybr...@gmail.com
wrote:
  Hello All,

 I am building an application that has an interface which implements
 java.io.serializable.I want to transfer the data back and forth between
 client and server.

 The problem is that interface is not in my current GWT package(client and
 server).Its in diff package.Hence it gives me compiler error saying check
 the inheritance chain.

 Is it that I need to have that interface in my gwt package or may be there
 is a need to define the path of that package somewhere.

 Please help me if anyone is aware of the problem.

 -Kinjal.
--~--~-~--~~~---~--~~
You received 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: Client source, what's included, what's not

2009-07-21 Thread martinhansen

hello,

it's all about the source directive in the gwt app XML file. GWT
compiles source code to JS when the source directive point to it. if
you specify no source directive, GWT will compile the 'client' package
to JS.

example:

source path='client' /
source path='shared' /

these two packages and all their subpackages will be compiled to JS.



On 21 Jul., 14:47, Kwhit kwhitting...@gmail.com wrote:
 How does the compiler/deployer know what source code is to be
 xcompiled into JS for and shipped to the browser and what not in
 Ecipse?

 More specifically I would like

  src/com..myproj.client    to be included

 but...

  srctest/com..myproj.client

 not.

 Is there a way of doing that?
 Not a big problem if not but it keeps my project structure clean if
 there is a way.

 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: extra Labels displaying in Panel

2009-07-21 Thread Josephine

I am still getting 2 Labels displayed when there should only be one.
I am at my wit's end.  Can anyone help me?  My code is in the original
post.

--~--~-~--~~~---~--~~
You received 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: Image Bundle not working in IE

2009-07-21 Thread Sean

As a quick Test, I made a GWT App that was just a Tree with one item
added to the RootPanel. No +/- in IE. Atleast I know it's not
something in my huge app.

 I also set my IE settings for intranet pages to Medium_high which the
web setting is, and I still see everything fine on the local machine.

Since I see everything fine in IE on my local machine as well as
Google's Showcase website, I can only think it's something with my
server. Now...how the hell to figure that out? That I have no
clue. Nothing off in the logs, the java script should work just the
same everywhere. So confusing. It's Mocha hosting, so it's a reputable
place. I can't understand how the .js being read from there would do
something different then on my local machine.

On Jul 21, 3:19 pm, Sean slough...@gmail.com wrote:
 If I understand you correctly, what I did was go into Run
 Configurations and turned off Run built-in server. Then use the
 browser that comes up to goto my deployed site on my external server?

 Well, I tried that and I got:
 [ERROR] Unable to find 'celticlock.gwt.xml' on your classpath; could
 be a typo, or maybe you forgot to include a classpath entry for
 source?

 But, then I tried to goto the GWT Showcase and I got the same thing:
 [ERROR] Unable to find 'showcase.gwt.xml' on your classpath; could be
 a typo, or maybe you forgot to include a classpath entry for source?

 (Which works in IE for me btw).

 So, I think I may be misunderstanding you.

 On Jul 20, 11:40 am, Rajeev Dayal rda...@google.com wrote:

  It is odd that it works in hosted mode, but not in web mode - because the IE
  settings (security even) should be the same for IE6 hosted mode, and the
  normal IE6 browser.
  Actually, here is one thing you can test - try hitting your deployed app
  with the hosted browser. Launch hosted mode with the -noserver option, which
  will prevent GWT's default server from starting up. That way, we can
  determine if this is an issue with the hosted browser, or something wonky
  with your deployment.

  On Mon, Jul 20, 2009 at 11:59 AM, Sean slough...@gmail.com wrote:

   The fact that it works when in Hosted mode in IE, but not when it's
   deployed is making me think it is a security thing. I'm just not sure
   the work around. I've tried various security settings, but can't get
   it to show up. THe path looks right to the clear cache, not sure waht
   else could be messing this up. Cause it looks like it's putting the
   correct image sizes (Things next to it are pushed over correctly).

   Very peculiar. I've even noticed that Tree +/- are missing as well as
   disclosure panel's arrows. So it's not just my image bundles, but
   GWT's are having a hard time. Very confusing. I'll keep playing with
   it, see if I can figure something out.

   On Jul 18, 11:25 am, Thomas Broyer t.bro...@gmail.com wrote:
On 18 juil, 00:34, Sean slough...@gmail.com wrote:

 Sadly, even with clean war file, IE still is having problems. I wonder
 if it's some security level thing? I'm not sure. IE won't allow me to
 turn down my settings to try it. Wont let me go lower then Medium for
 non-intranet sites. I don't know why an ImageBundle would be
 considered non-secure, but at this point I'm just confused.

It could be two things:
 - a bad path to the bundle (IE is known to have some bugs re.
resolving relative paths, though it shouldn't affect ImageBundles; but
maybe if you're playing with the paths when deploying your app)
 - ImageBundles use an ActiveX (filter: AlphaImageLoader), so it might
really be a security thing.
--~--~-~--~~~---~--~~
You received 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: Image Bundle not working in IE

2009-07-21 Thread Sean

Crap. So I uploaded the sample Tree app that did NOT work with my
server to the Google Appengine and it worked fine. Dammit. Why would a
server not serve the imagebundles to IE correctly?

On Jul 21, 4:19 pm, Sean slough...@gmail.com wrote:
 As a quick Test, I made a GWT App that was just a Tree with one item
 added to the RootPanel. No +/- in IE. Atleast I know it's not
 something in my huge app.

  I also set my IE settings for intranet pages to Medium_high which the
 web setting is, and I still see everything fine on the local machine.

 Since I see everything fine in IE on my local machine as well as
 Google's Showcase website, I can only think it's something with my
 server. Now...how the hell to figure that out? That I have no
 clue. Nothing off in the logs, the java script should work just the
 same everywhere. So confusing. It's Mocha hosting, so it's a reputable
 place. I can't understand how the .js being read from there would do
 something different then on my local machine.

 On Jul 21, 3:19 pm, Sean slough...@gmail.com wrote:

  If I understand you correctly, what I did was go into Run
  Configurations and turned off Run built-in server. Then use the
  browser that comes up to goto my deployed site on my external server?

  Well, I tried that and I got:
  [ERROR] Unable to find 'celticlock.gwt.xml' on your classpath; could
  be a typo, or maybe you forgot to include a classpath entry for
  source?

  But, then I tried to goto the GWT Showcase and I got the same thing:
  [ERROR] Unable to find 'showcase.gwt.xml' on your classpath; could be
  a typo, or maybe you forgot to include a classpath entry for source?

  (Which works in IE for me btw).

  So, I think I may be misunderstanding you.

  On Jul 20, 11:40 am, Rajeev Dayal rda...@google.com wrote:

   It is odd that it works in hosted mode, but not in web mode - because the 
   IE
   settings (security even) should be the same for IE6 hosted mode, and the
   normal IE6 browser.
   Actually, here is one thing you can test - try hitting your deployed app
   with the hosted browser. Launch hosted mode with the -noserver option, 
   which
   will prevent GWT's default server from starting up. That way, we can
   determine if this is an issue with the hosted browser, or something wonky
   with your deployment.

   On Mon, Jul 20, 2009 at 11:59 AM, Sean slough...@gmail.com wrote:

The fact that it works when in Hosted mode in IE, but not when it's
deployed is making me think it is a security thing. I'm just not sure
the work around. I've tried various security settings, but can't get
it to show up. THe path looks right to the clear cache, not sure waht
else could be messing this up. Cause it looks like it's putting the
correct image sizes (Things next to it are pushed over correctly).

Very peculiar. I've even noticed that Tree +/- are missing as well as
disclosure panel's arrows. So it's not just my image bundles, but
GWT's are having a hard time. Very confusing. I'll keep playing with
it, see if I can figure something out.

On Jul 18, 11:25 am, Thomas Broyer t.bro...@gmail.com wrote:
 On 18 juil, 00:34, Sean slough...@gmail.com wrote:

  Sadly, even with clean war file, IE still is having problems. I 
  wonder
  if it's some security level thing? I'm not sure. IE won't allow me 
  to
  turn down my settings to try it. Wont let me go lower then Medium 
  for
  non-intranet sites. I don't know why an ImageBundle would be
  considered non-secure, but at this point I'm just confused.

 It could be two things:
  - a bad path to the bundle (IE is known to have some bugs re.
 resolving relative paths, though it shouldn't affect ImageBundles; but
 maybe if you're playing with the paths when deploying your app)
  - ImageBundles use an ActiveX (filter: AlphaImageLoader), so it might
 really be a security thing.
--~--~-~--~~~---~--~~
You received 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 project runs slow in Hosted mode

2009-07-21 Thread Sumit Chandel
Hi Dorothy,
Most of the cases reported on this thread involved using multiple GWT
libraries along with GWT core itself. As Jason suggested above, it's
possible that one of the reasons for the slowdown is many Java to JS
boundary crossings in the associated libraries.

I'm not familiar with GWTX, but you may want to check out some of its
implementation details to see if it is also making a lot of Java to JS jumps
through JSNI bindings. Depending what your application does when it first
loads up (the GWT module itself and any third party libraries), there may
also be a culprit responsible for slowdowns there.

Another thing to check would be how many logs are being generated when your
start up your application and its 4 modules in hosted mode. It's possible
that these are causing considerable slowdown if the logLevel parameter is
set in your launch configuration. If this is the case, try omitting the
-logLevel DEBUG flag in your launch configuration to see if that speeds
things up.

Hope that helps,
-Sumit Chandel

On Sat, Jul 18, 2009 at 12:25 PM, Dorothy dgantenb...@comcast.net wrote:


 We are having the same issue upgrading from 1.5 to 1.7.  For our
 application, we have GWTX in addition to the GWT.  For our project, we
 have 4 GWT modules that are in development.  For hosted browser with
 the -noserver option, our launch time in 1.5 was ~90 seconds and is
 now over 10 minutes in GWT 1.7.  Some initial investigation indicates
 that removing our public resources gives a modest improvement but
 nowhere close to GWT 1.5 times. Any suggestions 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
-~--~~~~--~~--~--~---



How to deal with multiple coordinating RequestBuilder sends?

2009-07-21 Thread H T

Hi there,

I'm a newb when it comes to GWT so I need your advice.

I have a situation where I am making two restful calls using
RequestBuilder R1, R2.

R1- http://localhost:8080/universe
R2- http://localhost:8080/someDataContainedInUniverse

I have two ListBox components L1, L2 where data in (R1-R2) is put into
L1, and data in R2 is put into L2.

How can I wait on the result of some request so I can ensure that the
underlying ListBox components contain the proper information in the
correct state.  I realize R1 and R2 make asynchronous requests so
their callbacks can happen at any time.  What will happen when they do
since they both need to coordinate/communicate the same underlying
ListBox.

Any advice 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: Problem calling a RPC service in a inherited module

2009-07-21 Thread braverju

It was helpful! Thank you very much!
Julia

On Jul 7, 3:49 am, Marcel mschuste...@googlemail.com wrote:
 Ok, I solved it.

 The servlet mapping was the problem. It has to be done in the web.xml
 of the project that inherits the module (in my case, the index
 project). Furthermore, the url-pattern does not include the module's
 project name, but the name of the project that inherits the module (in
 my case  url-pattern/index/DatabaseService/url-pattern).

 Maybe this can be helpful for somebody else. ;)

 Cheers!

 On 6 Jul., 22:03, Marcel mschuste...@googlemail.com wrote:

  I want to share common functionality between a couple of gwt projects
  in eclipse (gwt 1.6). More precisely, I have a RPC service called
  DatabaseService that handles SQL database operations. To use it in
  different projects, I created a new gwt project in eclipse, called it
  Services and put the DatabaseService.java and
  DatabaseServiceAsync.java in the myproject.client package and the
  DatabaseServiceImpl in the myproject.server package.

  Then, I added that services project to another project's build path
  (let's call the other project index) and added the following line to
  the Index.gwt.xml inherits name='myproject.Services'/. The packages
  in the index project are called com.is.client and com.is.server.

  The access from the classes in the com.is.client package to the
  classes in the myproject.client package works fine, however, when I
  try to call the RPC service in the myproject.server package from a
  class in the com.is.client package, I get an HTTP 404 not found error
  (com.google.gwt.user.client.rpc.StatusCodeException). When I read
  through the error message, I recognized that the request URI is /index/
  DatabaseService, but I think, it actually should be /services/
  DatabaseService. However, I did not find a way to change that.

  Here are the XML files:

  In the index project:

  Index.gwt.xml:
  module rename-to='index'
    !-- Inherit the core Web Toolkit stuff.                        --
    inherits name='com.google.gwt.user.User'/
    inherits name='com.google.gwt.user.theme.standard.Standard'/
    !-- Other module inherits                                      --
           inherits name='myproject.Services'/
    !-- Specify the app entry point class.                         --
    entry-point class='com.is.client.Index'/
  /module

  web.xml:
    !-- Default page to serve --
    welcome-file-list
      welcome-fileIndex.html/welcome-file
    /welcome-file-list

  In the services project:

  Services.gwt.xml:
  module rename-to='services'
    !-- Inherit the core Web Toolkit stuff.                        --
    inherits name='com.google.gwt.user.User'/
    !-- Specify the app entry point class.                         --
    entry-point class='myproject.client.Services'/
  /module

  web.xml:
    !-- Default page to serve --
    welcome-file-list
      welcome-fileServices.html/welcome-file
    /welcome-file-list

    !-- Servlets --
    servlet
      servlet-nameDatabaseServiceImpl/servlet-name
      servlet-classmyproject.server.DatabaseServiceImpl/servlet-
  class
    /servlet
    servlet-mapping
      servlet-nameDatabaseServiceImpl/servlet-name
      url-pattern/services/DatabaseService/url-pattern
    /servlet-mapping
  /web-app

  I also tried putting the servlet name and import in the index
  project's web.xml file as well, but no change.

  I hope, someone can help me, I really can't find out, what I did
  wrong.

  Cheers!
  Marcel



--~--~-~--~~~---~--~~
You received 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: Image Bundle not working in IE

2009-07-21 Thread Thomas Broyer



On 21 juil, 22:29, Sean slough...@gmail.com wrote:
 Crap. So I uploaded the sample Tree app that did NOT work with my
 server to the Google Appengine and it worked fine. Dammit. Why would a
 server not serve the imagebundles to IE correctly?

Any pointer so that we could look at it and try to understand what's
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
-~--~~~~--~~--~--~---



  1   2   >