how to solve unknown entity in Hibernate

2008-10-14 Thread rsund

Hi.

how to solve unknown entity in HIbernate.i will try to run  my gwt-ext
apln the following error in shown.

ERROR:
---
org.hibernate.MappingException: Unknown entity: java.lang.String

This my xml configuration,
---

property name=address type=java . lang .String column=address
insert=true update=true unique=false lazy=false length=30/


This is My Bean
---

private  java.lang.String address;

can i include to add any  property in  this xml file or bean?

i need quick Reply..
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Your opinion sought: Jetty or Tomcat?

2008-10-14 Thread Jason Morris

I personally use Tomcat a lot more, mainly because it started as the reference 
implementation (though I know it no longer technically holds that position). 
The 
few times I've wanted to use Jetty I've had to switch back to Tomcat due to 
lack 
of system admin knowledge (ie: the various admins I was working with didn't 
know 
it).

That all said, I almost never use Hosted Mode, and system admins don't have to 
deal with a development time engine. Tomcat does have much better IDE support 
than Jetty, but since Hosted Mode is in charge of that, again it makes no real 
difference. When I do run Hosted Mode it's with the -noserver option.

So my end opinion: I think the change is a good idea, since the additional 
speed 
and lower memory load will encourage people trying out GWT for the first time.

Tim wrote:
 jetty is awesome.
 
 In their latest drop (6.1.12.rc2 and rc3) there is a new feature in
 maven-jetty-plugin to reload jetty on keyboard events in console
 rather than automatically - it's indispensable when java GWT code
 lives in the same source tree as the server side java code (just in
 different package). And generally, maven jetty plugin is way better
 than Cargo stuff that's used for Tomcat.
 
 Also, Jetty Continuations are just some much easier to work with than
 Tomcat's Comet. No wonder they are including it into Servlet spec 3.0.
 
 Nothing particularly wrong with Tomcat but I think it's just lagging
 in terms of developer productivity features behind Jetty.
 
 
 On Oct 13, 9:42 pm, Michael Vogt [EMAIL PROTECTED] wrote:
 Hi Bruce.

 As part of this effort, we've all but decided to switch the hosted mode
 embedded HTTP server from Tomcat to Jetty. Would this break you? (And if so,
 how mad would you be if we did it anyway?) We figure most people who really
 care about the web.xml and so on are already using -noserver to have full
 control over their server config.
 I personally would welcome Jetty. I'm using it as part of Grails right
 now. It's fast and easy going.

 Cheers,
 Michael
  
 


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



Re: Using Selenium for GWT tests.

2008-10-14 Thread siva

Thanks for the information and references to your blogs, Dan. Really
helps.

If somebody is looking for a way to set ids to GWT widgets
UIObject.ensureDebugId(Element, String) is supported starting GWT 1.5
which greatly helps in integration with Selenium using object
identifiers. The best part is it results in no compiled code in
production environment.

You would also like to to have a look at onEnsureDebugId

-Siva.

On Oct 10, 7:36 am, dan [EMAIL PROTECTED] wrote:
 Hi Siva,

 I used Selenium on a project to do integration tests of a GWT
 application; it worked pretty well.  We didn't run the tests in hosted
 mode, we ran the tests in web mode deployed to our application
 server.  The trick was remembering to use the waitFor Selenium
 commands to avoid tests intermittently failing due to race conditions
 -- this is true for all Ajax applications.

 As for testing an application, if you're talking about unit tests,
 I've written an article on writing GWT applications test-first that
 will appear in the November 2008 issue of Better Software.

 This is an excellent blog post on GWT 
 TDD:http://robvanmaris.jteam.nl/2008/03/09/test-driven-development-for-gw...

 I've written a blog post about how and when (and why you shouldn't)
 test GWT 
 widgets:http://blog.danielwellman.com/2008/06/strategies-for-testing-gwt-widg...

 I think GWT 1.5 also includes a special testing mode designed for
 testing with tools like Selenium that allows you to generate
 repeatable DOM IDs for widgets.

 Hope this information helps,

 Cheers,
 Dan

 On Oct 8, 9:56 am, siva [EMAIL PROTECTED] wrote:

  Hi

  I'm a novice to GWT and evaluating it for one of the new projects.
  Selenium looks interesting as a testing solution but looks more of a
  integration test solution. Can we use selenium to unit test our code
  and have them run in GWT hosted mode ?

  Are there any good tutorials/articles which talk about integrating
  Selenium with GWT ?

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



Re: Deferred binding result type gone after refresh in hosted mode

2008-10-14 Thread Ivo

I'm bumping this discussion, in the hopes that someone who has a clue
about the problem sees it.

Best regards,
--
Ivo
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Your opinion sought: Jetty or Tomcat?

2008-10-14 Thread Fred Janon
I use Tomcat for all our customer deployments and as a server to host the
development. If Tomcat is used as the server for development, there are
probably less chances that something would not work when deployed. I am not
sure of how popular is Jetty for real deployments compared to Tomcat, but I
have the feeling that Tomcat is ahead of Jetty. The startup time in
development mode is not really important for me, considering that there are
not that many cases where the server needs to be restarted. We don't use any
specific feature to a particular server, so Comet or continuations are not
in the balance. A few weeks ago I deployed successfully a GWT app on Tomcat
on a Windows server in about 30 mins. It still took me about 1 day to do the
same on Ubuntu, not because of GWT, but because of the way Tomcat is
configured by default on Ubuntu. Since it was the same server from beginning
to end, I had less to investigate. If it was another server engine, I would
have doubts on many more configuration issues.

I am looking at the Widgets and the incubator and I wish a lot more work was
done there. Lots of customers and developers have ext on their lips, I'd
like to see more development in that area. The ScrollTable is hardly usable
at the moment. And some comments have been there with no response
http://code.google.com/p/google-web-toolkit-incubator/wiki/ScrollTable

=
Comment by di.zhao http://code.google.com/u/di.zhao/, Oct 01, 2008

Hi, this is pretty nice widget. For those who is puzzled by the demo not
working in Firefox. I would suggest you to download the latest source code
and run it locally. The
ScrollTablehttp://code.google.com/p/google-web-toolkit-incubator/wiki/ScrollTableworks
nicely in both Firefox/Chrome  IE.

One question though, will column drag and drop be supported in the future?
  Comment by [EMAIL PROTECTED]http://code.google.com/u/@VRFTQFdRDxdFWAJ1/,
Oct 07 (6 days ago)

Please can someone update the docs and example. This is a brilliant widget
but in this state its almost unusable :(

==
 The more I use GWT and the more I love it, I think it's a brilliant idea
and implementation (I still have to find a bug in it!), but my priorities
are not in the server startup time.

In summary the current use of Tomcat is pretty good, why change and spend
time and $$$ instead of spending time on other nice features? If it ain't
broken, why fix it?

But if you are already all decided then...

Fred

On Tue, Oct 14, 2008 at 14:53, Jason Morris [EMAIL PROTECTED] wrote:


 I personally use Tomcat a lot more, mainly because it started as the
 reference
 implementation (though I know it no longer technically holds that
 position). The
 few times I've wanted to use Jetty I've had to switch back to Tomcat due to
 lack
 of system admin knowledge (ie: the various admins I was working with didn't
 know
 it).

 That all said, I almost never use Hosted Mode, and system admins don't have
 to
 deal with a development time engine. Tomcat does have much better IDE
 support
 than Jetty, but since Hosted Mode is in charge of that, again it makes no
 real
 difference. When I do run Hosted Mode it's with the -noserver option.

 So my end opinion: I think the change is a good idea, since the additional
 speed
 and lower memory load will encourage people trying out GWT for the first
 time.

 Tim wrote:
  jetty is awesome.
 
  In their latest drop (6.1.12.rc2 and rc3) there is a new feature in
  maven-jetty-plugin to reload jetty on keyboard events in console
  rather than automatically - it's indispensable when java GWT code
  lives in the same source tree as the server side java code (just in
  different package). And generally, maven jetty plugin is way better
  than Cargo stuff that's used for Tomcat.
 
  Also, Jetty Continuations are just some much easier to work with than
  Tomcat's Comet. No wonder they are including it into Servlet spec 3.0.
 
  Nothing particularly wrong with Tomcat but I think it's just lagging
  in terms of developer productivity features behind Jetty.
 
 
  On Oct 13, 9:42 pm, Michael Vogt [EMAIL PROTECTED] wrote:
  Hi Bruce.
 
  As part of this effort, we've all but decided to switch the hosted mode
  embedded HTTP server from Tomcat to Jetty. Would this break you? (And
 if so,
  how mad would you be if we did it anyway?) We figure most people who
 really
  care about the web.xml and so on are already using -noserver to have
 full
  control over their server config.
  I personally would welcome Jetty. I'm using it as part of Grails right
  now. It's fast and easy going.
 
  Cheers,
  Michael
  
 


 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this 

error inheriting own module (No source code is available)

2008-10-14 Thread pepgrifell

hi,

I have created a module with some classes needed in client side and
server side but GWT 1.5.2 compatible. When I inherit this module in
another module, I get this error:

No source code is available for type Class1

In the other module I add:
inherits name=aaa.bbb.MyModule /

The structure of the module is:

aaa/bbb/MyModule.gwt.xml
aaa/bbb/ccc/ddd/Class1.java
aaa/bbb/ccc/ddd/Class2.java
aaa/bbb/ccc/eee/Class3.java
aaa/bbb/ccc/eee/Class4.java
...

MyModule.gwt.xml:
module
   source path=ccc/
/module

I read that the paths specified in the source tag are relative to
the location of the
Module.gwt.xml file.

http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/6575695c4995899/c0edc5b69741e707?lnk=gstq=%22source+path%22#c0edc5b69741e707


I tried as well with this definition but it's not working
module
   source path=ccc/ddd/
   source path=ccc/ddd/
/module

I create a Jar with the source and compiled classes and with the
gwt.xml file. I add this jar to the classpath used by the GWTCompiler.

any help?

Thanks !

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



Re: Problem with tomcat

2008-10-14 Thread jamer

Ok, thank you
But if i use the javax library??

Pd:My english so it is horrible

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



Re: how to call RPC from an HTMLPanel's content anchor

2008-10-14 Thread walden

The HTML* widgets are basically tunneling HTML through GWT.  Don't use
them for anything but the simplest non-extensible non-event-enabled
stuff.

If you will say what elements your have built through these widgets,
you will get more focused advice on how to implement them in a way
that makes GWT pleasant and productive.

Walden

On Oct 14, 6:07 am, Tanzeem [EMAIL PROTECTED] wrote:
 Hi

 Can anyone help me with  a sample code for the following

 i have a HTMLPanel with its contents as HTML including a javascript
 function onClick() from which i expect to call an RPC. Is this
 possible? If ny solutions please help 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Your opinion sought: Jetty or Tomcat?

2008-10-14 Thread El Mentecato Mayor

I think it is broken in the sense that it does take a lot of time to
get the app running when in development mode (and hosted mode), or at
least more time that I would like it to.

I would welcome Jetty if that improves the performance. I have nothing
specific to tomcat so far, so nothing should be broken. I actually use
Jetty to deploy and test the application quickly in web mode.


On Oct 14, 3:44 am, Fred Janon [EMAIL PROTECTED] wrote:
 I use Tomcat for all our customer deployments and as a server to host the
 development. If Tomcat is used as the server for development, there are
 probably less chances that something would not work when deployed. I am not
 sure of how popular is Jetty for real deployments compared to Tomcat, but I
 have the feeling that Tomcat is ahead of Jetty. The startup time in
 development mode is not really important for me, considering that there are
 not that many cases where the server needs to be restarted. We don't use any
 specific feature to a particular server, so Comet or continuations are not
 in the balance. A few weeks ago I deployed successfully a GWT app on Tomcat
 on a Windows server in about 30 mins. It still took me about 1 day to do the
 same on Ubuntu, not because of GWT, but because of the way Tomcat is
 configured by default on Ubuntu. Since it was the same server from beginning
 to end, I had less to investigate. If it was another server engine, I would
 have doubts on many more configuration issues.

 I am looking at the Widgets and the incubator and I wish a lot more work was
 done there. Lots of customers and developers have ext on their lips, I'd
 like to see more development in that area. The ScrollTable is hardly usable
 at the moment. And some comments have been there with no 
 responsehttp://code.google.com/p/google-web-toolkit-incubator/wiki/ScrollTable

 =
 Comment by di.zhao http://code.google.com/u/di.zhao/, Oct 01, 2008

 Hi, this is pretty nice widget. For those who is puzzled by the demo not
 working in Firefox. I would suggest you to download the latest source code
 and run it locally. The
 ScrollTablehttp://code.google.com/p/google-web-toolkit-incubator/wiki/ScrollTableworks
 nicely in both Firefox/Chrome  IE.

 One question though, will column drag and drop be supported in the future?
   Comment by [EMAIL PROTECTED]http://code.google.com/u/@VRFTQFdRDxdFWAJ1/,
 Oct 07 (6 days ago)

 Please can someone update the docs and example. This is a brilliant widget
 but in this state its almost unusable :(

 ==
  The more I use GWT and the more I love it, I think it's a brilliant idea
 and implementation (I still have to find a bug in it!), but my priorities
 are not in the server startup time.

 In summary the current use of Tomcat is pretty good, why change and spend
 time and $$$ instead of spending time on other nice features? If it ain't
 broken, why fix it?

 But if you are already all decided then...

 Fred

 On Tue, Oct 14, 2008 at 14:53, Jason Morris [EMAIL PROTECTED] wrote:

  I personally use Tomcat a lot more, mainly because it started as the
  reference
  implementation (though I know it no longer technically holds that
  position). The
  few times I've wanted to use Jetty I've had to switch back to Tomcat due to
  lack
  of system admin knowledge (ie: the various admins I was working with didn't
  know
  it).

  That all said, I almost never use Hosted Mode, and system admins don't have
  to
  deal with a development time engine. Tomcat does have much better IDE
  support
  than Jetty, but since Hosted Mode is in charge of that, again it makes no
  real
  difference. When I do run Hosted Mode it's with the -noserver option.

  So my end opinion: I think the change is a good idea, since the additional
  speed
  and lower memory load will encourage people trying out GWT for the first
  time.

  Tim wrote:
   jetty is awesome.

   In their latest drop (6.1.12.rc2 and rc3) there is a new feature in
   maven-jetty-plugin to reload jetty on keyboard events in console
   rather than automatically - it's indispensable when java GWT code
   lives in the same source tree as the server side java code (just in
   different package). And generally, maven jetty plugin is way better
   than Cargo stuff that's used for Tomcat.

   Also, Jetty Continuations are just some much easier to work with than
   Tomcat's Comet. No wonder they are including it into Servlet spec 3.0.

   Nothing particularly wrong with Tomcat but I think it's just lagging
   in terms of developer productivity features behind Jetty.

   On Oct 13, 9:42 pm, Michael Vogt [EMAIL PROTECTED] wrote:
   Hi Bruce.

   As part of this effort, we've all but decided to switch the hosted mode
   embedded HTTP server from Tomcat to Jetty. Would this break you? (And
  if so,
   how mad would you be if we did it anyway?) We figure most people who
  really
   care about the web.xml and so on are already using 

Re: GWT + iText + Eclipse Problem

2008-10-14 Thread prof3ta

The content type is correctly set from the server, as I can see from
the firebug logs.
If I make the browser pointing to the correct address, the pdf open/
save dialog is showed and everything works fine.
But, if I make a request from within gwt, the callback mechanism seems
to override the normal behaviour of the browser.
Do you know if it is possible to make a standard HTTP request from gwt
without using callbacks?

On Oct 14, 1:48 pm, Paul Robinson [EMAIL PROTECTED] wrote:
 Security prohibits javascript from direct access to the filesystem.

 You could make the same HTTP response you get when downloading a file
 from any web server, so the browser (rather than javascript) shows the
 save pop-up. You should probably set the mime type (Content-Type) and
 Content-Disposition fields in the http response header.

 Whether you can do this with RequestBuilder or not, I don't know.

 prof3ta wrote:
  Ok, I'm creating the PDF file in the server.
  I'm using a HTTP POST request (through the RequestBuilder object) to
  get the file in the client.
  The problem now is that I can just see the content of the file in the
  callback function as a string, but I'm not able to write this string
  into the file system, since I cannot use the standard java libraries
  for writing files for the same reason as above.
  I'd like to get the usual open/save file window dialog in my gwt
  application when getting the HTTP response.
  Any hint?

  On Oct 14, 10:49 am, Paul Robinson [EMAIL PROTECTED] wrote:

  Yes. Do it in the server.

  prof3tawrote:

  So, any hint on how to generate a pdf file withi gwt?

  On Oct 14, 10:32 am, Paul Robinson [EMAIL PROTECTED] wrote:

  GWT compiles java into javascript client-side. That means you can't use
  any old java library in the client, only translatable java.

  prof3tawrote:

  Pardon me, Dean. What do you mean with server-side library???
  That's java code, there should be no distinction between server and
  client.
  I tried to add the sources for the package and add them to the
  classpath, but no luck
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Possible bug with GWT or Java, but dont have the expirence to be sure myself :x

2008-10-14 Thread darkflame

Thanks for claifying that for me.
Its sort-of a relief to know my system is set up right, even if it
does mean putting a halt to this line of development.

Its still interesting that it works in IE7 under 1.6.0_05-b13 (at
least on an XP laptop), but sadly they dont seem to keep the sub-
versions up.

I also tested the beta version, but same problems.
Guess I'll just wait to see if Sun had an answer, I put an error
report in allthough not sure if they will test stuff with GWT.

On Oct 14, 9:47 am, Paul Robinson [EMAIL PROTECTED] wrote:
 The screenshot you posted yesterday showed a java -version from the
 command line with a runtime environment version 1.6.0_07-b06 and a
 hotspot version 10.0-b23.

 As it says here:http://java.sun.com/javase/6/webnotes/ReleaseNotes.html

 Included in JDK 6u7 is version 10.0 of the Java HotSpot Virtual Machine.

 Looks like you've successfully switched to the latest version, and it's
 still broken.

 BTW - your by-section fade doesn't work in IE7 either. Just chewed up
 all my cpu time and had to kill IE



 darkflame wrote:
  Just done that, had to select the install folder manualy as it wasnt
  on the list, but then the _07 version appeared.

  Exact same problem, this time, however, the resulting error says;

  # Java VM: Java HotSpot(TM) Client VM (10.0-b23 mixed mode, sharing
  windows-x86)
  # Problematic frame:

  10.0-b23? Thats still wrong isnt it :-/

  Also, another observation, is that the error only happens if the
  screen is being watched. If its not visible (eg, alt-tabed onto
  another window), it keeps going till you flick back and then it
  crash's.
  Potentialy its something wrong with the screen update itself.

  On Oct 13, 6:42 pm, Paul Robinson [EMAIL PROTECTED] wrote:

  You can have any number of versions of java installed. From the windows
  command prompt, whichever is first in your PATH environment variable is
  the one that will be used (and if you never add java to your PATH, then
  you will get the last one to be installed since it drops a java.exe in
  system32).

  In eclipse, you choose the JRE in Run Configurations-JRE

  Thomas Wrobel wrote:

  Thats strange, as thats what Command.com said when I type java -version

  I have just updated anyway to this version;
 http://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Si...
  (which the release notes says is _07)

  But I it still dosnt work, and is still seems to be confused over the 
  versions;
 http://www.cuyperscode.com/CuypersCode2_WIP/test%20folder/dual.jpg

  Is it possible I somehow have two versions installed :?
  Maybe the route of the problem is something really weird with my java
  installation.

  2008/10/13 Paul Robinson [EMAIL PROTECTED]:

  Your error message indicates you were using 1.6.0_03

  darkflame wrote:

  I have heard from someone using Java 1.6.0_05 that it works fine.  It
  seems the _07 update (which I was on) is causing the problems.

  On Oct 13, 5:00 pm, darkflame [EMAIL PROTECTED] wrote:

  Yes, try this in 
  IE;http://www.cuyperscode.com/CuypersCode2_WIP/test%20folder/TestProject...
  Press Button2 to test the simple fade, Button1 to start the by-section
  fade out.

  crash's IE6 at the same point the crash happens in hosted.
  (the by-section fade out dosnt work at all in Firefox or Opera...but
  that might be my code)

  On Oct 13, 4:53 pm, alex.d [EMAIL PROTECTED] wrote:

  What about Web-mode? Any problems there?

  On 13 Okt., 16:44, darkflame [EMAIL PROTECTED] wrote:

  I have been expirementing developing a transition effect in GWT,
  that is made by fadeing out a 10x10 array of images in sequence.
  The fade's, individualy, work ok. But if more then one is attempted 
  at
  a time I get this;

  #
  # An unexpected error has been detected by Java Runtime Environment:
  #
  #  EXCEPTION_ACCESS_VIOLATION (0xc005) at pc=0x77f9d45a, 
  pid=2388,
  tid=2212
  #
  # Java VM: Java HotSpot(TM) Client VM (1.6.0_03-b05 mixed mode,
  sharing)
  # Problematic frame:
  # C  [ntdll.dll+0x1d45a]
  #
  # An error report file with more information is saved as
  hs_err_pid2388.log
  #
  # If you would like to submit a bug report, please visit:
  #  http://java.sun.com/webapps/bugreport/crash.jsp
  #

  In my eclipse window.
  This is the first time have had this sort of problem, and it seems to
  point to a problem with Java itself no?
  My code is relatively simple, using the

                                  Style style = 
  ThisImage.getElement().getStyle();
                                  style.setProperty(filter, 
  alpha(opacity=+opacity+));
                                  style.setProperty(opacity, 
  +(opacity/100));

  Techique in a timer on an extended image object to trigger the fade,
  and then a loop triggering the fades in sequence.
  If I just detach rather then fade, it works. (and also makes a nice
  transition...), but as soon as the fader is used, I get the above
  crash notice.

  I have logged at the log file and cant make 

-noserver 1.5 RPC Help

2008-10-14 Thread Christopher Venning

I cannot seem to get the -noserver mode working with RPCs.  I got it
to work in 1.4 but have changed environments in the last year.  There
don't appear to be any Group postings about getting it going since 1.5
was released.  Bruce Johnson's original posting (http://
groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/
338c4b765d7dfc39) doesn't appear to be the 1.5-supported method, based
on the current Developer's Guide (yes, I tried it anyways and
failed).  Working off of 
http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5t=FAQ_HostedModeNoServer,
Hosted Mode hooks in appropriately (changing Java code and refreshing
the Hosted Browser changes content).  However, the RPCs fail.  I am
probably doing something dumb, and would appreciate someone pointing
that out.


Relevant Environment: GWT 1.5.2, Eclipse 3.4.0, Tomcat 5.5.27, jdk
1.6u7, XP SP3

Relevant Error
---
Throwable type:
  - com.google.gwt.user.client.rpc.StatusCodeException
Message content:
  - html page from external Tomcat (has been confirmed)
  - 404 report
  - description: The requested resource (/ServerTest/testService) is
not available.

Relevant module code
---
from TestService.java (extends RemoteService):
@RemoteServiceRelativePath(/testService)

from ServerTest.gwt.xml:
servlet path=/testService class=org.server.TestServiceImpl /

from ServerTest.launch (arguments):
-noserver http://localhost:8080/ServerTest/ServerTest.html

Sum Total of changes to Tomcat
---
created %TOMCAT_HOME%/webapps/ServerTest
copied into that directory (from compilation):
  - clear.cache.gif
  - history.html
  - hosted.html
  - org.ServerTest.nocache.js
  - ServerTest.html
  - 5BA8A5B3E35F40698BB0BF65F390BCF2.gwt.rpc
  - 9DA92932034707C17CFF15F95086D53F.cache.png
  - 548CDF11D6FE9011F3447CA200D7FB7F.cache.png
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Google Maps API Library for GWT 1.0 Release Candidate 1 now available

2008-10-14 Thread ben

I know you probably may not know, but is there an expected release
date for an official (non RC) version?  My company has a policy to
only use products that are an official release.  I'm trying to
determine at what point we might put in the request to start using the
maps api.  It should be exactly what we want!  Thanks for all the hard
work you all do.  I looked at the issue tracker, and it seems like
almost everything has been addressed.  Will more be added?

Thanks

On Sep 23, 8:24 am, Eric Ayers [EMAIL PROTECTED] wrote:
 We're happy to say that the first Release Candidate for the Google Maps API
 Library for Google Web Toolkit
 http://code.google.com/p/gwt-google-apis/is now ready to be taken
 for a test drive.  The Maps library provides a way
 to access the Google Maps API from a GWT project without having to write
 additional JavaScript code.  The library gives you full control using the
 standard Maps components such as InfoWindows, Markers, MapTypes, and
 Geocoding.  You can even use advanced features such as adding GWT widgets to
 the Map, creating custom overlays, custom map types, and other components.
  The Google API Libraries for GWT
 http://code.google.com/p/gwt-google-apisproject is a collection of
 libraries that provide Java language bindings and
 API specific plumbing for some Google JavaScript APIs. The goal is to make
 it easy for developers to use these JavaScript APIs with GWT.  This release
 of the Maps http://code.google.com/apis/maps library complements the
 recent release candidates for the  Gearshttp://code.google.com/apis/gears/,
 Gadgets http://code.google.com/apis/gadgets/ and the Google AJAX
 Searchhttp://code.google.com/apis/ajaxsearchAPIs.  With this set of
 release candidates, each library is now distributed
 separately so that you can
 downloadhttp://code.google.com/p/gwt-google-apis/downloads/only the
 specific library you are interested in.

 We encourage you to try these release candidates out and give us feedback,
 either through the issue
 trackerhttp://code.google.com/p/gwt-google-apis/issues/liston
 code.google.com, or through the
 Google-Web-Tolkithttp://groups.google.com/group/Google-Web-Toolkitor
 Google-Web-Toolkit-Contributorshttp://groups.google.com/group/Google-Web-Toolkit-Contributorsgroup.
 - The Google API Libraries for GWT Team
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: -noserver 1.5 RPC Help

2008-10-14 Thread Isaac Truett
You're use GWT RPC, which means you have a RemoteServiceServlet somewhere
that implements the server side of that RPC service. You need to compile
that servlet to a Java .class file and deploy it to your web server. You
also need a web.xml file to map request URLs to your servlet.


On Tue, Oct 14, 2008 at 12:55 PM, Christopher Venning 
[EMAIL PROTECTED] wrote:




 On Oct 14, 12:53 pm, Isaac Truett [EMAIL PROTECTED] wrote:
  Did you deploy your compiled servlet? I don't see it listed in the stuff
 you
  copied to tomcat/webapps/ServerTest.

 What do you mean compiled servlet?

 


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



Re: -noserver 1.5 RPC Help

2008-10-14 Thread Ian Petersen

On Tue, Oct 14, 2008 at 12:34 PM, Christopher Venning
[EMAIL PROTECTED] wrote:
 Relevant module code
 ---
 from TestService.java (extends RemoteService):
 @RemoteServiceRelativePath(/testService)

I don't know what difference it makes, but my
@RemoteServiceRelativePath doesn't have a leading /.

 from ServerTest.gwt.xml:
 servlet path=/testService class=org.server.TestServiceImpl /

I'm _pretty_ sure this is a red herring that should be removed.  Your
module descriptor doesn't have any impact on the configuration of an
external servlet container.

 from ServerTest.launch (arguments):
 -noserver http://localhost:8080/ServerTest/ServerTest.html

This looks fine to me.

 Sum Total of changes to Tomcat
 ---
 created %TOMCAT_HOME%/webapps/ServerTest
 copied into that directory (from compilation):
  - clear.cache.gif
  - history.html
  - hosted.html
  - org.ServerTest.nocache.js
  - ServerTest.html
  - 5BA8A5B3E35F40698BB0BF65F390BCF2.gwt.rpc
  - 9DA92932034707C17CFF15F95086D53F.cache.png
  - 548CDF11D6FE9011F3447CA200D7FB7F.cache.png

The fact that you have *.gwt.rpc in there along with the rest of your
stuff is good--after reading the subject but before reading the body
of your message, I was going to guess that you were missing that file.
 If you get Tomcat to respond to the RPC request but it throws errors
complaining about missing serialization policies, make sure you're
using an up-to-date *.gwt.rpc file.

Ian

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



Re: -noserver 1.5 RPC Help

2008-10-14 Thread Isaac Truett
You'll want to set yourself up with a proper build process. I suggest Ant.
It's simple, powerful, and there are a number of examples you can borrow
from this forum. Have your Ant script build a .war file and copy it to your
tomcat/webapps directory. Tomcat's default configuration is to automatically
deploy any .war it finds in webapps. No server restart required.



On Tue, Oct 14, 2008 at 1:18 PM, Christopher Venning 
[EMAIL PROTECTED] wrote:


 Thank you very much.

 For posterity: I compiled the my.module.server package (with
 dependencies) and exported to %TOMCAT_HOME%/webapps/ServerTest/WEB-INF/
 lib, where I also copied gwt-servlet.jar (a dependency) from
 GWT_HOME.  I also created the WEB-INF/web.xml file with the servlet
 mapping.

 Now, I understand the web.xml and dependencies need to be updated with
 service changes, but this method also means that changing server-side
 code requires a server restart (which embedded-serer Hosted Mode
 requires anyways) along with a newly-minted server-side code extract.
 Don't get me wrong, you're my new favorite person, I just want to make
 sure this is the best option.  Am I correct?


 On Oct 14, 1:01 pm, Isaac Truett [EMAIL PROTECTED] wrote:
  You're use GWT RPC, which means you have a RemoteServiceServlet somewhere
  that implements the server side of that RPC service. You need to compile
  that servlet to a Java .class file and deploy it to your web server. You
  also need a web.xml file to map request URLs to your servlet.
 
  On Tue, Oct 14, 2008 at 12:55 PM, Christopher Venning 
 
  [EMAIL PROTECTED] wrote:
 
   On Oct 14, 12:53 pm, Isaac Truett [EMAIL PROTECTED] wrote:
Did you deploy your compiled servlet? I don't see it listed in the
 stuff
   you
copied to tomcat/webapps/ServerTest.
 
   What do you mean compiled servlet?
 


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



Re: DisclosurePanel

2008-10-14 Thread gregor

can you post a code snippet for this?

On Oct 14, 11:31 am, jamer [EMAIL PROTECTED] wrote:
 Hi group
 i create a Widget with a disclosurePanel, and this head it is a other
 widget with button. The problem is that when i press the button the
 disclosurepanel open or close, but i don't like it.
 I like that the disclosurepanel open or close only when the user click
 in the header not in the button's header
 How do you it?

 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: -noserver 1.5 RPC Help

2008-10-14 Thread Christopher Venning

Will do.  As an aside, does the Documentation need to be more explicit
about this or am I the exception here?  If so, I can submit a change,
if documentation updates are something non-Google contributors are
allowed.  Any moderators listening?

Thank you again for your assistance.


On Oct 14, 1:34 pm, Isaac Truett [EMAIL PROTECTED] wrote:
 You'll want to set yourself up with a proper build process. I suggest Ant.
 It's simple, powerful, and there are a number of examples you can borrow
 from this forum. Have your Ant script build a .war file and copy it to your
 tomcat/webapps directory. Tomcat's default configuration is to automatically
 deploy any .war it finds in webapps. No server restart required.

 On Tue, Oct 14, 2008 at 1:18 PM, Christopher Venning 

 [EMAIL PROTECTED] wrote:

  Thank you very much.

  For posterity: I compiled the my.module.server package (with
  dependencies) and exported to %TOMCAT_HOME%/webapps/ServerTest/WEB-INF/
  lib, where I also copied gwt-servlet.jar (a dependency) from
  GWT_HOME.  I also created the WEB-INF/web.xml file with the servlet
  mapping.

  Now, I understand the web.xml and dependencies need to be updated with
  service changes, but this method also means that changing server-side
  code requires a server restart (which embedded-serer Hosted Mode
  requires anyways) along with a newly-minted server-side code extract.
  Don't get me wrong, you're my new favorite person, I just want to make
  sure this is the best option.  Am I correct?

  On Oct 14, 1:01 pm, Isaac Truett [EMAIL PROTECTED] wrote:
   You're use GWT RPC, which means you have a RemoteServiceServlet somewhere
   that implements the server side of that RPC service. You need to compile
   that servlet to a Java .class file and deploy it to your web server. You
   also need a web.xml file to map request URLs to your servlet.

   On Tue, Oct 14, 2008 at 12:55 PM, Christopher Venning 

   [EMAIL PROTECTED] wrote:

On Oct 14, 12:53 pm, Isaac Truett [EMAIL PROTECTED] wrote:
 Did you deploy your compiled servlet? I don't see it listed in the
  stuff
you
 copied to tomcat/webapps/ServerTest.

What do you mean compiled servlet?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



How to disable a disclosure panel

2008-10-14 Thread Iván

Hello,

I'm trying to disable a disclosure panel in order not to open it when
I click on the header, but I don't know how to do that. I've try to
set the header with a button and a label and hide the button but if I
click on the label the disclosure panel is open.

Is there any way to disable (and enable again) the open/close action
in a DisclosurePanel?.

Thanks a lot.

Regards, Iván.

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



Atom and Rss feeds not working

2008-10-14 Thread [EMAIL PROTECTED]

The feeds don't work:

This feed does not validate.

*

  line 306, column 244: XML parsing error: unknown:306:244: not
well-formed (invalid token) [help]

  ... he real parameter. lt;brgt; lt;pgt;4�0�5�lt;a
target=quot;_blankq ...
   ^

In addition, interoperability with the widest range of feed readers
could be improved by implementing the following recommendation.

*

  line 236, column 312: description contains bad characters [help]

  ... NFO: Repliegue (undeploy) de la aplicaci?n web que tiene
como lt;brgt; ...



see
http://validator.w3.org/feed/check.cgi?url=http%3A%2F%2Fgroups.google.com%2Fgroup%2FGoogle-Web-Toolkit%2Ffeed%2Frss_v2_0_msgs.xml%3Fnum%3D50

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



rpc error

2008-10-14 Thread Ryan

Hi,
I'm trying to implement my gwt application with rpc service
I wrote a simple java application for testing, it does simple String
message passing from server to client
But it doesn't work and return with
'com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException'
error.
I have no idea how to fix it...please HELP an with big THANKS!!

--
HelloWorld.java
--
public class HelloWorld implements EntryPoint {
private String strMsg = ;

public void onModuleLoad() {
final HelloServiceAsync helloService = (HelloServiceAsync)
GWT.create(HelloService.class);
ServiceDefTarget target = (ServiceDefTarget) helloService;
String moduleRelativeURL = GWT.getModuleBaseURL() + hello;
target.setServiceEntryPoint(moduleRelativeURL);

final AsyncCallbackString callback = new 
AsyncCallbackString()
{
public void onSuccess(String result) {
String temp = result;
strMsg = temp;
}
public void onFailure(Throwable caught) {
strMsg = error happened...;
}
};
helloService.getMessage(callback);

(other gui codes here)
}
}


HelloService.java

public interface HelloService extends RemoteService {
public String getMessage();
}

-
HelloServiceAsync.java
-
public interface HelloServiceAsync {
public void getMessage(AsyncCallbackString callback);
}

--
HelloServiceImpl.java
--
public class HelloServiceImpl extends RemoteServiceServlet implements
HelloService {

public String getMessage() {
String temp = I am server;
return temp;
}
}

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



Late-loading parts of a GWT app

2008-10-14 Thread jared

I've seen a number of threads about GWT apps that are comprised of
multiple modules. Because the modules are compiled separately, though,
there's no code reuse between them.

If we could give the GWTCompiler all of our modules at once and
specify the load order constraints that we'll enforce, then it should
be able to avoid duplicating code from earlier modules in later
modules. This way our app can have lots of great but rarely-used
functionality that users don't have to wait to load up front.

Would others like this? Is it in the works?

Jared

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



Re: Problem running GWTComplier in an ant script

2008-10-14 Thread Stefan Schwarzbach

I had exactly the same problem.
Adding the fork=true parameter to the java command solved this
problem for me. Don't know why, but it seems to work now.

On 11 Sep., 15:45, walden [EMAIL PROTECTED] wrote:
 By the way, where are your source files?  Within the module, the
 default source path is client/*, unless you have overridden that in
 your module xml file.

 On Sep 11, 3:29 am, Ryan [EMAIL PROTECTED] wrote:

  hi everybody,

  I have this particular problem while running an ant script.
  When I try to run the gwt compiler in the ant script I get the
  following messages.

  [TRACE] Loading module 'com.x.y'
  [TRACE] Translatable source found in...
  [WARN] No source path entries; expect subsequent failures
  [INFO] Compiling module com.x.y
  [DEBUG] Computing all possible rebind results for 'com.a.client.AMain'
  [DEBUG] Rebinding com.a.client.AMain
  [DEBUG] Checking rule generate-with
  class='com.google.gwt.user.rebind.ui.ImageBundleGenerator'/
  [ERROR] Unable to find type 'com.a.client.AMain'
  [ERROR] Hint: Previous compiler errors may have made this type
  unavailable
  [ERROR] Hint: Check the inheritance chain from your module; it may not
  be inheriting a required module or a module may not be adding its
  source path entries properly
  [ERROR] Build failed

  Could anybody provide me any indicators as to how to solve this
  problem.
  If you need any more information Please do let me know

  regards,
  Cherry

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



GWT + Netbeans 6.1 + Multiple modules in one project

2008-10-14 Thread jh

Hi all,

does anyone know how to create GWT project in NetBeans 6.1 with
multiple modules in one project? So far, I was using the GWT4NB plug-
in which creates the template with all necessary files, but it only
supports one module in project.  I would appreciate some existing
example project with at least two modules in project. Especially, I
need the configuration files (mainly build-gwt.xml)

thanks

Jiri

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



RPC problem

2008-10-14 Thread Ryan

Hi group,

I'm writing a gwt-rpc application, it does simple String message
passing from server to client.
But I got a runtime error
com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException
and nothing can be received from the server.
I have no idea what is the reason of this error.
Does anyone has same experience?
Please teach me your solution.
Many Thanks!

Ryan

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



Deploy GWT Project to Tomcat

2008-10-14 Thread Michi_de

Hi!
I'm actually trying to deploy my very first GWT Project StockWatcher,
just like in the tutorial i found on googles website.
I can deploy my .war to the tomcat and visit the page. But when it
comes to servlets, the server is throwing exceptions.
So here is the code, i copied everything from the tutorial, so its
pretty much the same code, so i only will post here the intersting
parts:

in the stockwatcher.gwt.xml i mapped the servlet like this:
servlet path=/stockPrices
class=com.google.gwt.sample.stockwatcher.server.StockPriceServiceImpl /

I dont know why its /stockPrice and where this is leading to. But in
the tutorial there is one more file with this strange value:
StockPriceService.java in the .client package:

@RemoteServiceRelativePath(stockPrices)

So what i am actually doing here? I cant get through, why i post his.
The tutorial does not make this clear, imo.
Whats so ever: i run the project in eclipse: it works.
I compile the project: it works.

Now i try to create a .war file, first i copy all the files in /www/
myproject.something/ to another folder. In that folder i create a WEB-
INF with classes (inside no other folders, just the
StockPriceServiceImpl.class) and the lib (inside gwt-servlet.jar). And
here comes the web.xml (correctly saved in WEB-INF):
 servlet
   servlet-nameStockPriceService/servlet-name
   servlet-
classcom.google.gwt.sample.stockwatcher.server.StockPriceServiceImpl/
servlet-class
 /servlet
 !-- Standard Action Servlet Mapping --
 servlet-mapping
   servlet-nameStockPriceService/servlet-name
   url-pattern/stockPrices/url-pattern
 /servlet-mapping
/web-app

So the url-pattern is just the same, as it is in the .gwt.xml file /
stockPrices. And the servlet-class
com.google.gwt.sample.stockwatcher.server.StockPriceServiceImpl is
just the same as you would find it in my project ... (but the .class
file is directly saved in the /classes/StockPriceServiceImpl.class -
this is correctly folder? )

But when i deploy the .war file to tomcat. It just cant find the
servlet. I get HTTP Status 404 - Servlet StockPriceServiceImpl is not
available message.  :(
Maybe the Tomcat is wrong configured? Any 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Your opinion sought: Jetty or Tomcat?

2008-10-14 Thread Yegor

Whichever lets you release out-of-process hosted mode (OOPHM)
sooner :)

(I am using -noserver option anyway)

Thanks,

Yegor

On Oct 13, 4:48 pm, Bruce Johnson [EMAIL PROTECTED] wrote:
 Hi everyone,
 Hope you're enjoying 1.5.

 The GWT team has started putting together a 1.6 roadmap, which we'll publish
 as soon as we have it nailed down. Two of the areas we want to work on for
 1.6 are some improvements to hosted mode startup time and a friendlier
 output directory structure (something that looks more .war-like).

 As part of this effort, we've all but decided to switch the hosted mode
 embedded HTTP server from Tomcat to Jetty. Would this break you? (And if so,
 how mad would you be if we did it anyway?) We figure most people who really
 care about the web.xml and so on are already using -noserver to have full
 control over their server config.

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



GWT Session problem

2008-10-14 Thread mk

I use the following method to get session ID in my
[RemoteServiceServlet] class:
protected String getSessionId()
{
return getThreadLocalRequest().getSession().getId() ;
}
It used to work nicely. Then all of a sudden, it started returning a
different ID with every call. I use tomcat 6. I have tried switching
to the latest version of tomcat, then tried both IE6 and Firefox 3
with the same result. Any idea what the issue could be?
I understand that I could get and return the ID on the first call and
pass it back to the server as a parameter with each subsequent
request, but that's a lot of extra work and also defeats the purpose
of session management.
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



GWT and Firefox

2008-10-14 Thread Taff

Hi

I'm sure this has been raised before, however I'm new to the product
and can't find any threads on this

MY new app works fine in IE and not in Firefox.  For some reason the
app does not pick up the app stylesheet in firefox like it does in IE.

I've tried every which way, but to no avail.  Is there something I'm
missing.

Also I code on my mac at home and PC in the office and none of the
rendering seems to be that portable.

Any pointers would be much appreciated

Thanks

Andy

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



Re: Search API

2008-10-14 Thread Sumit Chandel
Hi Max,
You would have more luck finding answers relating to the Google Ajax Search
API by posting up on its official developer forum:

http://groups.google.com/group/Google-AJAX-Search-API

Hope that helps,
-Sumit Chandel

On Fri, Oct 10, 2008 at 10:14 AM, RichBrains [EMAIL PROTECTED] wrote:


 Hi all,

 I need your help, guys! I just installed Google AJAX API Search on my
 website and now I need to search in Belarus ONLY! Not just a domains
 with site:*.by condition, but in all country like google.com.by
 search. Is it possible???

 Thanks in adance,
 Max

 


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



Re: GChart: Can i have gray dotted gridlines and solid axes?

2008-10-14 Thread John Gunther

Sorry, you cannot style a client-side GChart's gridlines.

You can use the setGridColor method, which may help do part of what
you are looking for:

http://gchart.googlecode.com/svn/trunk/doc/com/googlecode/gchart/client/GChart.html#setGridColor%28java.lang.String%29

If you must have dotted gridlines, and don't mind a bit of extra work,
you can add a curve with a SymbolType of YGRIDLINE (or XGRIDLINE) add
points at the y-coordinates where you want to draw the gridlines, and
use setBorderStyle(dotted) on that curve, and appropriately change
its width, height, etc (basically, you will be drawing your own
gridlines via a special curve; since curves have more options, you can
get more varied gridlines).

Thanks for your question. If you think more gridline options are
needed, please consider submitting an issue to the GChart issue
tracker.

John C. Gunther
http://gchart.googlecode.com

On Oct 9, 11:59 pm, meng [EMAIL PROTECTED] wrote:
 Hi,

 I can't find ways to style the gridlines.I only find
 chart.getYAxis().setHasGridlines(true);

 can i have thin dotted gray gridlines  and thick solid dark Axes?

 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT1.4 and Loadrunner9.0

2008-10-14 Thread Isaac Truett
The reason *may* be that your server spontaneously combusted after the 39th
page load. I consider that unlikely, but I can't do more than guess until
you provide more information, such as the error message.


On Tue, Oct 14, 2008 at 10:05 AM, i-friends [EMAIL PROTECTED]wrote:


 Hi all
 Developed one web based application using GWT version 1.4. our QA team
 testing the application with mercury loadrunner version 9.0 - they are
 trying to load the opening page concurrently - application loading 39
 times after wards 40th time it is not loading and giving some error.
 kindly advise what may be the reason..

 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: error inheriting own module (No source code is available)

2008-10-14 Thread pepgrifell

Solved !!!

It was a problem with eclipse and not with GWT. It seems that ant
build file it was not refreshing properly (although I was refreshing
it...). After trying different things, I closed eclipe and opened it
and then it worked...

On 14 oct, 14:12, pepgrifell [EMAIL PROTECTED] wrote:
 hi,

 I have created a module with some classes needed in client side and
 server side but GWT 1.5.2 compatible. When I inherit this module in
 another module, I get this error:

 No source code is available for type Class1

 In the other module I add:
 inherits name=aaa.bbb.MyModule /

 The structure of the module is:

 aaa/bbb/MyModule.gwt.xml
 aaa/bbb/ccc/ddd/Class1.java
 aaa/bbb/ccc/ddd/Class2.java
 aaa/bbb/ccc/eee/Class3.java
 aaa/bbb/ccc/eee/Class4.java
 ...

 MyModule.gwt.xml:
 module
    source path=ccc/
 /module

 I read that the paths specified in the source tag are relative to
 the location of the
 Module.gwt.xml file.

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

 I tried as well with this definition but it's not working
 module
    source path=ccc/ddd/
    source path=ccc/ddd/
 /module

 I create a Jar with the source and compiled classes and with the
 gwt.xml file. I add this jar to the classpath used by the GWTCompiler.

 any help?

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



Re: GWT and Firefox

2008-10-14 Thread grasshopper

I am having exactly the same problem.

GWT 1.5, IF 7, FF 3

On Oct 14, 11:26 am, Taff [EMAIL PROTECTED] wrote:
 Hi

 I'm sure this has been raised before, however I'm new to the product
 and can't find any threads on this

 MY new app works fine in IE and not in Firefox.  For some reason the
 app does not pick up the app stylesheet in firefox like it does in IE.

 I've tried every which way, but to no avail.  Is there something I'm
 missing.

 Also I code on my mac at home and PC in the office and none of the
 rendering seems to be that portable.

 Any pointers would be much appreciated

 Thanks

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



Re: Google Maps API Library for GWT 1.0 Release Candidate 1 now available

2008-10-14 Thread Eric Ayers

Hi Ben,

The Maps API is currently in release candidate stage. After the RC1
release, I got a number of bugs reported which I've been busily
addressing.

I am working on a second RC for Maps soon.  If the bug reports slack
off, I expect to do the GA release a few weeks after.

-Eric.

On Tue, Oct 14, 2008 at 12:51 PM, ben [EMAIL PROTECTED] wrote:

 I know you probably may not know, but is there an expected release
 date for an official (non RC) version?  My company has a policy to
 only use products that are an official release.  I'm trying to
 determine at what point we might put in the request to start using the
 maps api.  It should be exactly what we want!  Thanks for all the hard
 work you all do.  I looked at the issue tracker, and it seems like
 almost everything has been addressed.  Will more be added?

 Thanks

 On Sep 23, 8:24 am, Eric Ayers [EMAIL PROTECTED] wrote:
 We're happy to say that the first Release Candidate for the Google Maps API
 Library for Google Web Toolkit
 http://code.google.com/p/gwt-google-apis/is now ready to be taken
 for a test drive.  The Maps library provides a way
 to access the Google Maps API from a GWT project without having to write
 additional JavaScript code.  The library gives you full control using the
 standard Maps components such as InfoWindows, Markers, MapTypes, and
 Geocoding.  You can even use advanced features such as adding GWT widgets to
 the Map, creating custom overlays, custom map types, and other components.
  The Google API Libraries for GWT
 http://code.google.com/p/gwt-google-apisproject is a collection of
 libraries that provide Java language bindings and
 API specific plumbing for some Google JavaScript APIs. The goal is to make
 it easy for developers to use these JavaScript APIs with GWT.  This release
 of the Maps http://code.google.com/apis/maps library complements the
 recent release candidates for the  Gearshttp://code.google.com/apis/gears/,
 Gadgets http://code.google.com/apis/gadgets/ and the Google AJAX
 Searchhttp://code.google.com/apis/ajaxsearchAPIs.  With this set of
 release candidates, each library is now distributed
 separately so that you can
 downloadhttp://code.google.com/p/gwt-google-apis/downloads/only the
 specific library you are interested in.

 We encourage you to try these release candidates out and give us feedback,
 either through the issue
 trackerhttp://code.google.com/p/gwt-google-apis/issues/liston
 code.google.com, or through the
 Google-Web-Tolkithttp://groups.google.com/group/Google-Web-Toolkitor
 Google-Web-Toolkit-Contributorshttp://groups.google.com/group/Google-Web-Toolkit-Contributorsgroup.
 - The Google API Libraries for GWT Team
 




-- 
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT 1.5 on Java 1.4

2008-10-14 Thread gregor

Hi CFS,

I think the biggest problem to look at is whether the GWT 1.5 RPC
mechanism uses Java 1.5 syntax server side (and since e.g. it
serializes generic collections, it must do). In which case your RPC
servlets probably won't run and you'd have to look at e.g. JSON to
communicate with the server. I don't believe you can't mix GWT 1.5 RPC
client side code with the 1.4 version of gwt-servlet.jar server side.

regards
gregor

On Oct 14, 11:14 am, CFS [EMAIL PROTECTED] wrote:
 Hi,

 Is it possible to run the server side part of an GWT 1.5 application
 in a Java 1.4 compliant container? (In particular it's a SAP WAS).

 If it's not possible to do it easily, is it possible to do it at all
 with some (reasonable) work?

 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Your opinion sought: Jetty or Tomcat?

2008-10-14 Thread Matt Bishop

Jetty +1

I am all for anything that speeds up hosted mode development.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GChart and Maven 2

2008-10-14 Thread John Gunther

Appreciate the complement.

I understand that a Maven2 repo makes it easier for Maven2 users to
include GChart as one of their project's libraries, but I have not a
clue as to how to set up a Maven2 repo.

So, unless its really easy to set up a repo if you've never used
Maven2 before, or unless someone who knows how to set up a repo
volunteers to do that (or to tell me how to do it) for Client-side
GChart, it won't happen any time soon (I've really got my hands full
right now trying to figure out how to properly integrate GWTCanvas'
capabilities into the product)

Sounds like a great idea, though, so please add it to the Client-side
GChart issue tracker.

John C. Gunther
http://gchart.googlecode.com


On Oct 9, 2:42 am, adamp [EMAIL PROTECTED] wrote:
 GChart looks really nice.  I'd like to use it in a project but don't
 see it - specifically 2.3 - on any of the maven 2 repositories out
 there.

 Will it be added to a repo soon?

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



Hiding a custom Widget and then showing does not work anymore

2008-10-14 Thread jfey

Hi all GWTficiondos

I am working on a rather complex environment (say OS) based on GWT. I
use a widget based on SimplePanel which owns the real widget to be
shown.

My problem is that after hiding that outer SimplePanel once i can not
get it to be shown any more at a later stage.

I show the widget with the following code:

child.setVisible (true);
this.setVisible (true);
setStyleAttribute (this.getElement (), visibility, );
setStyleAttribute (child.getElement (), visibility, );
child.setUserAttention (true);


Hiding:

child.setUserAttention (false);
//child.setVisible (false);
//this.setVisible (false);
setStyleAttribute (this.getElement (), visibility, hidden);
setStyleAttribute (child.getElement (), visibility, hidden);

If i hide again, the code in my widget runs (background process
display some info somewhere else) but the UE is now shown after
setvisible (true);. All the HTML ist there.

What do i miss here?


cheers


Jürgen




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



Re: Late-loading parts of a GWT app

2008-10-14 Thread jared

Thanks, Isaac! That's exactly the kind of code splitting I was looking
for. Can't wait for the next GWT release.

Here's are three related threads that I found in that forum, for the
curious:
http://groups.google.com/group/Google-Web-Toolkit-Contributors/browse_thread/thread/dec2308dd4e2e669/c70793ad9963ca54?lnk=gst#c70793ad9963ca54
http://groups.google.com/group/Google-Web-Toolkit-Contributors/browse_thread/thread/2ebaed0b9ce252bc/583d14417f6213e5?lnk=gst#583d14417f6213e5
http://groups.google.com/group/Google-Web-Toolkit-Contributors/browse_thread/thread/14b5d53ca229ed0f/b72ddd77ce29ad3c?lnk=gst#b72ddd77ce29ad3c

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



GWT + JSON + Server-side code....... RPC ???

2008-10-14 Thread Suri

Hey people,
I'm not sure if I understand this correctly and figured I could use
some help. I have an existing Java Struts based application that I'm
trying to integrate GWT as a module into. I created some simple client
code and wanted to make a call to the server side to see if it would
work fine. I was able to make a simple HTTP call and return and
display a string of data. Of course, the real world needs more
complicated data. I was reading about JSON to transferring objects and
figured I could use it.

1) now my first question/doubt is whether I'm using it right. From the
GWT docs reading it seemed like I should be sending a string of data
encoded as a JSON object/array and then process that at the client
side and display the information accordingly. So I did the following
to my server side class

import import com.google.gwt.json.client.*;

public class . {

public void method1()
{
  retrieve data from backend.returns a list of objects

  // to send data back to client //

JSONArray jsonArray = new JSONArray();

int index = 0;

while(iterator.hasNext())
{
  String s1 = list.next().getValue();
  String s2 = list.next().getAnotherValue();

  JSONObject jsonObject = new JSONObject();
  jsonObject.put(key1, JSONParser.parse(s1));
  jsonObject.put(key2, JSONParser.parse(s2));
  jsonArray.set(index++, jsonObject);
}

response.setContentType(text/xml);
response.setHeader(Cache-Control, no-cache);
response.getWriter().write(jsonArray.toString());
}


I see that this doesn't work and returns a 500 error back instead of
an expected response. Upon further investigation I saw that the code
kept failing right at the moment the JSONArray declaration is reached.
It compiles fine though.

My questions are

a) Is this a valid approach to how JSON is to be used within the GWT
toolkit and Java back end? If yes, what is wrong, if not what is the
correct solution to the problem?

b) On a different note, I was also reading about RPC and about the
serializable types that it would pass across and so on. I use XmlBeans
and figured I could just as well use the bean (or a collection of
beans) and pass it to the client using RPC calls where it would be
processed. Is that even possible?

Thanks

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



Re: Question about racing condition with refresh in linux.

2008-10-14 Thread shaselai

Hi kozura,
That is almost exactly what i am doing:

public class Mypage {
Listbox list;

   public Mypage() {
  //generates panels..
 setListBoxValues();
//generate restof panels, buttons etc.


   }

   public setListBoxValues() {
AsyncCallbackListString lboxCall = new
AsyncCallbackListString() {
   public void onSuccess(ListString result) {

   for (String item : result) {lbox.addItem(item);}
 }
 public void onFailure(Exception ex) {}
   };

service.getValues(lboxCall);

}

This setup worked great on windows..but on linux i sometimes get the
entire GUI shown and sometimes only the panel with scrollbars without
any other GUI -buttons,lists etc. So I am kinda lost on why it is
happening.. Sometimes I have to hit the refresh button on the gwt
window to make the entire gui to show, but sometimes that doesn't do
the trick the first time but i had to do it several times to get
everything to show up... is this a bug?
On Oct 13, 12:28 pm, kozura [EMAIL PROTECTED] wrote:
 Shaselai,
 There should be no racing condition, the only thing I can guess is
 that you're trying to use the result from the server call in your code
 to initialize the page.  The data from a server RPC call is highly
 unlikely to be available a that time.  The correct method is for the
 asynchronous callback to fill in the previously created listbox, which
 ensures that there is no race.  For example:

 public class MyPage extends Composite {
   ListBox lbox;

   public MyPage() {
      lbox = new ListBox();
      //add listbox to page
      rpcservice.getListBoxItems(args, lboxCb);
      ...
   }

   AsyncCallbackListString lboxCb = new
 AsyncCallbackListString() {
     public void onSuccess(ListString result) {
       lbox.clear();
       for (String item : result) {lbox.addItem(item);}
     }
     public void onFailure(Exception ex) {}
   };

 }

 Remember, GWT builds everything dynamically, so there is no real
 refresh concept like you mention.

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



Re: HTML inside a text box

2008-10-14 Thread Sumit Chandel
Hi Steve,
Have you checked out the RichTextArea widget? You can see it in action in
the Showcase sample application (link below).

Showcase sample app:
http://gwt.google.com/samples/Showcase/Showcase.html

The RTA doesn't do auto-detection of things like hyperlinks where if I type
something of the form http://... it will automatically change it to a
hyperlink, but the RichTextToolbar implementation in the Showcase sample
application does provide a Create Link button which allow the user to link
text as they see fit. Might not be exactly what you're looking for, but it
might help for what you're trying to implement.

Hope that helps,
-Sumit Chandel

On Tue, Oct 7, 2008 at 3:03 AM, [EMAIL PROTECTED] 
[EMAIL PROTECTED] wrote:


 :( i dont want all that extra stuff there, just a simple link.

 but since its not possible in javascript either i think im wasting my
 time.

 Thanks anyway,
 Steve

 On Oct 7, 1:11 am, [EMAIL PROTECTED] [EMAIL PROTECTED]
 wrote:
  OK, found what I was looking for.  Naturally, found it on Screaming
  Penguin (thanks Cooper  Collins, you guys rule!)
 
  http://www.screaming-penguin.com/GWTProjects
 
  It's on SourceForge, and fairly recently updated:
 
  http://sourceforge.net/projects/jwc/
 
  Later,
 
  Shaffer
 
  On Oct 6, 2:21 am, [EMAIL PROTECTED]
 
 
 
  [EMAIL PROTECTED] wrote:
   Is it possibly to insert some html inside a TextBox or TextArea and
   have it displayed correctly.
 
   My goal is to display hyperlinks in the textbox.
 
   Any help would be greatly appreciated.
   Thanks in advance,
   Steve- 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



store data in temp file before saveing into database

2008-10-14 Thread avd

hello sir,
 i made five web pages using gwt for insert data into the
database but i want to save data of  all fields of five pages after
showing all inserted values at another web page with a button save
and after click at the save button the whole data is stored into the
database.Please solve my problem i'm thankful to u.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



how to call RPC from an HTMLPanel's content anchor

2008-10-14 Thread Tanzeem

Hi

Can anyone help me with  a sample code for the following

i have a HTMLPanel with its contents as HTML including a javascript
function onClick() from which i expect to call an RPC. Is this
possible? If ny solutions please help 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT implementation of java.text.*, Collator equivalent is missing!

2008-10-14 Thread Ian Petersen

On Tue, Oct 14, 2008 at 10:01 AM, JohnnyBGood [EMAIL PROTECTED] wrote:
 Google has done a great job when created internationalization support
 for GWT apps. Its i18n capabilities are however far from exhaustive.
 One of the features I'm missing most is a support of java.text.* JRE
 subpackage, more precisely it's java.text.Collator. I haven't found
 any possible solution of comparing strings in GWT, regarding locale-
 based rules (lexical Unicode based comparing used in String class of
 course doesn't do the job). Comparing (and sorting) strings with
 regard to international rules seem as being of essential importance to
 me, does anybody know anything about it's future (maybe planned)
 implementation in GWT? THX Jan.

I don't know anything about upcoming support for Collator.  My guess
is that it's not on the radar.  You may want to file an issue in the
bug tracker.

If you need something now, I suggest trying to port something from the
Apache Harmony project.  I have no idea how Collator is implemented so
I don't know if it's even feasible to port but, in theory, you just
need to borrow the code, remove bits that won't work with GWT, and add
the result to your project.  The Harmony project is already licensed
under the Apache license, so it's perfectly compatible with GWT and
closed-source products (of course, consult your lawyer for real legal
advice--I'm just an internet wacko).

There have been a number of posts to this forum about creating
libraries for use with GWT so you should be able to get pretty far
along if you decide to go this route, but feel free to ask again if
you get really stuck.  I'd guess that the hardest part of the plan
will be getting the code into a translatable-and-still-useful state
because Unicode-related stuff in Java usually involves compressed
binary tables of data and that approach isn't really compatible with
GWT.  The ultimate GWT port of Collator is probably going to involve
at least one generator, will nicely dovetail with the existing i18n
support, and doesn't waste bandwidth or execution time in code that
doesn't require Collator.  You could probably get a lot of mileage out
of a sub-optimal solution, though, so don't be afraid to jump in with
both feet.

Ian

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



Re: Need help with using GWT on Linux

2008-10-14 Thread Sumit Chandel
Hi Pete,
The GWT distribution for Linux contains its own instance of a Mozilla
installation (mozilla-1.7.12).

You would need to use that Mozilla installation in order to get GWT hosted
mode up and running. You can safely remove the mozilla-1.7.13 line unless
it's available on your system, as well as the /usr/lib64/mozilla line as GWT
currently doesn't work with 64-bit binaries.

The export GWT_BROWSER and GWT_EXTERNAL_BROWSER environment variables are
used to instruct GWT which browser to open up when going into web mode by
hitting the Compile/Browse button in hosted mode.

Let me know if any of the above info helps. If not, I'll try checking it out
with one of the hosted mode experts to see if they know what's going wrong.

Cheers,
-Sumit Chandel

On Fri, Oct 10, 2008 at 9:02 PM, Pete Kay [EMAIL PROTECTED] wrote:

 Hi,

 I have been trying to get gwt working on my Centos machine for 3 days
 without any success.
 I am running 32 bits Eclipse 3.4 and eclipse can be brought up, finally.
 However, when I tried to Run,
 I am getting
 ** Unable to find a usable Mozilla install **
 You may specify one in mozilla-hosted-browser.conf, see comments in the
 file for details.

 I tried download the latest firefox and put it into /usr/src/.  Before
 starting eclipse, I ran the following commands:

 export GWT_BROWSER=/usr/src/firefox/firefox

 export GWT_EXTERNAL_BROWSER=/usr/src/firefox/firefox

 But still it does not work.

 In my mozilla-hosted-browser.conf, I added one line:

 mozilla-1.7.13

 # This is the default mozilla that ships with GWT.
 mozilla-1.7.12

 # See if there are compatible mozilla distributions already installed.
 /usr/lib/mozilla-1.7.13
 /usr/lib/mozilla-1.7.12
 /usr/lib64/mozilla


 I added that line to try to get gwt to use the /usr/lib64/mozilla lib, the
 onese that are pre-built by the Centos.

 All these do not work.

 I am now running out of idea, could someon please help me out?

 Any help will be greatly appreciated.

 Regards,
 Pete

 


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



Problem in showing the items in Flextable

2008-10-14 Thread baalu aanand

Hi all,

   I am updating the Mail App. I have gave some related items
under the sent folder. While i click the sent in Mailboxes.java, the
Flex table in MailList.java not showing the corresponding items. I
have calling the MailList.update() function  from the Mailboxes.java
while clicking the sent tree node. But if i click the older button
the values of sent are displaying in the table. Then I have noticed,
If used any listener means only the table getting refresh.

  I want to see items of sent in Flextable when i click the
sent tree node at left hand side.

Please kindly help 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT + JSON + Server-side code....... RPC ???

2008-10-14 Thread [EMAIL PROTECTED]

Well google can send serialable objects. So it does not have to be
json. It would be a whole new class of objects that you created.
google's json code itself is not serialable. You can however have two
liberaries for json and past the format from one to another.

On Oct 14, 12:39 pm, Suri [EMAIL PROTECTED] wrote:
 Hey people,
 I'm not sure if I understand this correctly and figured I could use
 some help. I have an existing Java Struts based application that I'm
 trying to integrate GWT as a module into. I created some simple client
 code and wanted to make a call to the server side to see if it would
 work fine. I was able to make a simple HTTP call and return and
 display a string of data. Of course, the real world needs more
 complicated data. I was reading about JSON to transferring objects and
 figured I could use it.

 1) now my first question/doubt is whether I'm using it right. From the
 GWT docs reading it seemed like I should be sending a string of data
 encoded as a JSON object/array and then process that at the client
 side and display the information accordingly. So I did the following
 to my server side class

 import import com.google.gwt.json.client.*;

 public class . {

 public void method1()
 {
   retrieve data from backend.returns a list of objects

   // to send data back to client //

 JSONArray jsonArray = new JSONArray();

 int index = 0;

 while(iterator.hasNext())
 {
   String s1 = list.next().getValue();
   String s2 = list.next().getAnotherValue();

   JSONObject jsonObject = new JSONObject();
   jsonObject.put(key1, JSONParser.parse(s1));
   jsonObject.put(key2, JSONParser.parse(s2));
   jsonArray.set(index++, jsonObject);

 }

         response.setContentType(text/xml);
         response.setHeader(Cache-Control, no-cache);
         response.getWriter().write(jsonArray.toString());

 }

 I see that this doesn't work and returns a 500 error back instead of
 an expected response. Upon further investigation I saw that the code
 kept failing right at the moment the JSONArray declaration is reached.
 It compiles fine though.

 My questions are

 a) Is this a valid approach to how JSON is to be used within the GWT
 toolkit and Java back end? If yes, what is wrong, if not what is the
 correct solution to the problem?

 b) On a different note, I was also reading about RPC and about the
 serializable types that it would pass across and so on. I use XmlBeans
 and figured I could just as well use the bean (or a collection of
 beans) and pass it to the client using RPC calls where it would be
 processed. Is that even possible?

 Thanks

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



Re: GWT 1.5 on Java 1.4

2008-10-14 Thread [EMAIL PROTECTED]

it could work. if you have the client side just submit stuff in the
normal form submit. dont try to use RPC though. Just normal form post
and ajax post

On Oct 14, 5:51 am, gregor [EMAIL PROTECTED] wrote:
 Hi CFS,

 I think the biggest problem to look at is whether the GWT 1.5 RPC
 mechanism uses Java 1.5 syntax server side (and since e.g. it
 serializes generic collections, it must do). In which case your RPC
 servlets probably won't run and you'd have to look at e.g. JSON to
 communicate with the server. I don't believe you can't mix GWT 1.5 RPC
 client side code with the 1.4 version of gwt-servlet.jar server side.

 regards
 gregor

 On Oct 14, 11:14 am, CFS [EMAIL PROTECTED] wrote:

  Hi,

  Is it possible to run the server side part of an GWT 1.5 application
  in a Java 1.4 compliant container? (In particular it's a SAP WAS).

  If it's not possible to do it easily, is it possible to do it at all
  with some (reasonable) work?

  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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



StackOverflowError with OOPHM GWTCompiler

2008-10-14 Thread Thad

I'm running GWT OOPHM, which I most recently downloaded and build from
the main branch yesterday, Oct 14th.  I'm running on SuSE Linux 10.3
(2.6.22.18-0.2-default #1 SMP) and Java 1.6_10

For the most part, the OOPHM behaves correctly.  However, when I
attempt to build my admittedly large application, GWTCompiler throws a
StackOverflowError, producing a trace of over 1000 lines (the few of
which are shown below).

Smaller apps build fine with OOPHM's GWTCompiler, and this large app
builds fine with GWT 1.5.2.

What can I do to troubleshoot this or provide folks with more info on
it?

Compiling module com.optix.web.Workstation
[ERROR] Unexpected internal compiler error
java.lang.StackOverflowError
at java.lang.ref.ReferenceQueue.poll(ReferenceQueue.java:82)
at java.io.ObjectStreamClass.processQueue(ObjectStreamClass.java:
2234)
at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:266)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:
1106)
at
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:
1509)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:
1474)
at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:
1392)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:
1150)
at
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:
1509)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:
1474)
at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:
1392)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:
1150)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:
326)
at java.util.ArrayList.writeObject(ArrayList.java:570)
at sun.reflect.GeneratedMethodAccessor56.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:597)
...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: PopupPanel used as tooltip with animation causes incorrect position

2008-10-14 Thread Joe Cole

I am just bumping this as I think this is a bug in gwt and want to
make sure that the correct people are aware. Should I file a bug?

On Sep 11, 3:25 am, Joe Cole [EMAIL PROTECTED] wrote:
 Platform: Using GWT1.5 (release) and linux

 When I have a single instance of a popup panel, and it has it's
 content  position set in response to rollover of multiple elements,
 all works fine until I enable animation.

 To run the test case just use
 yourWidget.add(PopupFail.buildFailingTestCase()) to see the error.

 Is there any way to get around this?

 package com.google.gwt.user.client.ui;

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

 public class PopupFail {

         public static Widget buildFailingTestCase() {
                 VerticalPanel p = new VerticalPanel();
                 p.setSpacing(5);
                 p
                                 .add(new Label(
                                                 Run your mouse quickly over 
 the fail labels to see animation
 causing fail.));
                 PopupPanel pop = new PopupPanel(true, false);
                 pop.setWidget(new Label(FAIL!));
                 pop.setAnimationEnabled(true);
                 p.add(new Invoker(Fail 1, pop));
                 p.add(new Invoker(Fail 2, pop));
                 p.add(new Invoker(Fail 3, pop));
                 p.add(new Invoker(Fail 4, pop));
                 p
                                 .add(new Label(
                                                 Run your mouse quickly over 
 the pass labels to see no animation
 causing win.));
                 pop = new PopupPanel(true, false);
                 pop.setWidget(new Label(WIN!));
                 pop.setAnimationEnabled(false);
                 p.add(new Invoker(Pass 1, pop));
                 p.add(new Invoker(Pass 2, pop));
                 p.add(new Invoker(Pass 3, pop));
                 p.add(new Invoker(Pass 4, pop));
                 return p;
         }

         static class Invoker extends Label implements MouseListener {
                 PopupPanel pop;

                 public Invoker(final String text, final PopupPanel pop) {
                         super();
                         this.pop = pop;
                         addMouseListener(this);
                         setText(text);
                 }

                 private int getDisplayLocationX(final Widget sender, final 
 int x) {
                         return sender.getAbsoluteLeft() + x + 
 getPageScrollLeft();
                 }

                 private int getDisplayLocationY(final Widget sender, final 
 int y) {
                         return sender.getAbsoluteTop() + y + 
 getPageScrollTop();
                 }

                 private int getPageScrollTop() {
                         return DOM
                                         
 .getAbsoluteTop(DOM.getParent(RootPanel.getBodyElement()));
                 }

                 private int getPageScrollLeft() {
                         return DOM.getAbsoluteLeft(DOM
                                         
 .getParent(RootPanel.getBodyElement()));
                 }

                 public void onMouseDown(final Widget sender, final int x, 
 final int
 y) {

                 }

                 public void onMouseEnter(final Widget sender) {

                         pop.show();
                 }

                 public void onMouseLeave(final Widget sender) {
                         pop.hide();
                 }

                 public void onMouseMove(final Widget sender, final int x, 
 final int
 y) {
                         pop.setPopupPosition(getDisplayLocationX(this, x),
                                         getDisplayLocationY(this, y));
                 }

                 public void onMouseUp(final Widget sender, final int x, final 
 int y)
 {

                 }
         }

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



Re: Unable to clone a local reference in a function being inlined

2008-10-14 Thread hofmanndavid

Sorry, I forgot to say the it perfectly works in hosted mode. But when
compiling it produces this error.
If I whould be able to know that the compiler is complaining about and
how to evade that it will be enough for now

Thank you

On Oct 14, 12:13 pm, hofmanndavid [EMAIL PROTECTED] wrote:
 Any insigth in how to hack this please
 I think this is a bug.
 Thanks a lot for any reply.

 package
 py.com.personal.webvas.gemconnect.ui.gwt.ServiceManager.client; //
 line 1

 import java.util.HashMap;
 import java.util.Map;

 import
 py.com.personal.webvas.gemconnect.ui.gwt.ServiceManager.client.wrapper.GItem;

 import com.google.gwt.core.client.EntryPoint;
 import com.google.gwt.user.client.rpc.AsyncCallback;
 import com.google.gwt.user.client.ui.Button;
 import com.google.gwt.user.client.ui.ClickListener;
 import com.google.gwt.user.client.ui.FocusListener;
 import com.google.gwt.user.client.ui.KeyboardListener;
 import com.google.gwt.user.client.ui.Label;
 import com.google.gwt.user.client.ui.RootPanel;
 import com.google.gwt.user.client.ui.ScrollPanel;
 import com.google.gwt.user.client.ui.TextArea;
 import com.google.gwt.user.client.ui.TextBox;
 import com.google.gwt.user.client.ui.Tree;
 import com.google.gwt.user.client.ui.TreeItem;
 import com.google.gwt.user.client.ui.TreeListener;
 import com.google.gwt.user.client.ui.Widget;

 /**
  * Entry point classes define codeonModuleLoad()/code.
  */
 public class ServiceManager implements EntryPoint {
         private TextArea textArea;
         private Button unlockButton;
         private Button removeButton;
         private Label label;
         private ScrollPanel scrollPanel;
         private TextBox msisdnTextBox;
         private Tree tree;

         public static Integer indexCounter = 0;
         public static MapInteger, GItem indexGItem =new  HashMapInteger,
 GItem();
         public static GItem currentSelection;

         public void onModuleLoad() {
                 RootPanel rootPanel = RootPanel.get();
                 msisdnTextBox = new TextBox();
                 rootPanel.add(msisdnTextBox, 2, 0);
                 msisdnTextBox.setWidth(378px);
                 msisdnTextBox.addFocusListener(new FocusListener(){
          public void onFocus(Widget sender) {
             msisdnTextBox.setSelectionRange(0,
 msisdnTextBox.getText().length());
          }
          public void onLostFocus(Widget sender) { }});
                    msisdnTextBox.addKeyboardListener(new KeyboardListener(){
          public void onKeyDown(Widget sender, char keyCode, int
 modifiers) {}
          public void onKeyUp(Widget sender, char keyCode, int
 modifiers) {}

          public void onKeyPress(Widget sender, char keyCode, int
 modifiers) {
             if (KeyboardListener.KEY_ENTER == keyCode) {
                if (msisdnTextBox.getText().length()  7)
                   return;

                label.setText(Buscando ...);
                indexCounter = -1;
                indexGItem.clear();

 msisdnTextBox.setText(59597+msisdnTextBox.getText().substring(msisdnTextBox.getText().length()-7));

 ServerProxy.Util.getInstance().getMenu(msisdnTextBox.getText(), new
 AsyncCallbackGItem(){

                   public void onFailure(Throwable caught) {
                      label.setText();
                      tree.clear();
                      tree.addItem(Error);
                      tree.setFocus(true);
                   }

                   public void onSuccess(GItem result) {
                      label.setText();
                      if (result == null)
                         onFailure(null);

                      TreeItem firstNode = new TreeItem();

                    fillTree(result, firstNode);

                    tree.clear();
                    tree.addItem(firstNode);
                    tree.setFocus(true);
                   }

                   private void fillTree(GItem gitem, TreeItem
 treeItem) {
                      indexCounter++;
                      indexGItem.put(indexCounter, gitem);

                    if (!gitem.isService()) {

                       if (gitem.isPage()) {
                       TreeItem childNode = new TreeItem(indexCounter
 +.+gitem.toString());
                       treeItem.addItem(childNode);
                       treeItem = childNode;
                       }
                       else {
                          treeItem.setHTML(indexCounter+.STKMenu);
                       }

                       for (GItem g : gitem.childs)
                          fillTree(g, treeItem);
                    }
                    else {
                         treeItem.addItem(indexCounter
 +.+gitem.toString());
                      }

                   }
                });

             }
          }

                 });

                 scrollPanel = new ScrollPanel();
                 rootPanel.add(scrollPanel, 2, 53);
                 scrollPanel.setSize(376px, 444px);
                 tree = new 

Re: Google Maps API Library for GWT 1.0 Release Candidate 1 now available

2008-10-14 Thread ben

Thanks Eric.  Looking forward to it.

On Oct 14, 3:20 pm, Eric Ayers [EMAIL PROTECTED] wrote:
 Hi Ben,

 The Maps API is currently in release candidate stage. After the RC1
 release, I got a number of bugs reported which I've been busily
 addressing.

 I am working on a second RC for Maps soon.  If the bug reports slack
 off, I expect to do the GA release a few weeks after.

 -Eric.



 On Tue, Oct 14, 2008 at 12:51 PM, ben [EMAIL PROTECTED] wrote:

  I know you probably may not know, but is there an expected release
  date for an official (non RC) version?  My company has a policy to
  only use products that are an official release.  I'm trying to
  determine at what point we might put in the request to start using the
  maps api.  It should be exactly what we want!  Thanks for all the hard
  work you all do.  I looked at the issue tracker, and it seems like
  almost everything has been addressed.  Will more be added?

  Thanks

  On Sep 23, 8:24 am, Eric Ayers [EMAIL PROTECTED] wrote:
  We're happy to say that the first Release Candidate for the Google Maps API
  Library for Google Web Toolkit
  http://code.google.com/p/gwt-google-apis/is now ready to be taken
  for a test drive.  The Maps library provides a way
  to access the Google Maps API from a GWT project without having to write
  additional JavaScript code.  The library gives you full control using the
  standard Maps components such as InfoWindows, Markers, MapTypes, and
  Geocoding.  You can even use advanced features such as adding GWT widgets 
  to
  the Map, creating custom overlays, custom map types, and other components.
   The Google API Libraries for GWT
  http://code.google.com/p/gwt-google-apisproject is a collection of
  libraries that provide Java language bindings and
  API specific plumbing for some Google JavaScript APIs. The goal is to make
  it easy for developers to use these JavaScript APIs with GWT.  This release
  of the Maps http://code.google.com/apis/maps library complements the
  recent release candidates for the  
  Gearshttp://code.google.com/apis/gears/,
  Gadgets http://code.google.com/apis/gadgets/ and the Google AJAX
  Searchhttp://code.google.com/apis/ajaxsearchAPIs.  With this set of
  release candidates, each library is now distributed
  separately so that you can
  downloadhttp://code.google.com/p/gwt-google-apis/downloads/only the
  specific library you are interested in.

  We encourage you to try these release candidates out and give us feedback,
  either through the issue
  trackerhttp://code.google.com/p/gwt-google-apis/issues/liston
  code.google.com, or through the
  Google-Web-Tolkithttp://groups.google.com/group/Google-Web-Toolkitor
  Google-Web-Toolkit-Contributorshttp://groups.google.com/group/Google-Web-Toolkit-Contributorsgroup.
  - The Google API Libraries for GWT Team

 --
 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



RE: GWT and Firefox

2008-10-14 Thread Perelman Nathan (Nathan)

Try using Firebug (it's a Firefox plugin) to find out what styles (if any) are 
being applied and where they come from.

-Original Message-
From: Google-Web-Toolkit@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf 
Of Taff
Sent: Tuesday, October 14, 2008 17:47
To: Google Web Toolkit
Subject: Re: GWT and Firefox


It's very frustrating.

I suspect a number of things maybe causing the problem

a) My app is not picking up the css file from the Module xml file.
b) It could be because my app has mixed Upper and Lower case chars in
it BDFTReportManager
c) Something to do with a missing inherits flag in the module file,
mine is a very simple proof of concept app at this stage and has no
RPC stuff in it, so I can't see why
d) I've tried dynamically loading the css file in the HTML file with a
standard link flag
e) I'm using a StackedPanel and TabPanel and these are the 2 where the
standard css settigns are not working and they just default back to
the default set.
f) I've tried to ensure that i am using the SetStyle method to force
the code to use the right css setting ... no luck.

I am just totally baffled, and I'm pretty sure it'll be something
really simple we just need a GWT expert to shine the light on it




On Oct 14, 8:19 pm, grasshopper [EMAIL PROTECTED] wrote:
 I am having exactly the same problem.

 GWT 1.5, IF 7, FF 3

 On Oct 14, 11:26 am, Taff [EMAIL PROTECTED] wrote:

  Hi

  I'm sure this has been raised before, however I'm new to the product
  and can't find any threads on this

  MY new app works fine in IE and not in Firefox.  For some reason the
  app does not pick up the app stylesheet in firefox like it does in IE.

  I've tried every which way, but to no avail.  Is there something I'm
  missing.

  Also I code on my mac at home and PC in the office and none of the
  rendering seems to be that portable.

  Any pointers would be much appreciated

  Thanks

  Andy


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



Re: Your opinion sought: Jetty or Tomcat?

2008-10-14 Thread Jason Essington

Since creating a usable server side configuration in the embedded  
servlet container is all but impossible for anything but the simplest  
projects, I think that the choice of embedded server is a non-issue.

Since complicated configurations aren't really something you want to  
address in the embedded server, my vote would be for the simplest,  
fastest implementation that supports the simple case uses.

So, if Jetty starts faster and is lighter weight, then great, use it.

-jason

On Oct 13, 2008, at 4:48 PM, Bruce Johnson wrote:

 Hi everyone,

 Hope you're enjoying 1.5.

 The GWT team has started putting together a 1.6 roadmap, which we'll  
 publish as soon as we have it nailed down. Two of the areas we want  
 to work on for 1.6 are some improvements to hosted mode startup time  
 and a friendlier output directory structure (something that looks  
 more .war-like).

 As part of this effort, we've all but decided to switch the hosted  
 mode embedded HTTP server from Tomcat to Jetty. Would this break  
 you? (And if so, how mad would you be if we did it anyway?) We  
 figure most people who really care about the web.xml and so on are  
 already using -noserver to have full control over their server  
 config.

 Thanks,
 Bruce


 


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



DOM.scrollIntoView()

2008-10-14 Thread Ed

Hellu,

Please some advice on the usage of the method: DOM.scrollIntoView().
I like to use this with an Y offset, which isn't possible in the
current implementation.
Any advice on how to easy realize this ?

Why ?
I show a flow of questions to the member on the screen, the next
question will slide in beneath the current one when he has answered
the current question.
I make sure the new question is in view by the DOM method above, but
like to add an offset, such that it doesn't appear tight to the
browser bottom .

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



Re: Your opinion sought: Jetty or Tomcat?

2008-10-14 Thread Jason Essington

It already is! have a look at -noserver

My project requires a full blown JEE container, not just a servlet  
engine, so neither tomcat nor jetty would be enough. I have been using  
-noserver since the beginning and it works great.

If the embedded server doesn't fit your needs (no matter what that  
server ends up being) then it is no big deal to use whatever server  
does work for you.

-jason

On Oct 14, 2008, at 8:34 AM, jvanroekel wrote:


 We run Tomcat in production and on our desktops. I prefer to test with
 the same system. Having said that, I appreciate the value of Jetty.
 So, why can't we have both? Make it a config option.
 


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



Re: GWT + iText + Eclipse Problem

2008-10-14 Thread prof3ta

So, any hint on how to generate a pdf file withi gwt?

On Oct 14, 10:32 am, Paul Robinson [EMAIL PROTECTED] wrote:
 GWT compiles java into javascript client-side. That means you can't use
 any old java library in the client, only translatable java.

 prof3ta wrote:
  Pardon me, Dean. What do you mean with server-side library???
  That's java code, there should be no distinction between server and
  client.
  I tried to add the sources for the package and add them to the
  classpath, but no luck
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Enter the Container

2008-10-14 Thread archimechanical

Ok, main concept is that there is real  need to CREATE widgets not
only by combining existed widgets.

Example 1: I need create widgets from the hand created DOM Element
complex
 (Diego case described here
http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/78c45552015ea220)
or from the existed node in html page (my case)
It is live example. It's like some sort of template engine. I have
very complex panel with element model mainly static with some slots
where dynamic widgets should be attached. I don't want to write Kb of
code to build this panel with Composite(wrapper) and static panels,
labels, tables etc.
It is static content. Nearest analogy - It's like servlet and jsp. I
can write html tags to the output from the servlet (evil) or I can
create a jsp where all static data will be contained in plain html and
work only with the dynamic parts.
It's the same case. How much elements from DOM are really dynamic (has
listeners or could be manipulated from code etc?) in the real
applications? 10%? 20%?
As I understand this example not in the mainstream concept of gwt, but
nevertheless...

Example 2: I need to create widgets from strings. It is tables of
course :) Data received from the server side should be displayed as
table...biiig table. And I need to put external widgets there. Grid
and FlexTable are not helpers in this case (yes, I know about gwt-
incubator tables, but I write my own implementation ;). But I agree,
this case is very specific.

As I understand it is not API bloating, ti is just normal flexible
API.

Now gwt widget model is very monolithic and highly tied. I don't want
to totally rewrite widget model like some gwt-libs do(ext-gwt etc),
I'm satisfied with it in general, but in some details I am not. I want
just to extend it.
I understand developers care about users, but some users want more and
don't like excessive care.
Yesterday, I try to hack package visibility for setParent and create
base Component something like Folke suggest, but moving forward I
discover Widget.removeFromParent and final accord - if the parent is
not HasWidgets widget throws runtime exception. Сheckmate. :( It is
especially strange, because Composite doesn't implement HasWidgets but
it used as parent for wrapped widget!!! What is going on?

And about realization with Composite and/or Panel. I know that I can
use them to achieve end, not all cases, but.. there is good russian
proverb: it's like remove tonsils through a...hmmm...back, too much
unnecessary work.

As I understand setParent() method is package protected because of it
is invisible(utility) part of the atomic attach/detach operations.
But, attention, I understand It! I do can do the same right things
that gwt developers do. I 'll be very careful with parent-child
relations in YOUR widget model in MY application. I promise! :)

With best regards,
Dmitry.


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



passing parameters to gwt application

2008-10-14 Thread Tanzeem

hi

i have a non-gwt applicaton's html page from which i have to pass
parameters trhough a href definition like  a href=http://localhost:
7070/MyGWTApp?key=value
to a gwt application.How do i make changes in the GWT application to
enable parameter recieving?
Any 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT + iText + Eclipse Problem

2008-10-14 Thread prof3ta

Ok, I'm creating the PDF file in the server.
I'm using a HTTP POST request (through the RequestBuilder object) to
get the file in the client.
The problem now is that I can just see the content of the file in the
callback function as a string, but I'm not able to write this string
into the file system, since I cannot use the standard java libraries
for writing files for the same reason as above.
I'd like to get the usual open/save file window dialog in my gwt
application when getting the HTTP response.
Any hint?

On Oct 14, 10:49 am, Paul Robinson [EMAIL PROTECTED] wrote:
 Yes. Do it in the server.

 prof3tawrote:
  So, any hint on how to generate a pdf file withi gwt?

  On Oct 14, 10:32 am, Paul Robinson [EMAIL PROTECTED] wrote:

  GWT compiles java into javascript client-side. That means you can't use
  any old java library in the client, only translatable java.

 prof3tawrote:

  Pardon me, Dean. What do you mean with server-side library???
  That's java code, there should be no distinction between server and
  client.
  I tried to add the sources for the package and add them to the
  classpath, but no luck
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Your opinion sought: Jetty or Tomcat?

2008-10-14 Thread Ian Petersen

I use -noserver so, for me, effort spent on switching from Tomcat to
Jetty is wasted, but I wouldn't begrudge the team for satisfying
demand.

Ian

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



Re: run gwt project with eclipse

2008-10-14 Thread [EMAIL PROTECTED]

hello Dean,
thank you for your response.In fact  i didn't have
MyApplication.launch and i genereted it with the flag -eclipse when i
entered applicationCreator and so i  have the good result.i won't mind
comming back for another questions.
see you
Arnaud


Dean S. Jones a écrit :
 I'm going to assume you used the -eclipse flag when you created the
 project...

 there should be a MyApplication.launch file in the project root. ( if
 not, regenerate the appication with -eclipse )

 import the project

 highlight your project root

 select the green circle Run toolbar item, select Run
 Configurations...  you should see MyApplication under Java
 Application.

 click to run, Voila'.


 On Oct 13, 10:04�am, [EMAIL PROTECTED] [EMAIL PROTECTED]
 wrote:
  Hello everyone,
  i've just built a gwt project with projectCreator and
  ApplicationCreator.So i've imported the my project into eclipseand
  when i �laujch it with the script shell MyApplication-shell which is
  genereted i i have the two window which i expected.But when i try to
  run it by right clicking on the project -run as- run configuration
  and i specify the name of the project and the main class
  com.google.gwt.dev.GWTShell i don't have the two window.Can you
  explain me why i don't have it and what can i do �to resolve this
  problem?
  Arnaud
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



How to use the applicationCreater on windows

2008-10-14 Thread Talha

Hey guys i jus downloaded the google web toolkit on my windows
computer and i have been following the get started section from
samples onwards but when i come up to creating a new application from
scratch im having dificulties as the applicationCreator does not open
so that i can enter the command that will create the subdirectories
itself. i have followed the step how to connect the sdk server by
specifiying and editing the path in enviornmental variable in my
computer. but nothing i could use some guidance as im completlty new
and have limited knowlegde. help would be really appreciated
thanks 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Speed-Up the loading of gwt module in jsp

2008-10-14 Thread [EMAIL PROTECTED]

Nope. My google project doesnt take long to load. depends on how you
write it i guess

On Oct 14, 2:41 am, [EMAIL PROTECTED] [EMAIL PROTECTED]
wrote:
 In a jsp I have a gwt module and other normal html content. Gwt module
 takes a long time to load when compared to other content on the page,
 It is always the last thing that is loaded on the page.  Is there any
 way to make Gwt module load faster?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: passing parameters to gwt application

2008-10-14 Thread Jason Morris

If you're on GWT 1.5, you can just use

Window.Location.getParameter(key);

rudolf michael wrote:
 you just have to parse the http URL in your address bar.
 in your onModuleLoad method just call the following method
 public static native String getHref() /*-{
 return $wnd.location.href;
 }-*/;
 public void onModuleLoad(){
String url = getHref();
// you just have to parse the url now using a regex and any 
 string utility you are familiar with
 }
 
 On Tue, Oct 14, 2008 at 12:44 PM, Tanzeem [EMAIL PROTECTED] 
 mailto:[EMAIL PROTECTED] wrote:
 
 
 hi
 
 i have a non-gwt applicaton's html page from which i have to pass
 parameters trhough a href definition like  a href=http://localhost:
 7070/MyGWTApp?key=value
 to a gwt application.How do i make changes in the GWT application to
 enable parameter recieving?
 Any 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: -noserver 1.5 RPC Help

2008-10-14 Thread Christopher Venning

Err, sorry.  Didn't answer you.  No, the changes detailed are the only
changes made to a fresh extract of a freshly-downloaded (MD5-checked)
package of Tomcat (Windows binaries).  If there is something else that
needs to be deployed, I have not done that.


On Oct 14, 12:55 pm, Christopher Venning
[EMAIL PROTECTED] wrote:
 On Oct 14, 12:53 pm, Isaac Truett [EMAIL PROTECTED] wrote:

  Did you deploy your compiled servlet? I don't see it listed in the stuff you
  copied to tomcat/webapps/ServerTest.

 What do you mean compiled servlet?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT and Firefox

2008-10-14 Thread Taff

Top Tip!!  thanks

OK, so that partially answers the question, at least now I can see
that my overiden css elements are being ignored for the standard.css
ones.

So, question - does this mean that I have to rename mine and then use
the SetStyle method to get this working?

.gwt-StackPanel {

}
.gwt-StackPanelItem gwt-StackPanelItem-first{
}

.gwt-StackPanel .gwt-StackPanelItem {
}

On Oct 14, 10:57 pm, Perelman Nathan (Nathan)
[EMAIL PROTECTED] wrote:
 Try using Firebug (it's a Firefox plugin) to find out what styles (if any) 
 are being applied and where they come from.

 -Original Message-
 From: Google-Web-Toolkit@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf 
 Of Taff
 Sent: Tuesday, October 14, 2008 17:47
 To: Google Web Toolkit
 Subject: Re: GWT and Firefox

 It's very frustrating.

 I suspect a number of things maybe causing the problem

 a) My app is not picking up the css file from the Module xml file.
 b) It could be because my app has mixed Upper and Lower case chars in
 it BDFTReportManager
 c) Something to do with a missing inherits flag in the module file,
 mine is a very simple proof of concept app at this stage and has no
 RPC stuff in it, so I can't see why
 d) I've tried dynamically loading the css file in the HTML file with a
 standard link flag
 e) I'm using a StackedPanel and TabPanel and these are the 2 where the
 standard css settigns are not working and they just default back to
 the default set.
 f) I've tried to ensure that i am using the SetStyle method to force
 the code to use the right css setting ... no luck.

 I am just totally baffled, and I'm pretty sure it'll be something
 really simple we just need a GWT expert to shine the light on it

 On Oct 14, 8:19 pm, grasshopper [EMAIL PROTECTED] wrote:
  I am having exactly the same problem.

  GWT 1.5, IF 7, FF 3

  On Oct 14, 11:26 am, Taff [EMAIL PROTECTED] wrote:

   Hi

   I'm sure this has been raised before, however I'm new to the product
   and can't find any threads on this

   MY new app works fine in IE and not in Firefox.  For some reason the
   app does not pick up the app stylesheet in firefox like it does in IE.

   I've tried every which way, but to no avail.  Is there something I'm
   missing.

   Also I code on my mac at home and PC in the office and none of the
   rendering seems to be that portable.

   Any pointers would be much appreciated

   Thanks

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



RE: GWT and Firefox

2008-10-14 Thread Perelman Nathan (Nathan)

I'm pretty sure that if you remove or comment out (with !-- comment -- since 
this is xml) the following line in your .gwt.xml file, it will stop including 
standard.css:
inherits name=com.google.gwt.user.theme.standard.Standard/

I'm not sure that this is really your problem though. Make sure your elements 
have the class you want applied to them maybe?

-Original Message-
From: Google-Web-Toolkit@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf 
Of Taff
Sent: Tuesday, October 14, 2008 18:39
To: Google Web Toolkit
Subject: Re: GWT and Firefox


Very odd, this is what I see in firebug

link rel=stylesheet href=file:///C:/work/BDFTReportManager/
WebContent/gwt/standard/standard.css
/link
link rel=stylesheet href=file:///C:/work/BDFTReportManager/
WebContent/BDFTReportManager.css

I've changed the default

.gwt-StackPanel {

}
 with

.bdftgwt-StackPanel {

}

it seems to pick up my new one and then revert back to the default
standard.css one ... totally baffled :(

Do I need to exclude the standard.css in some way?  If so how do I do
that?  Manually?  or is that going to be a post operation for the ANT
script?

Sorry for so many questions but i'm a newbies ot GWT

Thanks

Andy




On Oct 14, 11:20 pm, Taff [EMAIL PROTECTED] wrote:
 Top Tip!!  thanks

 OK, so that partially answers the question, at least now I can see
 that my overiden css elements are being ignored for the standard.css
 ones.

 So, question - does this mean that I have to rename mine and then use
 the SetStyle method to get this working?

 .gwt-StackPanel {

 }

 .gwt-StackPanelItem gwt-StackPanelItem-first{
         }

 .gwt-StackPanel .gwt-StackPanelItem {
         }

 On Oct 14, 10:57 pm, Perelman Nathan (Nathan)

 [EMAIL PROTECTED] wrote:
  Try using Firebug (it's a Firefox plugin) to find out what styles (if any) 
  are being applied and where they come from.

  -Original Message-
  From: Google-Web-Toolkit@googlegroups.com [mailto:[EMAIL PROTECTED] On 
  Behalf Of Taff
  Sent: Tuesday, October 14, 2008 17:47
  To: Google Web Toolkit
  Subject: Re: GWT and Firefox

  It's very frustrating.

  I suspect a number of things maybe causing the problem

  a) My app is not picking up the css file from the Module xml file.
  b) It could be because my app has mixed Upper and Lower case chars in
  it BDFTReportManager
  c) Something to do with a missing inherits flag in the module file,
  mine is a very simple proof of concept app at this stage and has no
  RPC stuff in it, so I can't see why
  d) I've tried dynamically loading the css file in the HTML file with a
  standard link flag
  e) I'm using a StackedPanel and TabPanel and these are the 2 where the
  standard css settigns are not working and they just default back to
  the default set.
  f) I've tried to ensure that i am using the SetStyle method to force
  the code to use the right css setting ... no luck.

  I am just totally baffled, and I'm pretty sure it'll be something
  really simple we just need a GWT expert to shine the light on it

  On Oct 14, 8:19 pm, grasshopper [EMAIL PROTECTED] wrote:
   I am having exactly the same problem.

   GWT 1.5, IF 7, FF 3

   On Oct 14, 11:26 am, Taff [EMAIL PROTECTED] wrote:

Hi

I'm sure this has been raised before, however I'm new to the product
and can't find any threads on this

MY new app works fine in IE and not in Firefox.  For some reason the
app does not pick up the app stylesheet in firefox like it does in IE.

I've tried every which way, but to no avail.  Is there something I'm
missing.

Also I code on my mac at home and PC in the office and none of the
rendering seems to be that portable.

Any pointers would be much appreciated

Thanks

Andy


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



Re: Search API

2008-10-14 Thread Ben Lisbakken
Hey Max --
Unfortunately you cannot limit the Search API to a specific country's Google
search engine.  However, you can limit the search to a language:
webSearch.setRestriction(GSearch.RESTRICT_EXTENDED_ARGS, { lr :lang_FR});

Hope that helps,
Ben

On Fri, Oct 10, 2008 at 10:14 AM, RichBrains [EMAIL PROTECTED] wrote:


 Hi all,

 I need your help, guys! I just installed Google AJAX API Search on my
 website and now I need to search in Belarus ONLY! Not just a domains
 with site:*.by condition, but in all country like google.com.by
 search. Is it possible???

 Thanks in adance,
 Max

 


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



Re: GWT and Firefox

2008-10-14 Thread Taff

yea, I did that and it didnt change anything sadly, now it says it
using the

.gwt-StackPanel {

but it's just blank in firebug.  I suspect it's just not loading my
css file.

I'll retire hurt for today and try again tomorrow, just frustrating
that this is so different between IE and FF

and tips overnight will be greatfully received. thanks Perelman

`andy


On Oct 14, 11:53 pm, Perelman Nathan (Nathan)
[EMAIL PROTECTED] wrote:
 I'm pretty sure that if you remove or comment out (with !-- comment -- 
 since this is xml) the following line in your .gwt.xml file, it will stop 
 including standard.css:
 inherits name=com.google.gwt.user.theme.standard.Standard/

 I'm not sure that this is really your problem though. Make sure your elements 
 have the class you want applied to them maybe?

 -Original Message-
 From: Google-Web-Toolkit@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf 
 Of Taff
 Sent: Tuesday, October 14, 2008 18:39
 To: Google Web Toolkit
 Subject: Re: GWT and Firefox

 Very odd, this is what I see in firebug

 link rel=stylesheet href=file:///C:/work/BDFTReportManager/
 WebContent/gwt/standard/standard.css
 /link
 link rel=stylesheet href=file:///C:/work/BDFTReportManager/
 WebContent/BDFTReportManager.css

 I've changed the default

 .gwt-StackPanel {

 }
  with

 .bdftgwt-StackPanel {

 }

 it seems to pick up my new one and then revert back to the default
 standard.css one ... totally baffled :(

 Do I need to exclude the standard.css in some way?  If so how do I do
 that?  Manually?  or is that going to be a post operation for the ANT
 script?

 Sorry for so many questions but i'm a newbies ot GWT

 Thanks

 Andy

 On Oct 14, 11:20 pm, Taff [EMAIL PROTECTED] wrote:
  Top Tip!!  thanks

  OK, so that partially answers the question, at least now I can see
  that my overiden css elements are being ignored for the standard.css
  ones.

  So, question - does this mean that I have to rename mine and then use
  the SetStyle method to get this working?

  .gwt-StackPanel {

  }

  .gwt-StackPanelItem gwt-StackPanelItem-first{
          }

  .gwt-StackPanel .gwt-StackPanelItem {
          }

  On Oct 14, 10:57 pm, Perelman Nathan (Nathan)

  [EMAIL PROTECTED] wrote:
   Try using Firebug (it's a Firefox plugin) to find out what styles (if 
   any) are being applied and where they come from.

   -Original Message-
   From: Google-Web-Toolkit@googlegroups.com [mailto:[EMAIL PROTECTED] On 
   Behalf Of Taff
   Sent: Tuesday, October 14, 2008 17:47
   To: Google Web Toolkit
   Subject: Re: GWT and Firefox

   It's very frustrating.

   I suspect a number of things maybe causing the problem

   a) My app is not picking up the css file from the Module xml file.
   b) It could be because my app has mixed Upper and Lower case chars in
   it BDFTReportManager
   c) Something to do with a missing inherits flag in the module file,
   mine is a very simple proof of concept app at this stage and has no
   RPC stuff in it, so I can't see why
   d) I've tried dynamically loading the css file in the HTML file with a
   standard link flag
   e) I'm using a StackedPanel and TabPanel and these are the 2 where the
   standard css settigns are not working and they just default back to
   the default set.
   f) I've tried to ensure that i am using the SetStyle method to force
   the code to use the right css setting ... no luck.

   I am just totally baffled, and I'm pretty sure it'll be something
   really simple we just need a GWT expert to shine the light on it

   On Oct 14, 8:19 pm, grasshopper [EMAIL PROTECTED] wrote:
I am having exactly the same problem.

GWT 1.5, IF 7, FF 3

On Oct 14, 11:26 am, Taff [EMAIL PROTECTED] wrote:

 Hi

 I'm sure this has been raised before, however I'm new to the product
 and can't find any threads on this

 MY new app works fine in IE and not in Firefox.  For some reason the
 app does not pick up the app stylesheet in firefox like it does in IE.

 I've tried every which way, but to no avail.  Is there something I'm
 missing.

 Also I code on my mac at home and PC in the office and none of the
 rendering seems to be that portable.

 Any pointers would be much appreciated

 Thanks

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



Re: Most efficient way to transfer larger amounts of data via RPC?

2008-10-14 Thread mtwomey

Ok - I'm going to work with the request builder for now and see how
that goes. Really my only issue at this point is the slow RPC
transfer.

On the client side, the data is parsed into a structure upon receipt,
consisting of several different kinds of HashMaps and ArrayLists of a
few basic object types. I was able to do this in a single pass of the
file and for a 100K configuration file, it's finishing in under a
second on Firefox (longer in IE - but still fast). Once complete,
subsequent queries of this structure are just a few ms. This is on a 5
year old laptop, so the client-side processing doesn't appear that it
will be an issue.

Thank you very much for the help and pointers! I'll let you know how
it goes.

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



Re: Speed-Up the loading of gwt module in jsp

2008-10-14 Thread maheshm1206

Thanks Buzz,
Let me clarify, Here the long time means - If the total page is
loading in 10 seconds, the gwt part of the content is loading in the
9th and 10th seconds i.e. after the other html content is loaded. What
I am looking is for, if GWT module loads in between.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



[gwt-contrib] Re: FF3 winxp on OOPHM rev 3747 branch fails with No GWT plugin found

2008-10-14 Thread John Tamplin
On Tue, Oct 14, 2008 at 2:48 AM, gslender [EMAIL PROTECTED] wrote:

 Re the warning - loading both plugins fixes the warning. I don't get
 it anymore.


Right, since Firefox thinks it has a plugin to match the embed tag, even
though hosted.html will never use it because it finds the XPCOM plugin
first.


 After when the app first loads into the browser, if I refresh it fails
 with some kind of index out of bounds exception. This happened before
 the 2nd plugin was installed, so its not a both plugin installed issue
 (just in case you were gonna think it was that).

 Every first load works fine, just the refreshes that fail - I'm not
 too concerned as obivously much of oophm is not complete and will
 continue to test releases from SVN every now and then.


Can you reproduce this with the samples?  Say, run Hello-shell then refresh
the page?  For me, it shows the old one disconnected and creates a new
connection, as expected.  Where do you get the out of bounds exception?

If it is only with your application, can you provide any details about it?

BTW - great work guys and can't wait for a Google Chrome/Webkit
 version !! That's gonna rock !!


WebKit is already supported, so you can use most WebKit-derived browsers on
MacOSX (Safari on Windows doesn't support the same plugin infrastructure).

-- 
John A. Tamplin
Software Engineer (GWT), Google

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



[gwt-contrib] Code Review: Visualization API, improved hello world example

2008-10-14 Thread Uwe Maurer
Hi,

I added a TabPanel to the hello world example, with a tab for each
example. I added an example for the new DataView.

Thanks,
Uwe

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

Index: 
samples/hellovisualization/src/com/google/gwt/visualization/sample/hellovisualization/client/VisualizationDemo.java
===
--- 
samples/hellovisualization/src/com/google/gwt/visualization/sample/hellovisualization/client/VisualizationDemo.java
 (revision 885)
+++ 
samples/hellovisualization/src/com/google/gwt/visualization/sample/hellovisualization/client/VisualizationDemo.java
 (working copy)
@@ -17,10 +17,16 @@
 
 import com.google.gwt.core.client.EntryPoint;
 import com.google.gwt.user.client.Window;
+import com.google.gwt.user.client.ui.FlowPanel;
+import com.google.gwt.user.client.ui.HorizontalPanel;
 import com.google.gwt.user.client.ui.Label;
+import com.google.gwt.user.client.ui.Panel;
 import com.google.gwt.user.client.ui.RootPanel;
+import com.google.gwt.user.client.ui.TabPanel;
+import com.google.gwt.user.client.ui.Widget;
 import com.google.gwt.visualization.client.AbstractDrawOptions;
 import com.google.gwt.visualization.client.DataTable;
+import com.google.gwt.visualization.client.DataView;
 import com.google.gwt.visualization.client.PieChart;
 import com.google.gwt.visualization.client.PieChartWidget;
 import com.google.gwt.visualization.client.Query;
@@ -29,7 +35,7 @@
 import com.google.gwt.visualization.client.Table;
 import com.google.gwt.visualization.client.TableWidget;
 import com.google.gwt.visualization.client.Visualization;
-import com.google.gwt.visualization.client.DataTable.ColumnType;
+import com.google.gwt.visualization.client.AbstractDataTable.ColumnType;
 import com.google.gwt.visualization.client.Query.Callback;
 import com.google.gwt.visualization.client.Selectable.SelectCallback;
 
@@ -38,13 +44,63 @@
  * 
  */
 class VisualizationDemo implements EntryPoint {
-
+  private final TabPanel tabPanel = new TabPanel();
+  
   public void onModuleLoad() {
 RootPanel.get().add(new Label(Google Visualization with GWT demo.));
-drawChart();
+RootPanel.get().add(tabPanel);
+tabPanel.setWidth(800);
+tabPanel.setHeight(600);
+
+tabPanel.add(createPieChart(), Pie Chart);
+tabPanel.add(createTable(), Table);
+tabPanel.add(createDataView(), DataView);
+tabPanel.selectTab(0);
   }
 
-  protected void drawChart() {
+  /**
+   * Creates a table and a view and shows both next to each other.
+   * @return a panel with two tables.
+   */
+  private Widget createDataView() {
+Panel panel = new HorizontalPanel();
+DataTable table = DataTable.create();
+
+/* create a table with 3 columns */
+table.addColumn(ColumnType.NUMBER, x);
+table.addColumn(ColumnType.NUMBER, x * x);
+table.addColumn(ColumnType.NUMBER, sqrt(x));
+table.addRows(10);
+for (int i = 0; i  table.getNumberOfRows(); i++) {
+  table.setValue(i, 0, i);
+  table.setValue(i, 1, i * i);
+  table.setValue(i, 2, Math.sqrt(i));
+}
+Panel flowPanel = new FlowPanel();
+panel.add(flowPanel);
+flowPanel.add(new Label(Original DataTable:));
+TableWidget chart = new TableWidget();
+flowPanel.add(chart);
+chart.draw(table, Table.DrawOptions.create());
+
+flowPanel = new FlowPanel();
+panel.add(flowPanel);
+flowPanel.add(new Label(DataView with columns 2 and 1:));
+/* create a view on this table, with columns 2 and 1 */
+TableWidget viewChart = new TableWidget();
+DataView view = DataView.create(table);
+view.setColumns(new int[] {2, 1});
+flowPanel.add(viewChart);
+viewChart.draw(view, Table.DrawOptions.create());
+return panel;
+  }
+
+  /**
+   * Creates a pie chart visualization.
+   * 
+   * @return panel with pie chart.
+   */
+  private Widget createPieChart() {
 /* create a datatable */
 DataTable data = DataTable.create();
 data.addColumn(ColumnType.STRING, Task);
@@ -63,17 +119,24 @@
 
 /* create pie chart */
 
-
 PieChart.DrawOptions options = PieChart.DrawOptions.create();
 options.setWidth(400);
 options.setHeight(240);
 options.set3D(true);
 options.setTitle(My Daily Activities);
-RootPanel.get().add(new PieChartWidget(data, options));
+return new PieChartWidget(data, options);
+  }
 
+  /**
+   * Creates a table visualization from a spreadsheet.
+   * 
+   * @return panel with a table.
+   */
+  private Widget createTable() {
+final Panel panel = new FlowPanel();
 final Label label = new Label(no selection);
-RootPanel.get().add(label);
-
+panel.add(new Label(Table visualization with selection.));
+panel.add(label);
 // Read data from spreadsheet
 String dataUrl = 

[gwt-contrib] Re: [gwt-team] Release Notes for review

2008-10-14 Thread John LaBanca
Rajeev / Alex -

Can you summarize what the problem with RequestBuilder and RPC?  I don't see
an issue associated with the fix, and it would be good to use something more
descriptive than it was broke.

Here is the commit log:

For IE7, we should be instantiating an XHR with the native XMLHttpRequest
 object. On IE6, try specifying which version you want first, then falling
 back
 to Microsoft.XMLHTTP. This seems to work around the do a POST when you
 asked
 for a GET bug on some IE6 installs.


Thanks,
John LaBanca
[EMAIL PROTECTED]


On Tue, Oct 14, 2008 at 10:04 AM, Rajeev Dayal [EMAIL PROTECTED] wrote:

 Graceful selection of XHR class in IE6 and IE7: fixes a bug where data
 would use POST instead of GET..
 I think it would be better to directly call out that this problem affected
 RequestBuilder and RPC.

 Time.valueOf no longer tries to determine radix values...

 Instead of mentioning the radix problem, say that Time.valueOf correctly
 parses values with leading zeros

 On Tue, Oct 14, 2008 at 9:44 AM, John LaBanca [EMAIL PROTECTED] wrote:

 John -

 Please review the updated release notes for GWT 1.5.3.  If we slip in any
 more fixes, we can update them again as needed.

 Thanks,
 John LaBanca
 [EMAIL PROTECTED]




 


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



[gwt-contrib] Re: [gwt-team] Release Notes for review

2008-10-14 Thread John Tamplin
On Tue, Oct 14, 2008 at 10:04 AM, Rajeev Dayal [EMAIL PROTECTED] wrote:

 Time.valueOf no longer tries to determine radix values...

 Instead of mentioning the radix problem, say that Time.valueOf correctly
 parses values with leading zeros


Well, it would incorrectly accept 0xc:0xF:0x25 before, which is only about
the radix issue.

-- 
John A. Tamplin
Software Engineer (GWT), Google

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



[gwt-contrib] Code Review: Visualization API, added DataView

2008-10-14 Thread Uwe Maurer
Hi,

I added the new DataView class that allows read only access to a
DataTable for selected columns.

Thanks,
Uwe

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

Index: visualization/src/com/google/gwt/visualization/client/Visualization.java
===
--- visualization/src/com/google/gwt/visualization/client/Visualization.java
(revision 885)
+++ visualization/src/com/google/gwt/visualization/client/Visualization.java
(working copy)
@@ -32,7 +32,7 @@
* 
* @param data The DataTable with the data.
*/
-  public final native void draw(DataTable data) /*-{
+  public final native void draw(AbstractDataTable data) /*-{
 this.draw(data, {});
   }-*/;
   
@@ -42,7 +42,7 @@
* @param data The DataTable with the data.
* @param options The options for drawing this visualization.
*/
-  public final native void draw(DataTable data, E options) /*-{
+  public final native void draw(AbstractDataTable data, E options) /*-{
 this.draw(data, options);
   }-*/;
 }
Index: visualization/src/com/google/gwt/visualization/client/DataView.java
===
--- visualization/src/com/google/gwt/visualization/client/DataView.java 
(revision 0)
+++ visualization/src/com/google/gwt/visualization/client/DataView.java 
(revision 0)
@@ -0,0 +1,45 @@
+/*
+ * Copyright 2008 Google Inc.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the License); you may not
+ * use this file except in compliance with the License. You may obtain a copy 
of
+ * the License at
+ * 
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an AS IS BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations 
under
+ * the License.
+ */
+package com.google.gwt.visualization.client;
+
+/**
+ * This class represents the DataView.
+ * 
+ * @see a
+ *  
href=http://code.google.com/apis/visualization/documentation/reference.html#DataView;
+ *  DataView API Reference/a
+ */
+public class DataView extends AbstractDataTable {
+
+  public static native DataView create(DataTable table) /*-{
+return new $wnd.google.visualization.DataView(table);
+  }-*/;
+
+  protected DataView() {
+  }
+
+  public final native int getTableColumnIndex(int viewColumnIndex) /*-{
+return this.getTableColumnIndex(viewColumnIndex);
+  }-*/;
+
+  public final native int getViewColumnIndex(int tableColumnIndex) /*-{
+return this.getViewColumnIndex(tableColumnIndex);
+  }-*/;
+  
+  public final native void setColumns(int[] columnIndices) /*-{
+this.setColumns(columnIndices);
+  }-*/;
+}
Index: 
visualization/src/com/google/gwt/visualization/client/AbstractDataTable.java
===
--- 
visualization/src/com/google/gwt/visualization/client/AbstractDataTable.java
(revision 885)
+++ 
visualization/src/com/google/gwt/visualization/client/AbstractDataTable.java
(working copy)
@@ -20,13 +20,13 @@
 import java.util.Date;
 
 /**
- * This class represents the DataTable.
+ * This class implements the common methods of DataTable and DataView.
  * 
  * @see a
  *  
href=http://code.google.com/apis/visualization/documentation/reference.html#DataTable;
  *  DataTable API Reference/a
  */
-public class DataTable extends JavaScriptObject {
+public class AbstractDataTable extends JavaScriptObject {
 
   /**
* The type of a column.
@@ -43,33 +43,9 @@
 }
   }
 
-  public static native DataTable create() /*-{
-return new $wnd.google.visualization.DataTable();
-  }-*/;
-
-  protected DataTable() {
+  protected AbstractDataTable() {
   }
 
-  public final int addColumn(ColumnType type) {
-return addColumn(type.getParameter());
-  }
-
-  public final int addColumn(ColumnType type, String label) {
-return addColumn(type.getParameter(), label);
-  }
-
-  public final int addColumn(ColumnType type, String label, String id) {
-return addColumn(type.getParameter(), label, id);
-  }
-
-  public final native int addRow() /*-{
-return this.addRow();
-  }-*/;
-
-  public final native int addRows(int number) /*-{
-return this.addRows(number);
-  }-*/;
-
   public final native String getColumnId(int columnIndex) /*-{
 return this.getColumnId(columnIndex);
   }-*/;
@@ -123,154 +99,6 @@
 return this.getValue(rowIndex, columnIndex);
   }-*/;
   
-  public final void insertColumn(int columnIndex, ColumnType type) {
-insertColumn(columnIndex, type.getParameter());
-  }
-  
-  public final void insertColumn(int columnIndex, ColumnType type,
-  String label) {
-

[gwt-contrib] code review requested for 1.5, issues 2836, 2894, 2911 - various I18NSync issues

2008-10-14 Thread John Tamplin
Please review this change for 1.5.3 which fixes a number of small issues.
The patch is larger than you might expect because it includes parts copied
from elsewhere (and then simplified) for choosing what characters to quote
and how to quote them, but at this point I felt it was safer to copy them
than to try and refactor the code to make it usable here.  Tests were
corrected (previously the output could be nondeterministic in the case of
duplicated keys in the properties file, now it is deterministic which
required some changes to tests which only happened to work before) and new
tests added.  The last part of the bulk is the updating the generated files
to match the output of I18NSync.

Toby, I would like you to look at the ClassLoader changes to I18NSync.java
-- you can ignore the rest if you like.

This was tested by running I18NSyncTest_ (which is not included in our test
suite) and then running I18NSuite which runs all the tests using the
generated code.

-- 
John A. Tamplin
Software Engineer (GWT), Google

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

Index: user/src/com/google/gwt/i18n/rebind/MessagesInterfaceCreator.java
===
--- user/src/com/google/gwt/i18n/rebind/MessagesInterfaceCreator.java	(revision 3751)
+++ user/src/com/google/gwt/i18n/rebind/MessagesInterfaceCreator.java	(working copy)
@@ -92,8 +92,7 @@
 
   @Override
   protected void genValueAnnotation(String defaultValue) {
-composer.println(@DefaultMessage(\ + defaultValue.replace(\, \\\)
-+ \));
+composer.println(@DefaultMessage( + makeJavaString(defaultValue) + ));
   }
 
   @Override
Index: user/src/com/google/gwt/i18n/rebind/ConstantsInterfaceCreator.java
===
--- user/src/com/google/gwt/i18n/rebind/ConstantsInterfaceCreator.java	(revision 3751)
+++ user/src/com/google/gwt/i18n/rebind/ConstantsInterfaceCreator.java	(working copy)
@@ -50,8 +50,8 @@
 
   @Override
   protected void genValueAnnotation(String defaultValue) {
-composer.println(@DefaultStringValue(\ + defaultValue.replace(\, \\\)
-+ \));
+composer.println(@DefaultStringValue( + makeJavaString(defaultValue)
++ ));
   }
 
   @Override
Index: user/src/com/google/gwt/i18n/rebind/AbstractLocalizableInterfaceCreator.java
===
--- user/src/com/google/gwt/i18n/rebind/AbstractLocalizableInterfaceCreator.java	(revision 3751)
+++ user/src/com/google/gwt/i18n/rebind/AbstractLocalizableInterfaceCreator.java	(working copy)
@@ -33,6 +33,7 @@
 import java.io.PrintWriter;
 import java.io.Writer;
 import java.util.ArrayList;
+import java.util.Arrays;
 import java.util.HashSet;
 import java.util.Iterator;
 import java.util.List;
@@ -50,20 +51,32 @@
 
 @Override
 public String format(String key) {
-  if (methodNames.contains(key)) {
+  while (methodNames.contains(key)) {
 key += _dup;
-return format(key);
-  } else {
-methodNames.add(key);
-return key;
   }
+  methodNames.add(key);
+  return key;
 }
   }
 
   private static class ReplaceBadChars extends ResourceKeyFormatter {
 @Override
 public String format(String key) {
-  return DEFAULT_CHARS.matcher(key).replaceAll(_);
+  StringBuilder buf = new StringBuilder();
+  int keyLen = key == null ? 0 : key.length();
+  for (int i = 0; i  keyLen; i = key.offsetByCodePoints(i, 1)) {
+int codePoint = key.codePointAt(i);
+if (i == 0 ? Character.isJavaIdentifierStart(codePoint)
+: Character.isJavaIdentifierPart(codePoint)) {
+  buf.appendCodePoint(codePoint);
+} else {
+  buf.append('_');
+}
+  }
+  if (buf.length() == 0) {
+buf.append('_');
+  }
+  return buf.toString();
 }
   }
 
@@ -71,8 +84,48 @@
 public abstract String format(String key);
   }
 
-  private static Pattern DEFAULT_CHARS = Pattern.compile([.-]);
+  /**
+   * Index into this array using a nibble, 4 bits, to get the corresponding
+   * hexa-decimal character representation.
+   */
+  private static final char NIBBLE_TO_HEX_CHAR[] = {
+'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D',
+'E', 'F'
+};
 
+  private static void unicodeEscape(char ch, StringBuilder buf) {
+buf.append('\\');
+buf.append('u');
+buf.append(NIBBLE_TO_HEX_CHAR[(ch  12)  0x0F]);
+buf.append(NIBBLE_TO_HEX_CHAR[(ch  8)  0x0F]);
+buf.append(NIBBLE_TO_HEX_CHAR[(ch  4)  0x0F]);
+buf.append(NIBBLE_TO_HEX_CHAR[ch  0x0F]);
+  }
+
+  private static boolean needsUnicodeEscape(char ch) {
+if (ch == ' ') {
+  return false;
+}
+switch (Character.getType(ch)) {
+  case Character.COMBINING_SPACING_MARK:
+  case 

[gwt-contrib] Re: [gwt-team] Release Notes for review

2008-10-14 Thread Alex Rudnick

We'd gotten a report that for some IEs, when you instantiate the XHR
with new ActiveXObject(Microsoft.XMLHTTP), if you try to do a GET
with that object, it does a POST. This patch fixed that problem by
using a different string (or just the native XMLlHttpRequest object).
I was able to reproduce it for a while, but the underlying bug also
seems to have been fixed by an update on my Windows install.

This was a problem with anything that involved HTTPRequest, not just rpc.

On Tue, Oct 14, 2008 at 10:19 AM, John LaBanca [EMAIL PROTECTED] wrote:
 Rajeev / Alex -

 Can you summarize what the problem with RequestBuilder and RPC?  I don't see
 an issue associated with the fix, and it would be good to use something more
 descriptive than it was broke.

 Here is the commit log:

 For IE7, we should be instantiating an XHR with the native XMLHttpRequest
 object. On IE6, try specifying which version you want first, then falling
 back
 to Microsoft.XMLHTTP. This seems to work around the do a POST when you
 asked
 for a GET bug on some IE6 installs.

-- 
Alex Rudnick
swe, gwt, atl

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



[gwt-contrib] redirect results

2008-10-14 Thread deanhiller

1st issue
I am interested in looking at the code that handles errors coming back
from an XmlHttpRequest.  After checkout, where would I look for this?

Basically, in seam using AJAX, if the response to an XmlHttpRequest is
a redirect message, the entire page redirects.  I kinda wanted the
same thing in GWT so I could reuse an already written ServletFilter
which redirects for security purposes(but alas doesn't work).  I tend
to think this could be fixed OR at the very least could result in a
RedirectUnhandledException rather than a standard InvocationException.

2nd issue
Also, I would move my filter code down into a common processCallImpl
method where I would like to throw Exceptions that GWT
RemoteServiceServlet would translate but this is not possible as the
code was moved into RPC static methods.  I really want a method in
RemoteServiceServlet like so

processCallImpl(Method m, Object[] params) {
   return m.invoke(params);
}

Then, I can override that and use it as a filter(and my method would
call super.processCallImpl.

thanks,
Dean

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



[gwt-contrib] [google-web-toolkit commit] r3752 - in releases/1.5/user: src/com/google/gwt/user/client/rpc/impl src/com/google/gwt/user/ser...

2008-10-14 Thread codesite-noreply

Author: [EMAIL PROTECTED]
Date: Tue Oct 14 11:51:17 2008
New Revision: 3752

Modified:
 
releases/1.5/user/src/com/google/gwt/user/client/rpc/impl/AbstractSerializationStream.java
 
releases/1.5/user/src/com/google/gwt/user/client/rpc/impl/ClientSerializationStreamWriter.java
 
releases/1.5/user/src/com/google/gwt/user/server/rpc/impl/ServerSerializationStreamReader.java
 
releases/1.5/user/src/com/google/gwt/user/server/rpc/impl/ServerSerializationStreamWriter.java
 
releases/1.5/user/test/com/google/gwt/user/client/rpc/TestSetValidator.java
 
releases/1.5/user/test/com/google/gwt/user/client/rpc/UnicodeEscapingService.java
 
releases/1.5/user/test/com/google/gwt/user/client/rpc/UnicodeEscapingServiceAsync.java
 
releases/1.5/user/test/com/google/gwt/user/client/rpc/UnicodeEscapingTest.java
releases/1.5/user/test/com/google/gwt/user/server/rpc/RPCTest.java
 
releases/1.5/user/test/com/google/gwt/user/server/rpc/UnicodeEscapingServiceImpl.java

Log:
Fix RPC quoting and add more thorough tests for both client-server and
server-client.

All Unicode characters can now be sent in both directions via RPC on all
supported browsers, though some browsers will still have some issues with a
few characters.  Problem areas to consider if you run into trouble are:
   - combining diacritical marks being combined with other characters
   - unpaired or incorrectly paired surrogates
   - undefined characters, such as U+

Note that we have special-case Android WebKit due to a bug in its UTF8
handling -- issue 2980 has been created to track removing this when the
problem is resolved.

Issues: 1137, 1906
Patch by: jat
Review by: jgw



Modified:  
releases/1.5/user/src/com/google/gwt/user/client/rpc/impl/AbstractSerializationStream.java
==
---  
releases/1.5/user/src/com/google/gwt/user/client/rpc/impl/AbstractSerializationStream.java
   
(original)
+++  
releases/1.5/user/src/com/google/gwt/user/client/rpc/impl/AbstractSerializationStream.java
   
Tue Oct 14 11:51:17 2008
@@ -15,6 +15,8 @@
   */
  package com.google.gwt.user.client.rpc.impl;

+import com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter;
+
  /**
   * Base class for the client and server serialization streams. This class
   * handles the basic serialization and deserialization formatting for  
primitive
@@ -23,9 +25,21 @@
  public abstract class AbstractSerializationStream {

/**
+   * The character used to separate fields in client-server RPC messages.
+   *
+   * Note that this character is referenced in the following places not
+   * using this constant, and they must be changed if this is:
+   * ul
+   * li[EMAIL PROTECTED] 
ServerSerializationStreamWriter}.deserializeStringTable
+   * li[EMAIL PROTECTED] ClientSerializationStreamReader}.getQuotingRegex
+   * /ul
+   */
+  public static final char RPC_SEPARATOR_CHAR = '|';
+
+  /**
 * This is the only supported RPC protocol version.
 */
-  public static final int SERIALIZATION_STREAM_VERSION = 4;
+  public static final int SERIALIZATION_STREAM_VERSION = 5;

private int flags = 0;
private int version = SERIALIZATION_STREAM_VERSION;

Modified:  
releases/1.5/user/src/com/google/gwt/user/client/rpc/impl/ClientSerializationStreamWriter.java
==
---  
releases/1.5/user/src/com/google/gwt/user/client/rpc/impl/ClientSerializationStreamWriter.java
   
(original)
+++  
releases/1.5/user/src/com/google/gwt/user/client/rpc/impl/ClientSerializationStreamWriter.java
   
Tue Oct 14 11:51:17 2008
@@ -16,8 +16,10 @@
  package com.google.gwt.user.client.rpc.impl;

  import com.google.gwt.core.client.GWT;
+import com.google.gwt.core.client.JavaScriptObject;
  import com.google.gwt.core.client.UnsafeNativeLong;
  import com.google.gwt.user.client.rpc.SerializationException;
+import com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader;

  import java.util.List;

@@ -27,18 +29,86 @@
  public final class ClientSerializationStreamWriter extends
  AbstractSerializationStreamWriter {

+  /**
+   * Used by JSNI, see [EMAIL PROTECTED] #quoteString(String)}.
+   */
+  @SuppressWarnings(unused)
+  private static JavaScriptObject regex = getQuotingRegex();
+
private static void append(StringBuffer sb, String token) {
  assert (token != null);
  sb.append(token);
-sb.append('\u');
+sb.append(RPC_SEPARATOR_CHAR);
}

+  /**
+   * Create the RegExp instance used for quoting dangerous characters in
+   * user payload strings.
+   *
+   * Note that [EMAIL PROTECTED] 
AbstractSerializationStream#RPC_SEPARATOR_CHAR} is  
used in
+   * this expression, which must be updated if the separator character is
+   * changed.
+   *
+   * For Android WebKit, we quote many more characters to keep them from
+   * being mangled.
+   *
+   * @return RegExp object
+   */
+  

[gwt-contrib] Re: [gwt-team] Release Notes for review

2008-10-14 Thread Scott Blum
I don't think anything I did merits explicit release notes call out; let's
remember to include a query link for all fixed issues.

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



[gwt-contrib] Re: code review requested for 1.5 branch, RPC quoting, issues 1137, 1906, and more

2008-10-14 Thread Joel Webber
LGTM. All the tests seem to work properly on the emulator. Would you mind
entering an issue to come back and loosen up the escaping regex, once the
Android encoding bug gets fixed?

On Tue, Oct 14, 2008 at 6:37 AM, John Tamplin [EMAIL PROTECTED] wrote:

 On Mon, Oct 13, 2008 at 11:27 AM, Joel Webber [EMAIL PROTECTED] wrote:

 Running RPCSuite, it looks like everything passes except for
 UnicodeEscapingTest.testClientToServer[Non]BMP(), which cause the exceptions
 described below, on the server.


 Ok, here is a revised patch, which adds quoting for all non-ASCII
 characters on Android.  Given the way this is structured, this check is only
 performed once when ClientSerializationStreamWriter is initialized, so I
 think it is acceptable overhead.  While it isn't clear how these characters
 would be entered (they could come from the server), if they aren't used
 there is no cost and it guarantees that they will be properly handled.

 When the UTF8 encoding issue is fixed, we can revisit how we want to handle
 the Android version check.

 --
 John A. Tamplin
 Software Engineer (GWT), Google


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



[gwt-contrib] Re: code review requested for 1.5 branch, RPC quoting, issues 1137, 1906, and more

2008-10-14 Thread John Tamplin
On Tue, Oct 14, 2008 at 3:22 PM, Joel Webber [EMAIL PROTECTED] wrote:

 LGTM. All the tests seem to work properly on the emulator. Would you mind
 entering an issue to come back and loosen up the escaping regex, once the
 Android encoding bug gets fixed?


Committed to releases/1.5 at r3752, issue 2980 created.

-- 
John A. Tamplin
Software Engineer (GWT), Google

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



[gwt-contrib] Re: code review requested for 1.5, issues 2836, 2894, 2911 - various I18NSync issues

2008-10-14 Thread Alex Rudnick

Alright, taking a look!

The code looks good (one typographical nit), but I'm pretty sure you
should change the comments in the tests that reference local files on
your machine. Also, all the test files should have copyright notices
(don't they?), but it looks like you took some of them out.

Let me know if I'm confused about the copyright notices.

Particular notes:
user/src/com/google/gwt/i18n/rebind/AbstractLocalizableInterfaceCreator.java
89: Probably don't need a dash in hexa-decimal.

user/test/com/google/gwt/i18n/client/gen/Colors.java
Why no copyright/license notice at the top?

Also, most people don't have a /usr/local/google/home/jat directory handy.

user/test/com/google/gwt/i18n/client/gen/TestMessages.java:
Again, took out the copyright notice?

user/test/com/google/gwt/i18n/client/gen/SingleMessages.java:
No copyright notice, reference to /usr/local/google/home/jat

user/test/com/google/gwt/i18n/client/gen/TestMessagesQuoting.java:
Reference to /usr/local/google/home/jat

user/test/com/google/gwt/i18n/client/gen/TestBadKeys.java:
user/test/com/google/gwt/i18n/client/gen/TestConstantsQuoting.java:
user/test/com/google/gwt/i18n/client/gen/Shapes.java:
user/test/com/google/gwt/i18n/client/gen/SingleConstant.java:

No copyright notice, reference to /usr/local/google/home/jat

On Tue, Oct 14, 2008 at 2:05 PM, John Tamplin [EMAIL PROTECTED] wrote:
 Please review this change for 1.5.3 which fixes a number of small issues.
 The patch is larger than you might expect because it includes parts copied
 from elsewhere (and then simplified) for choosing what characters to quote
 and how to quote them, but at this point I felt it was safer to copy them
 than to try and refactor the code to make it usable here.  Tests were
 corrected (previously the output could be nondeterministic in the case of
 duplicated keys in the properties file, now it is deterministic which
 required some changes to tests which only happened to work before) and new
 tests added.  The last part of the bulk is the updating the generated files
 to match the output of I18NSync.

 Toby, I would like you to look at the ClassLoader changes to I18NSync.java
 -- you can ignore the rest if you like.

 This was tested by running I18NSyncTest_ (which is not included in our test
 suite) and then running I18NSuite which runs all the tests using the
 generated code.

 --
 John A. Tamplin
 Software Engineer (GWT), Google


-- 
Alex Rudnick
swe, gwt, atl

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



[gwt-contrib] Re: RR: SOYC Correlation work

2008-10-14 Thread Lex Spoon
Kathrin and I reviewed this together.

In general, this solves an important use case, so let's move forward
on it aside from minor issues.

The following use cases are the ones we could think of:
  - Seeing what amount of output code (and in fact the actual code if you
  want) corresponds to what input Java code, at several granularities:
  field, method, class, file.  This information is obtained by the
  current patch.

  - Browsing call graphs to see why a particular method (field, type,
  ...) is included or why it is considered reachable before any
  runAsync occurs even though the programmer intended otherwise.  This
  is not yet implemented but would be simple to add a new correlate
  for why a node is kept alive.  Normal Pruner runs would not fill
  this in, probably, for efficiency, but it should be enough to run
  the Pruner once, after all optimization is done, in a mode that
  causes the reasons to be recorded.

  - Helping trace a method all the way through compilation.  This has
  too many open questions to really address right now.

  - As a helper for the runAsync implementation.  I think the general
  structure is fine.  I will give it a try and we can follow up in
  further iterations.

There is one possibly important general concern that you should look
at right now.  SourceInfo is compared by value, but there can be
multiple source infos for the same file, line number, etc. that are
nonetheless not the same object.  For example, several of the
getLiteralFoo methods in JProgram will generate SourceInfos that have
exactly the same fields but are separate objects.

The reason this might matter is that SourceInfo also has some fields
that use SortedSets of SourceInfo.  If you add as ancestors two
SourceInfos that are not reference equal but that have all their
fields the same, then only one will actually be added as an ancestor.
Since individual SourceInfo objects carry correlates, this could
seemingly lead to problems.

One way to fix things would be to add a unique id to all created
source infos.  Another possible solution would be to use a
LinkedHashSet in the implementation, and then sort when the report
would be made.  I'm not sure, it just looked like a possible issue you
might want to think about.


Other general issues can wait.  For example, what does parent/child
mean?  I originally thought that it meant that the child is a later
version of the parent, after some optimization.  However, that isn't
the case on further thought.  There are many places where a node is
considered a child of some other node that it is related to in another
way.  For example, methods are considered children of their
surrounding types.

For runAsync in particular, it might be necessary to have fewer
parent-child links and to do more with explicit correlates.  I'll look
into that as soon as possible.

Finally, finding correlates is unfortunately slow, because the whole
chain of parents and ancestors is chased every time a request is made.
At some point it might help to do one of:

  - Eagerly copy down correlations, instead of waiting for a call to
getCorrelates.  Possibly even don't keep the parent links with
this approach.

  - Disallow adding ancestors after some point, like with a builder
pattern.  This might help keep caches from being invalidated too
frequently.


smaller but real concerns:

One of the two versions of BuildTypeMap.emakeSourceInfo does not
check enclosing for null, but it can be null.

Correlation.equals() and .hashCode() should account for the underlying
AST node if present.  Otherwise, there will be confusion if different
objects have the same associated ident.  It seems like that can
happen, for example due to overloading.


smaller concerns you might or might not want to do
anything about right now:

SourceInfo.compareTo assumes fileName is not null.  Is that reliable,
or would it be better to use compareTwo?  If it needs to not be null
it would be nice to have an assert in the constructor.

SortedSet.getRoots: it looks valuable to use the cache even if there
is a parent and no ancestors.  Otherwise, the compiler can end up
repeatedly chasing the same chain of parents.  So, it looks better to
consistently use and update the cache, except possibly in the case
where a node is itself a root.  To simply all this, it might help to
break out a separate computeRoots() methods that does not cache.

SourceInfo.additionalAncestors could be null in the common case (isn't
it?) that there are no ancestors.  Currently it always holds a
TreeSet, even when it's empty.  Normally I'd hate such a
micro-optimization, but there are likely to be a lot of SourceInfos
floating around.

SourceInfo.hashCode: Adding the individual hashes is fine but it's
better to scramble them up.  Josh Bloch recommends a pattern like the
following:

  int result = 17;
  result = 37 * result + hash1;
  result = 37 * result + hash2;
  // etc
  return result;

  

[gwt-contrib] Re: [gwt-team] Release Notes for review

2008-10-14 Thread Rajeev Dayal
HTTPRequests no long POST instead of GET in some IE installs because of
incorrect XHR selection
should be

HTTPRequests no longer POST instead of GET in some IE installs because of
incorrect XHR selection

On Tue, Oct 14, 2008 at 4:20 PM, John LaBanca [EMAIL PROTECTED] wrote:

 Alright, please take a final look at the changes you all recommended and
 give a LGTM if the release notes look good.
 http://www.corp.google.com/~jlabanca/release_notes.htmlhttp://www.corp.google.com/%7Ejlabanca/release_notes.html

 Thanks,
 John LaBanca
 [EMAIL PROTECTED]


 On Tue, Oct 14, 2008 at 3:08 PM, Scott Blum [EMAIL PROTECTED] wrote:

 I don't think anything I did merits explicit release notes call out; let's
 remember to include a query link for all fixed issues.




 


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



[gwt-contrib] Re: [gwt-team] Release Notes for review

2008-10-14 Thread John LaBanca
Alright, please take a final look at the changes you all recommended and
give a LGTM if the release notes look good.
http://www.corp.google.com/~jlabanca/release_notes.htmlhttp://www.corp.google.com/%7Ejlabanca/release_notes.html

Thanks,
John LaBanca
[EMAIL PROTECTED]


On Tue, Oct 14, 2008 at 3:08 PM, Scott Blum [EMAIL PROTECTED] wrote:

 I don't think anything I did merits explicit release notes call out; let's
 remember to include a query link for all fixed issues.

 


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

Index: distro-source/core/src/release_notes.html
===
--- distro-source/core/src/release_notes.html	(revision 3752)
+++ distro-source/core/src/release_notes.html	(working copy)
@@ -29,6 +29,7 @@
   h1Google Web Toolkit Release Notes/h1
   ul
 		lia href=#Release_Notes_Current@GWT_VERSION@/a/li
+		lia href=#Release_Notes_1_5_21.5.2/a/li
 		lia href=#Release_Notes_1_5_11.5.1 (RC2)/a/li
 		lia href=#Release_Notes_1_5_01.5.0 (RC)/a/li
 		lia href=#Release_Notes_1_4_601.4.60/a/li
@@ -46,6 +47,25 @@
   hr/
   a name=Release_Notes_Current/a
   h2Release Notes for @GWT_VERSION@/h2
+  h3Fixed Issues/h3
+  ul
+liRPC requests no longer fail on the embedded Android web browser/li
+liLeaf codeTreeItems/code now line up with their non-leaf siblings/li
+liRemoving the last child node from a codeTreeItem/code no longer creates extra margins on the left/li
+liHTTPRequests no long POST instead of GET in some IE installs because of incorrect XHR selection/li
+liCompiler now uses a more reliable check to prevent methods with local variables from being inlined/li
+ligetAbsoluteTop/Left can no longer return non-integral values/li
+liTime.valueOf no longer fails to parse 08:00:00 or incorrectly accepts 0xC:0xB:0xA./li
+  /ul
+  p
+See the GWT issue tracker for
+a href=http://code.google.com/p/google-web-toolkit/issues/list?can=1q=status%3AFixed%2CFixedNotReleased%20milestone%3A1_5_3num=1000;
+the complete list of bug fixes and enhancements/a in this release.
+  /p
+
+  hr/
+  a name=Release_Notes_1_5_2/a
+  h2Release Notes for 1.5.2/h2
   h3Potentially breaking changes and fixes/h3
   ul
 licodeHistory.onHistoryChanged()/code has been added back (it was missing from 1.5 RC2) but is now deprecated.  Application startup should be handled by calling the new codeHistory.fireCurrentHistoryState()/code./li


[gwt-contrib] Re: [gwt-team] Release Notes for review

2008-10-14 Thread Scott Blum
Just formatting nitpicks.1)  All code needs to use the HTML for code.
2)  Any code that refers to a method should be postfixed with parentheses.
See the formatting in 1.5.2 notes.

Specifically:
HTTPRequests - make singular to match class name, use code style
getAbsoluteTop/Left - getAbsoluteTop()/Left() +codestyle
Time.valueOf - Time.valueOf()  +codestyle
08:00:00 - 08:00:00 +codestyle
0xC:0xB:0xA - 0xC:0xB:0xA +codestyle

On Tue, Oct 14, 2008 at 4:20 PM, John LaBanca [EMAIL PROTECTED] wrote:

 Alright, please take a final look at the changes you all recommended and
 give a LGTM if the release notes look good.
 http://www.corp.google.com/~jlabanca/release_notes.htmlhttp://www.corp.google.com/%7Ejlabanca/release_notes.html

 Thanks,
 John LaBanca
 [EMAIL PROTECTED]


 On Tue, Oct 14, 2008 at 3:08 PM, Scott Blum [EMAIL PROTECTED] wrote:

 I don't think anything I did merits explicit release notes call out; let's
 remember to include a query link for all fixed issues.




 


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



[gwt-contrib] Re: code review requested for 1.5, issues 2836, 2894, 2911 - various I18NSync issues

2008-10-14 Thread John Tamplin
On Tue, Oct 14, 2008 at 3:41 PM, Alex Rudnick [EMAIL PROTECTED] wrote:

 The code looks good (one typographical nit), but I'm pretty sure you
 should change the comments in the tests that reference local files on
 your machine. Also, all the test files should have copyright notices
 (don't they?), but it looks like you took some of them out.

 Let me know if I'm confused about the copyright notices.


The existing code that was checked in had copyright notices.  However, they
are generated files, which typically don't have them - they were manually
added before when we went through all of the files and added copyright
headers.  To maintain that, we would need to have I18NSync generate a header
(and since it is used by external users that would need to be configurable
as they probably wouldn't like us putting a Google copyright notice on their
generated fiels) or manually edit them.


 Particular notes:

 user/src/com/google/gwt/i18n/rebind/AbstractLocalizableInterfaceCreator.java
 89: Probably don't need a dash in hexa-decimal.

 user/test/com/google/gwt/i18n/client/gen/Colors.java
 Why no copyright/license notice at the top?


Generated code, as mentioned above.


 Also, most people don't have a /usr/local/google/home/jat directory handy.


It seems useful in general to have the code generator include a comment
about what it was generated from.  However, I agree that isn't really
appropriate here.  Maybe all these generated files should be manually edited
for checkin -- otherwise we probably need to add options to I18NSync to
specify the header and whether to include the source file name.  Another
option would be to strip off part of the path, such as from a classpath root
so it would just get com/google/gwt/i18n/client/gen/*.properties.

-- 
John A. Tamplin
Software Engineer (GWT), Google

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



[gwt-contrib] Re: FF3 winxp on OOPHM rev 3747 branch fails with No GWT plugin found

2008-10-14 Thread gslender

Comments below...

On Oct 14, 6:25 pm, John Tamplin [EMAIL PROTECTED] wrote:
 Can you reproduce this with the samples?  Say, run Hello-shell then refresh
 the page?  For me, it shows the old one disconnected and creates a new
 connection, as expected.  Where do you get the out of bounds exception?

Yes, a simple GWT example application works fine. No problems.

 If it is only with your application, can you provide any details about it?

Ok. It seems related to the fact that I'm using ExtGWT - the app works
fine in 1.5.2 (it is just crazy simple little single panel with
nothing in it). Error msg is...

00:00:17.360 [ERROR] Unable to load module entry point class
com.sample.client.Test (see associated exception for details)
java.lang.IndexOutOfBoundsException: Index: 17, Size: 0 at
java.util.ArrayList.RangeCheck(Unknown Source) at
java.util.ArrayList.get(Unknown Source) at
com.extjs.gxt.ui.client.core.XElement$.setStyleAttribute$(Native
Method) at com.extjs.gxt.ui.client.core.El.setStyleAttribute(El.java:
2143) at
com.extjs.gxt.ui.client.widget.Layout.applyMargins(Layout.java:234) at
com.extjs.gxt.ui.client.widget.Layout.renderComponent(Layout.java:193)
at com.extjs.gxt.ui.client.widget.Layout.renderAll(Layout.java:173) at
com.extjs.gxt.ui.client.widget.Layout.onLayout(Layout.java:165) at
com.extjs.gxt.ui.client.widget.layout.FitLayout.onLayout(FitLayout.java:
45) at com.extjs.gxt.ui.client.widget.Layout.layout(Layout.java:69) at
com.extjs.gxt.ui.client.widget.Container.doLayout(Container.java:259)
at com.extjs.gxt.ui.client.widget.Container.layout(Container.java:347)
at
com.extjs.gxt.ui.client.widget.LayoutContainer.layout(LayoutContainer.java:
236) at
com.extjs.gxt.ui.client.widget.Container.onAttach(Container.java:354)
at com.extjs.gxt.ui.client.widget.Viewport.onAttach(Viewport.java:73)
at com.google.gwt.user.client.ui.Widget.setParent(Widget.java:231) at
com.google.gwt.user.client.ui.Panel.adopt(Panel.java:119) at
com.google.gwt.user.client.ui.ComplexPanel.add(ComplexPanel.java:86)
at com.google.gwt.user.client.ui.AbsolutePanel.add(AbsolutePanel.java:
80) at com.sample.client.Test.onModuleLoad(Test.java:20) at
java.lang.Thread.run(Unknown Source)


And this is the native code that somehow causes the
IndexOutOfBoundsException ??

public final native void setStyleAttribute(String attr, Object value) /
*-{
 this.setStyle(attr, value);
   }-*/;

Go figure?

 WebKit is already supported, so you can use most WebKit-derived browsers on
 MacOSX (Safari on Windows doesn't support the same plugin infrastructure).

 --
 John A. Tamplin
 Software Engineer (GWT), Google
--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] Re: Code Review: gwt-google-apis gears Add support for message types other than String()

2008-10-14 Thread Alex Rudnick

Hey Eric :) I'll take this one.

LGTM, save the (formatting) comments below and a question about documentation.

gears/test/com/google/gwt/gears/client/workerpool/WorkerPoolTest.java:
388: Should probably take out the commented-out
testReceiveMessageObject. Unless you wanted to put this one in?
473: Extra newline?

gears/src/com/google/gwt/gears/client/workerpool/WorkerPool.java:
LGTM

gears/src/com/google/gwt/gears/client/workerpool/WorkerPoolMessageHandler.java:
50: If the message is not really an Array type, the method may throw
a JavaScriptException.

What's an example of a case where it wouldn't throw an exception on a
type mismatch? A quick explanation of why this would happen (or a link
to one) would be helpful. Likewise for other javadocs in the file.

On Mon, Oct 13, 2008 at 4:27 PM, Eric Ayers [EMAIL PROTECTED] wrote:

 This was reported as issue 182:

   http://code.google.com/p/gwt-google-apis/issues/detail?id=182

-- 
Alex Rudnick
swe, gwt, atl

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



[gwt-contrib] Re: code review requested for 1.5 branch, RPC quoting, issues 1137, 1906, and more

2008-10-14 Thread John Tamplin
On Mon, Oct 13, 2008 at 11:27 AM, Joel Webber [EMAIL PROTECTED] wrote:

 Running RPCSuite, it looks like everything passes except for
 UnicodeEscapingTest.testClientToServer[Non]BMP(), which cause the exceptions
 described below, on the server.


Ok, here is a revised patch, which adds quoting for all non-ASCII characters
on Android.  Given the way this is structured, this check is only performed
once when ClientSerializationStreamWriter is initialized, so I think it is
acceptable overhead.  While it isn't clear how these characters would be
entered (they could come from the server), if they aren't used there is no
cost and it guarantees that they will be properly handled.

When the UTF8 encoding issue is fixed, we can revisit how we want to handle
the Android version check.

-- 
John A. Tamplin
Software Engineer (GWT), Google

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

Index: user/test/com/google/gwt/user/client/rpc/UnicodeEscapingTest.java
===
--- user/test/com/google/gwt/user/client/rpc/UnicodeEscapingTest.java	(revision 3731)
+++ user/test/com/google/gwt/user/client/rpc/UnicodeEscapingTest.java	(working copy)
@@ -17,68 +17,220 @@
 
 import com.google.gwt.core.client.GWT;
 import com.google.gwt.junit.client.GWTTestCase;
+import com.google.gwt.user.client.rpc.UnicodeEscapingService.InvalidCharacterException;
 
 /**
- * Test which verifies that we properly escape JSON strings sent back from the
- * server.
+ * Test that any valid string can be sent via RPC in both directions.
+ * 
+ * TODO(jat): make unpaired surrogates work properly if it is possible to do
+ * so on all browsers, then add them to this test.
  */
 public class UnicodeEscapingTest extends GWTTestCase {
 
-  private static final int DEFAULT_TEST_FINISH_DELAY_MS = 5000;
-  private static final int CHARACTER_RANGE_SIZE = 1024;
-  private static final int LAST_CHARACTER = 0x1;
+  /** the size of a block of characters to test */
+  private static final int CHARACTER_BLOCK_SIZE = 64;
 
-  private int start = 0;
+  /**
+   * When doing the non-BMP test, we don't test every block of characters
+   * because it takes too long - this is the increment to use.  It is not a
+   * power of two so we alter the alignment of the block of characters we skip.
+   */
+  private static final int NON_BMP_TEST_INCREMENT = 8192 + 64;
 
+  /** the time to wait for the test of a block of characters */
+  private static final int TEST_FINISH_DELAY_MS = 50;
+
+  /**
+   * Generates a string containing a sequence of code points.
+   * 
+   * @param start first code point to include in the string
+   * @param end one past the last code point to include in the string
+   * @return a string containing all the requested code points
+   */
+  public static String getStringContainingCharacterRange(int start, int end) {
+StringBuffer buf = new StringBuffer();
+for (int codePoint = start; codePoint  end; ++codePoint) {
+  if (Character.isSupplementaryCodePoint(codePoint)) {
+buf.append(Character.toChars(codePoint));
+  } else {
+buf.append((char) codePoint);
+  }
+}
+
+return buf.toString();
+  }
+
+  /**
+   * Verifies that the supplied string includes the requested code points.
+   * 
+   * @param start first code point to include in the string
+   * @param end one past the last code point to include in the string
+   * @param str the string to test
+   * @throws InvalidCharacterException if a character doesn't match
+   * @throws RuntimeException if the string is too long
+   */
+  public static void verifyStringContainingCharacterRange(int start, int end,
+  String str) throws InvalidCharacterException {
+if (str == null) {
+  throw new NullPointerException(String is null);
+}
+int expectedLen = end - start;
+int strLen = str.codePointCount(0, str.length());
+for (int i = 0, codePoint = start; i  strLen;
+i = Character.offsetByCodePoints(str, i, 1)) {
+  int strCodePoint = str.codePointAt(i);
+  if (strCodePoint != codePoint) {
+throw new InvalidCharacterException(i, codePoint, strCodePoint);
+  }
+  ++codePoint;
+}
+if (strLen  expectedLen) {
+  throw new InvalidCharacterException(strLen, start + strLen, -1);
+} else if (expectedLen != strLen) {
+  throw new RuntimeException(Too many characters returned on block from U+
+  + Integer.toHexString(start) +  to U+ + Integer.toHexString(end)
+  + : expected= + expectedLen + , actual= + strLen);
+}
+  }
   private static UnicodeEscapingServiceAsync getService() {
-UnicodeEscapingServiceAsync service = (UnicodeEscapingServiceAsync) GWT.create(UnicodeEscapingService.class);
+UnicodeEscapingServiceAsync service = GWT.create(
+UnicodeEscapingService.class);
 

[gwt-contrib] Re: FF3 winxp on OOPHM rev 3747 branch fails with No GWT plugin found

2008-10-14 Thread gslender

So is there any way to find out where/what is really causing this
array IndexOutOfBoundsException ??

It must be the JS parser within GWT I'm guessing?

Cheers,
Grant

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



[gwt-contrib] Re: Code Review: gwt-google-apis gears Add support for message types other than String()

2008-10-14 Thread Eric Ayers

Thanks for the comments.

On Tue, Oct 14, 2008 at 5:43 PM, Alex Rudnick [EMAIL PROTECTED] wrote:
 Hey Eric :) I'll take this one.

 LGTM, save the (formatting) comments below and a question about documentation.

 gears/test/com/google/gwt/gears/client/workerpool/WorkerPoolTest.java:
 388: Should probably take out the commented-out
 testReceiveMessageObject. Unless you wanted to put this one in?
 473: Extra newline?

 gears/src/com/google/gwt/gears/client/workerpool/WorkerPool.java:
 LGTM

 gears/src/com/google/gwt/gears/client/workerpool/WorkerPoolMessageHandler.java:
 50: If the message is not really an Array type, the method may throw
 a JavaScriptException.

 What's an example of a case where it wouldn't throw an exception on a
 type mismatch? A quick explanation of why this would happen (or a link
 to one) would be helpful. Likewise for other javadocs in the file.

Since JsArray is a JavaScriptObject subclass, you would get an
exception immediately if a primitive were returned.  But, if it were a
subclass of Object that wasn't an Array, you won't get an
exception until you tried to pull out a member of the array.

I really just wanted to call attention to this reason for a JSE,
because it isn't a declared exception and it is up to the author to
make sure the message types are in sync - there is no magical
translation between types going on.



 On Mon, Oct 13, 2008 at 4:27 PM, Eric Ayers [EMAIL PROTECTED] wrote:

 This was reported as issue 182:

   http://code.google.com/p/gwt-google-apis/issues/detail?id=182

 --
 Alex Rudnick
 swe, gwt, atl




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

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



[gwt-contrib] Re: FF3 winxp on OOPHM rev 3747 branch fails with No GWT plugin found

2008-10-14 Thread John Tamplin
On Tue, Oct 14, 2008 at 6:30 PM, gslender [EMAIL PROTECTED] wrote:

 So is there any way to find out where/what is really causing this
 array IndexOutOfBoundsException ??

 It must be the JS parser within GWT I'm guessing?


java.util.ArrayList.get(Unknown Source) at
com.extjs.gxt.ui.client.core.XElement$.setStyleAttribute$(NativeMethod) at
com.extjs.gxt.ui.client.core.El.setStyleAttribute(El.java:2143) at
com.extjs.gxt.ui.client.widget.Layout.applyMargins(Layout.java:234) at

I don't really have time right now to dig into it nor really a way to
reproduce it, but from the stack trace you posted it might be an ExtJS issue
or something triggerred by something they are doing.
XElement.setStyleAttribute is calling this.setStyle, which is presumably
some JS method on the GXT.Ext.Element JS class, but I don't know enought
about ExtGWT to track it down further.  You might try setting a breakpoint
on El.setStyleAttribute, then setting breakpoints on
OophmSessionHandler.{getproperty,setProperty,invoke} to see what the native
code is calling that is causing the problem.

You could also disable ModuleSpace.scrubStackTrace (just add return at the
beginning or comment out the contents) so it will leave hosted mode frames
in the stack trace.

-- 
John A. Tamplin
Software Engineer (GWT), Google

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



[gwt-contrib] Patch for TreeMap serialization

2008-10-14 Thread Amit Manjhi
Hi all,

I have attached a patch for TreeMap Serialization. The patch has been
reviewed by John Tamplin. Most of the code is similar to the way we do
serialization/deserialization for HashMap. The deserialization is done
element by element and the tree is being built incrementally. John pointed
out that this approach is fine for now, since the TreeMap implementation
currently does not use the SortedMap constructor.

There is just one drawback to this code going in 1_5_3. To get Stob to
generate serializers for the key and value types, based on Lex's suggestion,
I created two private variables that are not being used anywhere. Since my
tests run correctly, either the compiler does not optimize away these two
variables or Stob is looking at the code before these are optimized away? In
both situations, there seem to be optimization opportunities. Moreover, in
the former case, anyone using TreeMap would suffer an increase in codesize
regardless of whether they use it for serialization or not. Am I missing
something here?

Thoughts about whether this code should go in 1_5_3 or not?

Regards,
Amit

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

Index: user/test/com/google/gwt/user/server/rpc/CollectionsTestServiceImpl.java
===
--- user/test/com/google/gwt/user/server/rpc/CollectionsTestServiceImpl.java
(revision 3731)
+++ user/test/com/google/gwt/user/server/rpc/CollectionsTestServiceImpl.java
(working copy)
@@ -24,6 +24,7 @@
 import com.google.gwt.user.client.rpc.TestSetFactory.MarkerTypeHashSet;
 import com.google.gwt.user.client.rpc.TestSetFactory.MarkerTypeLinkedHashMap;
 import com.google.gwt.user.client.rpc.TestSetFactory.MarkerTypeLinkedHashSet;
+import com.google.gwt.user.client.rpc.TestSetFactory.MarkerTypeTreeMap;
 import com.google.gwt.user.client.rpc.TestSetFactory.MarkerTypeVector;
 
 import java.sql.Time;
@@ -36,6 +37,7 @@
 import java.util.LinkedHashMap;
 import java.util.LinkedHashSet;
 import java.util.List;
+import java.util.TreeMap;
 import java.util.Vector;
 
 /**
@@ -328,6 +330,18 @@
 return actual;
   }
 
+  public TreeMapString, MarkerTypeTreeMap echo(
+  TreeMapString, MarkerTypeTreeMap actual, boolean option)
+  throws CollectionsTestServiceException {
+TreeMapString, MarkerTypeTreeMap expected = 
TestSetFactory.createTreeMap(option);
+if (!TestSetValidator.isValid(expected, actual)) {
+  throw new CollectionsTestServiceException(expected: 
+  + expected.toString() +  actual:  + actual.toString());
+}
+
+return actual;
+  }
+  
   public VectorMarkerTypeVector echo(VectorMarkerTypeVector actual)
   throws CollectionsTestServiceException {
 VectorMarkerTypeVector expected = TestSetFactory.createVector();
@@ -348,4 +362,5 @@
 
 return value;
   }
+  
 }
Index: user/test/com/google/gwt/user/client/rpc/TestSetValidator.java
===
--- user/test/com/google/gwt/user/client/rpc/TestSetValidator.java  
(revision 3731)
+++ user/test/com/google/gwt/user/client/rpc/TestSetValidator.java  
(working copy)
@@ -15,6 +15,7 @@
  */
 package com.google.gwt.user.client.rpc;
 
+import com.google.gwt.user.client.rpc.TestSetFactory.MarkerTypeTreeMap;
 import 
com.google.gwt.user.client.rpc.TestSetFactory.SerializableDoublyLinkedNode;
 import com.google.gwt.user.client.rpc.TestSetFactory.SerializablePrivateNoArg;
 import com.google.gwt.user.client.rpc.TestSetFactory.SerializableWithTwoArrays;
@@ -26,7 +27,9 @@
 import java.util.LinkedHashMap;
 import java.util.LinkedHashSet;
 import java.util.List;
+import java.util.Map;
 import java.util.Set;
+import java.util.TreeMap;
 import java.util.Vector;
 import java.util.Map.Entry;
 
@@ -318,6 +321,36 @@
 return node.one == node.two;
   }
 
+  // also checks whether the sorting of entries is maintained or not.
+  public static boolean isValid(TreeMapString, MarkerTypeTreeMap expected,
+  TreeMapString, MarkerTypeTreeMap map) {
+if (map == null) {
+  return false;
+}
+if (!equalsWithNullCheck(map.comparator(), expected.comparator())) {
+  return false;
+}
+int size = 0;
+if ((size = expected.size()) != map.size()) {
+  return false;
+}
+// entrySet returns entries in the sorted order
+ListMap.EntryString, MarkerTypeTreeMap actualList = new 
ArrayListMap.EntryString, MarkerTypeTreeMap(
+map.entrySet());
+ListMap.EntryString, MarkerTypeTreeMap expectedList = new 
ArrayListMap.EntryString, MarkerTypeTreeMap(
+expected.entrySet());
+for (int index = 0; index  size; index++) {
+  EntryString, MarkerTypeTreeMap expectedEntry = expectedList.get(index);
+  EntryString, MarkerTypeTreeMap actualEntry = actualList.get(index);
+  if (!equalsWithNullCheck(expectedEntry.getKey(), 

[gwt-contrib] Re: RR:JS collections

2008-10-14 Thread Damon Lundin

I realize I may be jumping in late to this discussion, but Bruce just
introduced me to this fine contributors group.  At a talk during the
Google I/O conference, I mentioned the benefit of using the GWT
FastStringMap implementation over the HashMap implementation and I
decided to re-run my analysis for 1.5 to see if the 1.5 compiler was
smart enough to pick a faster implementation and unfortunately that
does not appear to be the case.  I hope I'm not hijacking Emily's
thread, but I just thought some of you would find my (basic) data
interesting for HashMap vs. FastStringMap.

I posted my results up on my company development blog if you don't
mind me not copy-and-pasting it all here:

http://development.lombardi.com/?p=95

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



  1   2   >