HELP NEEDED!!!!!

2009-01-05 Thread rsoto

Hi I have a piece of code but at run time is giving me this error:
Exception in thread main java.lang.ExceptionInInitializerError
at com.google.gwt.maps.client.geocode.DirectionQueryOptions.init
(DirectionQueryOptions.java:62)
at com.google.gwt.maps.client.geocode.DirectionQueryOptions.init
(DirectionQueryOptions.java:39)
at com.secureorigins.analysis.Route.main(Route.java:22)
Caused by: java.lang.UnsupportedOperationException: ERROR: GWT.create
() is only usable in client code!  It cannot be called, for example,
from server code.  If you are running a unit test, check that your
test case extends GWTTestCase and that GWT.create() is not called from
within an initializer or constructor.
at com.google.gwt.core.client.GWT.create(GWT.java:91)
at com.google.gwt.maps.client.impl.DirectionQueryOptionsImpl.clinit
(DirectionQueryOptionsImpl.java:32)
... 3 more

This is the piece of code:

import com.google.gwt.maps.client.geocode.DirectionQueryOptions;
import com.google.gwt.maps.client.geocode.DirectionResults;
import com.google.gwt.maps.client.geocode.Directions;
import com.google.gwt.maps.client.geocode.DirectionsCallback;
import com.google.gwt.maps.client.geocode.Distance;
import com.google.gwt.maps.client.geocode.Duration;
import com.google.gwt.maps.client.geocode.StatusCodes;


/**
 * @author rsoto
 *
 */
public class Route {

/**
 * @param args
 */
public static void main(String args[]){
DirectionQueryOptions opts = new DirectionQueryOptions();
String query = from: 10424 Eaglestone el Paso tx to: 500 West
Overland El Paso TX;
Directions.load(query, opts, new DirectionsCallback() {

public void onFailure(int statusCode) {
System.out.println(Failed to load directions: 
Status 
+ 
StatusCodes.getName(statusCode) +   + statusCode);
}

public void onSuccess(DirectionResults result) {
Distance dis = result.getDistance();
Duration duration = result.getDuration();

System.out.println(The distance is:  + dis);
System.out.println(The travel duration is:  + 
duration);
}
});
}
}

Any help will be appreciated.
Thank you,
rsoto

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



Re: HELP NEEDED!!!!!

2009-01-05 Thread rsoto

Hi Lothar,
First of all I apologize for the behavior it is my first time using
any type of blog or forum. On the other hand what I am trying to
achieve is to get route directions, travel time and route points from
point A to point B.

Thank you,
rsoto

On Jan 5, 9:31 am, Lothar Kimmeringer j...@kimmeringer.de wrote:
 rsoto schrieb:

  Caused by: java.lang.UnsupportedOperationException: ERROR: GWT.create
  () is only usable in client code!  It cannot be called, for example,
  from server code.
     public static void main(String args[]){
             DirectionQueryOptions opts = new DirectionQueryOptions();

 main is a method called from the console (i.e. server). You can't
 call GWT.create in server-code so whatever you think you can achieve
 by initializing DirectionQueryOptions on the server-side it will
 never happen.

 The question is, what you want to achieve to be able to tell you,
 what you might do differently.

 BTW: Instead of shouting and the excessive use of exclamation marks,
      you might think of a more describing subject in the future.

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



Re: gwt-ext similar

2009-01-05 Thread mikedshaf...@gmail.com

Smart Client is the only other comprehensive UI library for GWT that
I'm aware of.  It is free and well done.  As is Ext GWT, the well done
part that is.

On Jan 5, 6:24 am, asianCoolz jim.the...@gmail.com wrote:
 can anyone list any similar tool like gwt-ext ? from what i know this
 tool is not free.   i found another call smartclient. how about
 others.. ? which one should i use? seem to me smartclient is free
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



exception not caught in a javascript constructor in IE

2009-01-05 Thread blissteria

Hi,

I have a pb related to InternetExplorer and probably GWT (but I'm not
convinced) since I have not managed to reproduce it outside of my gwt
project.


Let foo.js a javascript file containing:
function MyObject(){
  throw String Thrown;
};


In my Module.gwt.xml I add the following line to include the script
script src=foo.js /


Then in any java file of my application, in the click method of a
clickListener for instance, I call the function createMyObject
defined as:
public native void createMyObject()/*-{
  new $wnd.MyObject();
}-*/;


The call of this function is surrounded by a try/catch block :
try {
  createMyObject();
}
catch (Exception e){
  Window.alert(e);
}

This works fine in firefox 2 and 3  but not in IE (6 and 7). In IE I
got an exception rised but not caught error and therefore no
alert...

What do you think of this problem?

Regards,

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



Re: IllegalStateException (onDetach) in Internet Explorer 6 and 7

2009-01-05 Thread Óscar Frías

We have found a fix to this problem.
We were doing an RPC call before building all the UI.  And just moving
the RPC call to the end of the initialization routine has fixed the
problem.
Anyway, could there be a bug in the GWT code?   I am asking because it
is not clear to me if calling a RPC method before constructing some
widgets should leave them in an illegal state.



On Dec 24 2008, 4:58 pm, Óscar Frías ofr...@gmail.com wrote:
 Hello.

 We have detected that our web application throws this Exception
 sometimes:

 java.lang.IllegalStateException: Should only call onDetach when the
 widget is attached to the browser's document

 We detect these exceptions because we have implemented a custom
 exception handler that reports exceptions from the browser to our
 server (code at the end).
 The problem is that although this happens quite frequently (we see
 this in our logs), we do not know how to reproduce it.  According to
 the logs timing it seems to happen (at least some of the times) when
 leaving the page that contains the GWT app.  But we are not completely
 sure about this.

 Any idea about what could be happening, about the possible root cause,
 or how to try to debug/fix it, etc. ?
 Any help is appreciated.

 More information:
 - Exception is only thrown from IE6 and IE7 browsers
 - This did not happen with GWT version 1.4.62.  It started happening
 the same day we migrated to 1.5.3
 - The widget that throws the exception is an HTMLPanel.  Its parent is
 a Composite.

 In case you are interested, this is the site with the error (the GWT
 app is the flight results page):http://www.trabber.com

 /* Code to report exceptions to the server */
         if (GWT.isScript()) {
             GWT.setUncaughtExceptionHandler(new
 GWT.UncaughtExceptionHandler() {
                 public void onUncaughtException(Throwable th) {
                     CommonService.App.getInstance().reportException
 (th, myCallback);
                 }
             });
         }
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Gwtai: Problem to include the Gwtai jars in my Project

2009-01-05 Thread kilkenny

Hi Leif

Sorry for the late response...

Do you still have problems? If so, please post to the newly-made GwtAI-
Google-Group = http://groups.google.com/group/gwtai

Regards, Adrian

On 7 Nov. 2008, 17:13, teremin l.westerm...@pearlpool.de wrote:
 Hello everyone, hope someone can help me here.

 i try to include theGWTAI-Project in my GWT Project (http://
 code.google.com/p/gwtai/).
 But at deploying the application  i get the errormessage:

 Loading inherited module
 'com.google.gwt.gwtai.applet.AppletIntegration'
 Unable to find 'com/google/gwt/gwtai/applet/AppletIntegration.gwt.xml'
 on your classpath; could be a typo, or maybe you forgot to include a
 classpath entry for source?

 thegwtai-client.jar andgwtai-core.jar are added to the Classpath and
 i can see the AppletIntegration.gwt.xml-file in my Eclipse-Project
 Tree

 I also applied
 inherits name='com.google.gwt.gwtai.applet.AppletIntegration' / to
 my application.xml

 has anyone an idea what could be wrong?

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



GWT

2009-01-05 Thread ALPER

Hello, i get this error when compile my web project on eclipse
-style should be followed by one of
  OBF, PRETTY, or DETAILED
Google Web Toolkit 1.5.3
GWTShell [-port port-number | auto] [-noserver] [-whitelist
whitelist-string] [-blacklist blacklist-string] [-logLevel level] [-
gen dir] [-out dir] [-style style] [-ea] [url]

where
  -port   Runs an embedded Tomcat instance on the specified port
(defaults to )
  -noserver   Prevents the embedded Tomcat server from running, even
if a port is specified
  -whitelist  Allows the user to browse URLs that match the specified
regexes (comma or space separated)
  -blacklist  Prevents the user browsing URLs that match the specified
regexes (comma or space separated)
  -logLevel   The level of logging detail: ERROR, WARN, INFO, TRACE,
DEBUG, SPAM, or ALL
  -genThe directory into which generated files will be written
for review
  -outThe directory to write output files into (defaults to
current)
  -style  Script output style: OBF[USCATED], PRETTY, or DETAILED
(defaults to OBF)
  -ea Debugging: causes the compiled output to check assert
statements.
and
  url Automatically launches the specified URL

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



Re: Properties file: how to use several maps with the same key and different values?

2009-01-05 Thread Eric Ayers
I hope you've worked through this by now, but the problem you're
seeing is because each property key needs to be unique. You need to
name your properties differently, such as:

EVENTTYPE_1 = concert

EVENTTYPE_2 = parade

CATEGORY_1 = entertainment

CATEGORY_2 = sports

CATEGORY_3 = arts

CATEGORY_4 = services

EVENTTYPES=EVENTTYPE_1, EVENTTYPE_2

CATEGORIES=CATEGORY_1,CATEGORY_2,CATEGORY_3,CATEGORY_4

On Tue, Dec 23, 2008 at 7:09 AM, Fred Janon fja...@gmail.com wrote:

 I use several listboxes with a numeric key and a text as the value. I need
 to internationalize the text. I don't know if there is a way to code that in
 a property file. I tried the following but all the maps are all mapped with
 the last values at runtime.

 Application.properties

 1 = concert
 2 = parade
 EVENTTYPES = 1, 2

 1 = entertainment
 2 = sports
 3 = arts
 4 = services
 CATEGORIES = 1, 2, 3, 4

 Application.java
 Map EVENTTYPES();
 Map CATEGORIES();

 Runtime:

 [INFO] Event types Key: 1 value: entertainment // Should be concert
 [INFO] Event types Key: 2 value: sports // Should be parade

 [INFO] Categories Key: 1 value: entertainment
 [INFO] Categories Key: 2 value: sports
 [INFO] Categories Key: 3 value: arts
 [INFO] Categories Key: 4 value: services

 Use:

 MapString, String eventtypes = StringManager.Constants().EVENTTYPES();
 MapString, String categories = StringManager.Constants().CATEGORIES();

 I don't know if there is a way to do that in a properties file.

 Thanks

 Fred


 



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

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



Re: Unable to read div element id from html into java using RootPanel.get(id)

2009-01-05 Thread Lothar Kimmeringer

ManishU schrieb:
 
 I
 checked all values for rootPanel variable as an HashMap, there is no
 key pair for stockList element.

Is the HTML your browser is loading really the one you were
changing? Maybe you load an old version of it leading to
that effect. Add some static content to the page and comment
out the RootPanel-line. Does the browser show the newly
added content or is the page still containing the headline?


Regards, Lothar

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



Re: I need help please

2009-01-05 Thread Lothar Kimmeringer

Loryto schrieb:
 I need to know how GWT can be implemented
 in the enterprise, the challenges, recommendations , guidelines and
 suggestions for developers in enterprises.
 The theme of my project is: GWT as a solution for Web 2.0 application
 development on the enterprises

Your question sounds like the topic of your homework. Can you
be more specific what you want to know. I doubt that there are
many people here who happily write your homework for you, so
without a more specific description of where you are stucked
with your understanding, examples, etc. there will most likely
no answer to your mail.


Regards, Lothar

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



Re: How do I make a pretty, easy to use button without making custom images for each one?

2009-01-05 Thread Chi H

I've had great success using the 'sliding doors' technique for
buttons.
Just google for the phrase - here is a good example of the css needed
- http://www.jorkas.com/lab/css/rounded_button/index.html

I basically just created my own 'MyButton' class which extends
InlineHTML and populates it with the html needed for the button, e.g.:
a href=\#\ onclick=\javascript: return false\ class=\myButton
\span + buttonLabelHtml + /span/a

Then, I can instantiate with whatever label i want when I need a
button, add clickListeners, etc.



On Jan 2, 4:00 am, dduck anders.johansen.a...@gmail.com wrote:
 Hi,

 I would like to make abuttonthat looks like this:

 (|| text ||)

 ...where ( is a rounded left-end of thebutton, ) is a rounded right-
 end of thebutton, || is a background and text can be specified e.g.
 at creation. Thus, all buttons of this type would share the same
 style, but not the same text on the face of it. Examples:

 (|| OK ||)
 (|| My very longbuttontext ||)

 How would I go about this, without having to generate each individualbuttonas 
 an image in my drawing program?

 Anders

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



Re: How do I make a pretty, easy to use button without making custom images for each one?

2009-01-05 Thread lukehashj

If you are able to use .pngs with a full alpha channel in your project
(IE6 does not support them without a work-around - google 'ie6 png')
you can have great success using images. If you only have a few
different background colors on your site, than create a rounded corner
- fill in the area that is the background with its appropriate color
and leave the area that will form the face of the button transparent.
Then, you can use those four rounded corners (in various colors) to
round everything from buttons to containers. Simple set the background
color of the button to be the color that you want it to be, and whala!
Now you have buttons in any color :)

To create the PrettyButton widget you can use a grid wrapped in a
focus panel - just make sure to use setCellSpacing(0) and
setCellPadding(0) on the grid. You can use the same method to create a
PrettyCornersWidget that will take a widget as an argument, then wrap
it in rounded corners.

On Jan 2, 4:00 am, dduck anders.johansen.a...@gmail.com wrote:
 Hi,

 I would like to make a button that looks like this:

 (|| text ||)

 ...where ( is a rounded left-end of the button, ) is a rounded right-
 end of the button, || is a background and text can be specified e.g.
 at creation. Thus, all buttons of this type would share the same
 style, but not the same text on the face of it. Examples:

 (|| OK ||)
 (|| My very long button text ||)

 How would I go about this, without having to generate each individual
 button as an image in my drawing program?

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



I need help please

2009-01-05 Thread Loryto

Good night, I am a college student in Mexico and I need help for a
school project, I've been studying GWT but I'm in a situation in which
I can not move forward, and I need to know how GWT can be implemented
in the enterprise, the challenges, recommendations , guidelines and
suggestions for developers in enterprises.
The theme of my project is: GWT as a solution for Web 2.0 application
development on the enterprises

I would greatly appreciate your help. Thank you very much for your
attention.

P.D. As you can see my English is not very good. bye

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



how reset FileUpload?

2009-01-05 Thread fother

I need reset the FileUpload..
In my form when I submit the form I need clear all fields..

it's possible?

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



Re: Panel not clearing?

2009-01-05 Thread olivier FRESSE
You should use an Image widget instead of setText.

something like

*Image image = new Image();
*

*image.setUrl('http://www.vella-gulf.navy.mil/Site%20Images/under_construction.jpg;);
*

*// Use image.addLoadListener(...) to manage loading errors

bioText.add(image);
*

regards,
O.


2009/1/3 jwei512 jwei...@gmail.com


 Hey, so right now I'm having this unusual problem with one of the
 panels I made and I don't quite understand what's happening. Here's my
 code:

 bioText = new Panel();
 bioText.setAutoScroll(true);
 String sampleURL = img src = 'http://www.vella-gulf.navy.mil/Site
 %20Images/under_construction.jpghttp://www.vella-gulf.navy.mil/Site%20Images/under_construction.jpg'
 /;
 bioText.setHtml(sampleURL);

 ToolbarButton bioNew = new ToolbarButton(New Page);
 bioNew.addListener(new ButtonListenerAdapter() {
public void onClick(Button button, EventObject e) {
bioText.clear();
}
 });

 Toolbar editBio = new Toolbar();
 editBio.addButton(bioNew);

 So basically I click the button on the toolbar and the panel is
 supposed to clear but it doesn't. This is weird because within the
 same class I do the same identical set of commands just using a
 different toolbar and clearing a different panel and it works fine.

 Any ideas?

 


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



Re: Extra pixels above image when added to popup panel

2009-01-05 Thread olivier FRESSE
You can use a tool like firebug to analyze the generated DOM.
Maybe it's a result of a CSS style.
regards

2009/1/4 falcon_whiz sultan.yas...@gmail.com


 Hi all,
  I am using the lates release of gwt (gwt-windows-1.5.3). now the
 problem is that whenever I am adding an image to a popup panel the
 size of the popup panel increases by few extra pixels on top of the
 image. on the sides and on the bottom the popup panel adjusts to the
 size of the image. What can be the problem??

 Regards
 Yasser
 


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



Re: how reset FileUpload?

2009-01-05 Thread fother

I use

private native void resetForm() /*-{
$doc.forms[0].reset();
}-*/;

On 5 jan, 12:20, olivier FRESSE olivier.fre...@gmail.com wrote:
 it may depend of the way your form is built,
 but you can call reset() on the form object in javascript.
 This means that you need a JSNI call.

 A file input can be accessed in JS for security reason, but reseting the
 form will clear it. And all the inputs of the form...

 2009/1/5 fother fot...@gmail.com



  I need reset the FileUpload..
  In my form when I submit the form I need clear all fields..

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



Re: Coverage tools for GWT/JUnit?

2009-01-05 Thread Arthur Kalmenson

There was a patch that was added recently to enable Emma reporting,
I'm not sure if it's been committed yet.

--
Arthur Kalmenson



On Wed, Dec 31, 2008 at 7:46 AM, fker...@gmail.com fker...@gmail.com wrote:

 Hi!

 Has anybody experimented with coverage tools for GWT/Junit? I assume
 the problem could be easier for the server part (pure Java) than for
 the client part (Java compiled into JavaScript) but anyway... any
 suggestions?

 Thanks, and best regards,
 Federico Kereki


 


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



Re: Waiting on multiple RPC calls

2009-01-05 Thread stephen.sm...@paretopartners.com

This is the first iv heard of this kinda thing. Im doing alot of
seperate rpc calls. could you give me an example of how to cache it
please.

currently im just doing:

/** An rpc call. */
  private void getData() {
SignoffService.Server.getInstance().getData(new
AsyncCallbackString() {
  public void onSuccess(User result) {
// success
  }

  public void onFailure(Throwable caught) {
// error
  }
});
  }

Thanks alot for your help,
Steve

On Dec 19 2008, 3:00 pm, rakesh wagh rake...@gmail.com wrote:
 performance:
 Are you acquiring handles to three different RPC services for your 3
 calls? If yes, you can improve performance by clubbing them into a
 single call. If you do a little client side profiling, you will
 realize that creating a async reference on client side is a not a very
 quick operation. It is always a good idea to cache(static) your rpc
 service references on client once you create it for the very first
 time.

 Rakesh Wagh

 On Dec 19, 3:38 am, stephen.sm...@paretopartners.com



 stephen.sm...@paretopartners.com wrote:
  Thats exactly the thing i need!!!

  Thanks :)

  On Dec 18, 11:17 pm, Dobes dob...@gmail.com wrote:

   Hi Stephen,

   I had a lot of scenarios like this, so I added some utility classes to
   help.  For example, I have a class called AsyncCallbackGroup which
   allows you to wait on multiple parallel RPC calls and then when they
   are all complete it calls another callback.  In your case you could
   create a group with the first two operations, then pass a callback
   whose onSuccess() method called the next call.

   You can get the source code for these classes in the kiyaa project:

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

   On Dec 18, 2:14 am, stephen.sm...@paretopartners.com

   stephen.sm...@paretopartners.com wrote:
Firstly, before any1 goes off on 1 about You cant do syncronous rpc
calls in gwt or JS is single threaded im fully aware of these
facts. However i also know that like many things there are usually
work arounds or at least better solutions than i have thought of...

So my problem is this. I have 3 RPC calls. The first 2 are totally
seperate however the third depends on the result of both the first 2.

The 3rd call is unfortunately rather large as it requires some DB
access on the server and sorting/filtering etc. and i would therefor
like to get this going asap.

There is also alot of other initalisation code on the client that can
be done at almost any stage. so it would be preferable to do this
during any (and possibly all) of the rpc calls

This is all currently done in module load and i am chaining my 3 rpc
calls. This causes the total load time to be a bit slow. This seems
such a horrible way to do it and even for me it gets a little
confusing and i wrote it.

Does any one have a better solution to how i can wait on the first 2
calls before making the 3rd whilst still executing the client
initalisation code.

Thanks in advance,
Steve- Hide quoted text -

   - Show quoted text -- Hide quoted text -

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



Why Google AdSense May Not Be Suitable For page content?

2009-01-05 Thread gayathri

Hi,

  I have developed a web site using GWT1.4.62. I want to show Google
Adsense on it. now ads displayed. but ads not related to page
content.
Why Google AdSense May Not Be Suitable For page content?
pls Guide me.

cheers,
Gayu

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



Re: How do I make a pretty, easy to use button without making custom images for each one?

2009-01-05 Thread jhulford

GWT 1.5+ has a nine box panel called DecoratorPanel.  You can see it
in action on the DialogBox.  It shouldn't take much effort to create
nice looking buttons using that.

On Jan 2, 9:12 am, gregor greg.power...@googlemail.com wrote:
 Hi Anders,

 I looked into this a year or so ago. As I recall what you need to do
 is make a nine box model Composite. You have to plumb in all the
 style changes linked to mouse events for up/down/hover etc., implement
 SourcesClickEvents, and handle the text no wrap and sizing
 calculations etc. You also have to think about font sizes, and the
 fact that borders and padding work differently in IE and FF so it's
 not straight forward to get the buttons to look exactly the same in
 each browser. If you want to add icons as well (as I did) you have to
 think about image clipping as well otherwise button heights can be
 variable unless every image is exactly right. Basically it's a
 palaver, and as I understand it it is also very inefficient - you are
 not using the browsers native button support.

 For this reason I gave up on the idea and used the traditional
 approach of creating up/down images for each button using GIMP. This
 turned out to be quicker to do in the end. You only need one image in
 GIMP/Photoshop for each size of button you want (I prefer equal width
 buttons in a group) that has the basic rounded corners style and
 gradients/borders for the up/down highlights in two or three layers.
 Then you simply add a new layer for the text (or text + icon) of each
 button you need and select the appropriate layers to make an up and
 down png/jpeg/gif for each one. This way you can edit the base style
 layers and produce a complete new button set in minutes.

 You pays your money and takes your choice on this one. I'm no graphic
 designer and although it took me a few agonizing days to get to grips
 with using GIMP properly (the layers are the key IMO) I still reckon
 it took less time than it would have done to do a good job of this
 programmatically. And now of course I know how to do it so I can make
 more or less any icon needed to order.

 regards
 gregor

 On Jan 2, 11:00 am, dduck anders.johansen.a...@gmail.com wrote:

  Hi,

  I would like to make a button that looks like this:

  (|| text ||)

  ...where ( is a rounded left-end of the button, ) is a rounded right-
  end of the button, || is a background and text can be specified e.g.
  at creation. Thus, all buttons of this type would share the same
  style, but not the same text on the face of it. Examples:

  (|| OK ||)
  (|| My very long button text ||)

  How would I go about this, without having to generate each individual
  button as an image in my drawing program?

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



Trouble with setting split position in CSS...

2009-01-05 Thread shaselai

I am trying to set the verticalSplitPane's split position in CSS but
it doesn't seem to be working or maybe i am doing it wrong.
Java:
VerticalSplitPanel tempPanel = new VerticalSplitPanel();
tempPanel.addStyleName(gwt-VerticalSplitPanel);
tempPanel.setTopWidget(VerticalPanelForTopSection);
tempPanel.setBottomWidget(HorizontalPanelForBottomSection);

CSS:

.gwt-VerticalSplitPanel { width: 220px;
height: 270px;
padding-left: 15px;
padding-right: 15px;
pos: 200px; }

i know the CSS gets called from running the program but the pos:
200px doesn't get used at all. I tried
gwt-VerticalSplitPanel vsplitter { pos: 200px;} and gwt-
VerticalSplitPanel splitter { pos: 200px;} but didn't work either.
What am i doing wrong here? Thanks!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: HELP NEEDED!!!!!

2009-01-05 Thread Lothar Kimmeringer

rsoto schrieb:

 Caused by: java.lang.UnsupportedOperationException: ERROR: GWT.create
 () is only usable in client code!  It cannot be called, for example,
 from server code.

   public static void main(String args[]){
   DirectionQueryOptions opts = new DirectionQueryOptions();

main is a method called from the console (i.e. server). You can't
call GWT.create in server-code so whatever you think you can achieve
by initializing DirectionQueryOptions on the server-side it will
never happen.

The question is, what you want to achieve to be able to tell you,
what you might do differently.

BTW: Instead of shouting and the excessive use of exclamation marks,
 you might think of a more describing subject in the future.



Regards, Lothar

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



Re: exception not caught in a javascript constructor in IE

2009-01-05 Thread blissteria

Thanks for the really quick answer!!!

I can modify the script I include but I'd rather not. The calls of
throw are already wrapped in a function therefore your solution
could be envisaged.

There is another solution that works but I do not trully understand
why. I wrap the call of new MyObject() in a function defined in the
foo.js file :
function wrappingMyObjectConstructor() {
  try {
return new MyObject();
  } catch (e) {
throw e;
  }
}

and calling wrappingMyObjectConstructor in JSNI works fine in IE. This
is a hack, it works, but does anyone know how to avoid this or can
explain this?

Thanks

On 5 jan, 17:43, Ian Petersen ispet...@gmail.com wrote:
 On Mon, Jan 5, 2009 at 8:37 AM, blissteria blisste...@hotmail.com wrote:
  Let foo.js a javascript file containing:
  function MyObject(){
   throw String Thrown;
  };

  In my Module.gwt.xml I add the following line to include the script
  script src=foo.js /

  Then in any java file of my application, in the click method of a
  clickListener for instance, I call the function createMyObject
  defined as:
  public native void createMyObject()/*-{
   new $wnd.MyObject();
  }-*/;

  The call of this function is surrounded by a try/catch block :
  try {
   createMyObject();
  }
  catch (Exception e){
   Window.alert(e);
  }

  This works fine in firefox 2 and 3  but not in IE (6 and 7). In IE I
  got an exception rised but not caught error and therefore no
  alert...

  What do you think of this problem?

 I'm just guessing here because I don't know how GWT maps native
 Javascript exceptions into Java.  I think your problem might be
 related to the fact that you're throwing a string, not an Exception
 and you're catching an Exception, not a string.

 Do you have control over the script you're trying to include?  Can you
 modify the throw statement to call into a Java method that throws a
 real exception?  Could you factor the throw statement into a helper
 function that gets substituted by a JSNI method when the script is
 invoked from a GWT app?

 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 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Google I/O 2009

2009-01-05 Thread Allen

I was wondering if there is going to be a Google I/O conference in May
of 2009, as there was in May of 2008.

My primary interest is GWT, as my company has developed an application
using GWT, and would like to increase the number of developers on an
ongoing project using GWT.

If there is going to be a conference, where can I find more
information on location/agenda/cost etc.

Any further information would be appreciated.

Thanks,

Allen

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



gwt-ext similar

2009-01-05 Thread asianCoolz

can anyone list any similar tool like gwt-ext ? from what i know this
tool is not free.   i found another call smartclient. how about
others.. ? which one should i use? seem to me smartclient is free
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Approach for paging large dataset

2009-01-05 Thread stephen.sm...@paretopartners.com

I used continuous pagination inside a scrollTable loading 10 rows at a
time.

I used the client to keep a state of what rows it currently had and
simply requested more using rpc when approaching the bottom. I ahd
issues with getting the possition of the scrollbar as scrollPanel
didnt have a scroll Listener at the time, i dont know if it still
does. so i put the table in a scrollpanel and used the scroll listener
of that.

final product - very slick way to show 100's of rows of data.

If you have more than that then i surgest incorporating a search
feature or using standard pagination widgets from gwt-ext / ext-gwt





On Jan 2, 8:43 pm, gregor greg.power...@googlemail.com wrote:
 Check:

 http://code.google.com/p/google-web-toolkit-incubator/wiki/PagingScro...

 use JDBC (or ORM equivelents) to get pages over GWT RPC - don't clog
 up HttpSession.

 regards
 gregor

 On Jan 2, 7:14 pm, falcon_whiz sultan.yas...@gmail.com wrote:



  Hi all,
   I am creating an application where I need to send an array of objects
  from server to the client side using RPC. the problem is I want the
  dataset to be broken into pages so that the user isn't overwhelmed
  with data. Does GWT provide any good approach to solve this problem,
  or should I use HTTPSession to maintain the large dataset.

  Regards- Hide quoted text -

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



Re: how reset FileUpload?

2009-01-05 Thread olivier FRESSE
it may depend of the way your form is built,
but you can call reset() on the form object in javascript.
This means that you need a JSNI call.

A file input can be accessed in JS for security reason, but reseting the
form will clear it. And all the inputs of the form...


2009/1/5 fother fot...@gmail.com


 I need reset the FileUpload..
 In my form when I submit the form I need clear all fields..

 it's possible?

 


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



Re: GWT and applets

2009-01-05 Thread kilkenny

Hi Dave

The previous poster is right, you have to move the applet class
outside of the client package.

Concerning the hosted mode problem: the GWT Shell can not handle
embedded things like Flash or Applets. To test your application you
have to compile the code and run it in a browser.

To easy integration of your applet you could have a look at the GwtAI
project = http://code.google.com/p/gwtai/

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



Benchmarking

2009-01-05 Thread szebeni

Hi all!
 This topic in the GWT's documentation is very short.

I have tried the Benchmarking example with the console's scripts, but
it works sometimes, and sometimes it doesn't. Otherwise with the
simple GWTTestcase I don't have any problem.

I have a question:
After the benchmarking, in the xml report, there is a user agent(on my
pc it is IE7), how can I run the tests with other browsers?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: HELP NEEDED!!!!!

2009-01-05 Thread Eric Ayers
The gwt-maps library is meant to be translated into JavaScript and run
inside a browser when it is deployed.  You cannot run the code by using a
standard JVM and you cannot create a standalone Java application using this
API.

If you are indeed writing a web app, for testing, you can run it inside of
the GWT hosted mode browser by configuring a GWT module.

-Eric.

On Mon, Jan 5, 2009 at 11:18 AM, rsoto plur4e...@gmail.com wrote:


 Hi I have a piece of code but at run time is giving me this error:
 Exception in thread main java.lang.ExceptionInInitializerError
at com.google.gwt.maps.client.geocode.DirectionQueryOptions.init
 (DirectionQueryOptions.java:62)
at com.google.gwt.maps.client.geocode.DirectionQueryOptions.init
 (DirectionQueryOptions.java:39)
at com.secureorigins.analysis.Route.main(Route.java:22)
 Caused by: java.lang.UnsupportedOperationException: ERROR: GWT.create
 () is only usable in client code!  It cannot be called, for example,
 from server code.  If you are running a unit test, check that your
 test case extends GWTTestCase and that GWT.create() is not called from
 within an initializer or constructor.
at com.google.gwt.core.client.GWT.create(GWT.java:91)
at
 com.google.gwt.maps.client.impl.DirectionQueryOptionsImpl.clinit
 (DirectionQueryOptionsImpl.java:32)
... 3 more

 This is the piece of code:

 import com.google.gwt.maps.client.geocode.DirectionQueryOptions;
 import com.google.gwt.maps.client.geocode.DirectionResults;
 import com.google.gwt.maps.client.geocode.Directions;
 import com.google.gwt.maps.client.geocode.DirectionsCallback;
 import com.google.gwt.maps.client.geocode.Distance;
 import com.google.gwt.maps.client.geocode.Duration;
 import com.google.gwt.maps.client.geocode.StatusCodes;


 /**
  * @author rsoto
  *
  */
 public class Route {

/**
 * @param args
 */
public static void main(String args[]){
DirectionQueryOptions opts = new DirectionQueryOptions();
String query = from: 10424 Eaglestone el Paso tx to: 500
 West
 Overland El Paso TX;
Directions.load(query, opts, new DirectionsCallback() {

public void onFailure(int statusCode) {
System.out.println(Failed to load
 directions: Status 
+
 StatusCodes.getName(statusCode) +   + statusCode);
}

public void onSuccess(DirectionResults result) {
Distance dis = result.getDistance();
Duration duration = result.getDuration();

System.out.println(The distance is:  +
 dis);
System.out.println(The travel duration is:
  + duration);
}
});
}
 }

 Any help will be appreciated.
 Thank you,
 rsoto

 



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

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



Re: exception not caught in a javascript constructor in IE

2009-01-05 Thread Ian Petersen

On Mon, Jan 5, 2009 at 9:02 AM, blissteria blisste...@hotmail.com wrote:
 There is another solution that works but I do not trully understand
 why. I wrap the call of new MyObject() in a function defined in the
 foo.js file :
 function wrappingMyObjectConstructor() {
  try {
return new MyObject();
  } catch (e) {
throw e;
  }
 }

 and calling wrappingMyObjectConstructor in JSNI works fine in IE. This
 is a hack, it works, but does anyone know how to avoid this or can
 explain this?

You may have found a bug in GWT.  If GWT can catch thrown strings in
the second case but not in the first case, then I think there's a
problem with the exception mapping between the languages.  You might
want to file a bug and, if you do, try to include a really good repro
case.

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 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Newbie Question on GWT/JSON

2009-01-05 Thread Reinier Zwitserloot

Whoops, forgot my footnote:

[1] http://www.ietf.org/rfc/rfc4627.txt

I don't know if that makes it official. I believe the official entity
that vets mime types is IANA, but on their site I couldn't quickly get
to an official list of recognized mime types. Still, if Doug Crockford
says the type is application/json, and almost everyone uses that,
that's the standard. That's how the internet works; standards bodies
can wax rhapsodic about whatever they fancy, but if no one does it,
it's not something you should be doing either, regardless of whether
or not its the 'official standard', so, there you have it.

Oh, and martykube: Be careful that your soul doesn't waft out the
window that is giving you that fresh air. As a general rule, if PHP is
a good fit for you, grails, rails, or django are usually an even
better fit.

On Jan 4, 11:48 pm, rakesh wagh rake...@gmail.com wrote:
 You probably got your answer by now. Think this way. JSON string is
 like any other string. The transport mechanism does not have to know
 weather it is json or text or number or binary or otherwise. With that
 said, you can use forms with get or post(knowing the advantages
 drawback of each will help you select the right mechanism) and simply
 posting it to your php page. In your php page, read the request
 parameters as if they were any other parameters.

 As a matter of fact you can even append the json string as part of
 your target page url with a variable name and expect the json string
 (with a hyperlink click) to reach its destination as expected.

 Good luck!
 Rakesh Wagh

 On Jan 3, 9:09 pm, Ian ikra...@gmail.com wrote:

  I am new to the Web application world; I am trying to encapsulate my
  set of data in a JSONObject, convert to string, and send it  (async
  POST) to a PHP page using GWT's RequestBuilder. GWT's tutorial
  discusses the trip from the server back to the client and not the
  other way around where I am unclear about.

  Do I need to set the header? Currently I set it to:
   builder.setHeader(Content-Type, application/x-www-form-
  urlencoded);

  However, this works fine as long as am sending
  key1=value1key2=values where I can retrieve variable via $_POST
  ['key1'] or $_POST['key2']

  But I am not sure how to send a JSON string where it can be retrieved
  in a php page. I have tried sending myvar=MyJsonString but cannot
  retrieve in my php page. How should $_POST reference the JSON object?

  Any clarification would be much appreciated.

  Thanks,

  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 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Unable to read div element id from html into java using RootPanel.get(id)

2009-01-05 Thread ManishU



HTML ---

!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN
http://www.w3.org/TR/html4/loose.dtd;

html
  head
meta http-equiv=content-type content=text/html;
charset=UTF-8
titleStockWatcher/title
script type=text/javascript language=javascript
src=com.srcm.MemberApp.nocache.js/script
  /head

  body
h1Stock Watcher/h1
div id=stockList/div
  /body
/html


Java Code 

package com.srcm.client;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.FlexTable;
import com.google.gwt.user.client.ui.HorizontalPanel;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.RootPanel;
import com.google.gwt.user.client.ui.TextBox;
import com.google.gwt.user.client.ui.VerticalPanel;

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

  /**
   * This is the entry point method.
   */
  private VerticalPanel mainPanel = new VerticalPanel();
  private FlexTable stocksFlexTable = new FlexTable();
  private HorizontalPanel addPanel = new HorizontalPanel();
  private TextBox newSymbolTextBox = new TextBox();
  private Button addButton = new Button(Add);
  private Label lastUpdatedLabel = new Label();

  public void onModuleLoad() {
// set up stock list table
stocksFlexTable.setText(0, 0, Symbol);
stocksFlexTable.setText(0, 1, Price);
stocksFlexTable.setText(0, 2, Change);
stocksFlexTable.setText(0, 3, Remove);

// assemble Add Stock panel
addPanel.add(newSymbolTextBox);
addPanel.add(addButton);

// assemble main panel
mainPanel.add(stocksFlexTable);
mainPanel.add(addPanel);
mainPanel.add(lastUpdatedLabel);

// add the main panel to the HTML element with the id stockList
RootPanel.get(stockList).add(mainPanel);

// move cursor focus to the text box
newSymbolTextBox.setFocus(true);
}
}


Throwing an Nullpointer error as RootPanel.get(stockList) is null. I
checked all values for rootPanel variable as an HashMap, there is no
key pair for stockList element.



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



Re: GWT project creation indefinetly creates folder recursively

2009-01-05 Thread Isaac Truett

Raj,

What version of GWT are you using? Also, can you describe what you
mean by unlimited recursive files in your project?

Thanks,
Isaac

On Sat, Jan 3, 2009 at 3:09 AM, Raj raj...@gmail.com wrote:

 Hi,

 I'm trying to setup GWT in my machine and followed the steps given in
 the instruction and created an eclipse project using projectCreator, I
 was little amazed to see the project size of more than 500MB while
 importing it into eclipse but only to find the script has created
 unlimited recursive files inside MyProject folder, the worst part is
 its getting created again automatically after deleting it and even
 after restarting the machine. How to stop this script from executing?
 Did anyone got this error before?

 Any help would be appreciated.

 Thanks.
 --Raj

 


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



Re: Properties file: how to use several maps with the same key and different values?

2009-01-05 Thread Fred Janon
Thanks Eric.

Fred

On Mon, Jan 5, 2009 at 22:31, Eric Ayers zun...@google.com wrote:

 I hope you've worked through this by now, but the problem you're seeing is 
 because each property key needs to be unique. You need to name your 
 properties differently, such as:

 EVENTTYPE_1 = concert

 EVENTTYPE_2 = parade

 CATEGORY_1 = entertainment

 CATEGORY_2 = sports

 CATEGORY_3 = arts

 CATEGORY_4 = services

 EVENTTYPES=EVENTTYPE_1, EVENTTYPE_2

 CATEGORIES=CATEGORY_1,CATEGORY_2,CATEGORY_3,CATEGORY_4

 On Tue, Dec 23, 2008 at 7:09 AM, Fred Janon fja...@gmail.com wrote:

 I use several listboxes with a numeric key and a text as the value. I need
 to internationalize the text. I don't know if there is a way to code that in
 a property file. I tried the following but all the maps are all mapped with
 the last values at runtime.

 Application.properties

 1 = concert
 2 = parade
 EVENTTYPES = 1, 2

 1 = entertainment
 2 = sports
 3 = arts
 4 = services
 CATEGORIES = 1, 2, 3, 4

 Application.java
 Map EVENTTYPES();
 Map CATEGORIES();

 Runtime:

 [INFO] Event types Key: 1 value: entertainment // Should be concert
 [INFO] Event types Key: 2 value: sports // Should be parade

 [INFO] Categories Key: 1 value: entertainment
 [INFO] Categories Key: 2 value: sports
 [INFO] Categories Key: 3 value: arts
 [INFO] Categories Key: 4 value: services

 Use:

 MapString, String eventtypes = StringManager.Constants().EVENTTYPES();
 MapString, String categories = StringManager.Constants().CATEGORIES();

 I don't know if there is a way to do that in a properties file.

 Thanks

 Fred






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

 


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



gwt_module_id property

2009-01-05 Thread Braudes, Robert (Bob)
I ran into a problem with the integration of GWT and Gears, and was told
to post it to this group rather than the Gears group.
 
I have no problems running the SimpleGadget sample application
directly on iGoogle, but when I try to run it out of Eclipse I get the
stack trace:

[ERROR] Failure to load module 'com.simplegadget.SimpleGadget'
java.lang.RuntimeException: No such property __gwt_module_id
   at com.google.gwt.dev.shell.ie.BrowserWidgetIE6.setIntProperty
(BrowserWidgetIE6.java:219)
   at com.google.gwt.dev.shell.ie.BrowserWidgetIE6.access$200
(BrowserWidgetIE6.java:37)
   at
com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.gwtOnLoad
(BrowserWidgetIE6.java:68)
   at com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.invoke
(BrowserWidgetIE6.java:139)
   at com.google.gwt.dev.shell.ie.IDispatchImpl.Invoke
(IDispatchImpl.java:294)
   at com.google.gwt.dev.shell.ie.IDispatchImpl.method6
(IDispatchImpl.java:194)
   at org.eclipse.swt.internal.ole.win32.COMObject.callback6
(COMObject.java:117)
   at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native
Method)
   at
org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1925)
   at
org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2966)
   at com.google.gwt.dev.GWTShell.pumpEventLoop(GWTShell.java:720)
   at com.google.gwt.dev.GWTShell.run(GWTShell.java:593)
   at com.google.gwt.dev.GWTShell.main(GWTShell.java:357)

Looking through the javadoc and past email threads I can't find
anything on how to set this property, or what is expected.  Any help
would be greatly appreciated.  I apologize in advance if this has
already been discussed.

Regards,

Bob

 
Bob Braudes | Consulting Member of the Technical Staff | CTO Office
Application Architecture and Strategy | 
Avaya | 150 Apollo Drive | Chelmsford, MA 01824 | W: +1 978 677 5031 M:
+1 978 973 5199 | brau...@avaya.com
 

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



Re: 1.6 : New event system

2009-01-05 Thread Adam T

Step3331,

You should just download the 1.6 code from svn and look what is
available to calm your nerves down.

//Adam

On 3 Jan, 19:32, step3...@yahoo.fr step3...@yahoo.fr wrote:
 I heard that the listener is deprecated in 1.6 (and removed in 2.0)
 and will be replaced by handler.

 So how to put event on a DOM element ?

 Is there a method like seteventhandler for DOM element ?

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



can we have multiple directories in source path for module inheritance?

2009-01-05 Thread Smith

I have a module that inherits another module. The inherited module
has
module
  source path=mydir /
/module

 placed in a directory called sample. It works for all sources inside
mydir . Can I specify multiple source paths? I need source from mydir
as well as current directory (sample)  which contains the module.gwt
file. Is it possible to do this?

thanks,

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



Re: can we have multiple directories in source path for module inheritance?

2009-01-05 Thread Smith

My specific question was if I can give . to the current directory or
do they all have to be under subdirectories to be specified in source
path=mydir / ? Can I give
 source path=mydir /
  source path=. /

On Jan 5, 4:46 pm, Smith smitha.kang...@gmail.com wrote:
 I have a module that inherits another module. The inherited module
 has
 module
       source path=mydir /
 /module

  placed in a directory called sample. It works for all sources inside
 mydir . Can I specify multiple source paths? I need source from mydir
 as well as current directory (sample)  which contains the module.gwt
 file. Is it possible to do this?

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



Re: exception not caught in a javascript constructor in IE

2009-01-05 Thread blissteria

I finally managed to reproduce this pb outside of gwt. It seems to be
due to the fact the js is loaded inside an iframe (which is the case
of the js generated by gwt).

Here is a simple example to reproduce it.

 main.html 
html
head
script type=text/javascript
function MyObject(){
  throw String thrown;
};

//This function is the workaround to the pb explained in my previous
post
function wrappingMyObjectConstructor(){
try{
new MyObject();
}
catch(e){
throw(e);
}
}
/script
/head
body
iframe src=iframe.html width=500px height=200px/iframe
/body
/html


 iframe.html 
html
head
script type=text/javascript
function buggy(){
try{
new parent.window.MyObject();
}
catch(e){
alert(e);
}
}

function notBuggy(){
try{
parent.window.wrappingMyObjectConstructor();
}
catch(e){
alert(e);
}
}
/script
/head
body
a href=javascript:buggy();buggy : constructor called directly/
abr/
a href=javascript:notBuggy();not buggy : constructor called via
wrapping function/a
/body
/html



On 5 jan, 18:08, Ian Petersen ispet...@gmail.com wrote:
 On Mon, Jan 5, 2009 at 9:02 AM, blissteria blisste...@hotmail.com wrote:
  There is another solution that works but I do not trully understand
  why. I wrap the call of new MyObject() in a function defined in the
  foo.js file :
  function wrappingMyObjectConstructor() {
   try {
 return new MyObject();
   } catch (e) {
 throw e;
   }
  }

  and calling wrappingMyObjectConstructor in JSNI works fine in IE. This
  is a hack, it works, but does anyone know how to avoid this or can
  explain this?

 You may have found a bug in GWT.  If GWT can catch thrown strings in
 the second case but not in the first case, then I think there's a
 problem with the exception mapping between the languages.  You might
 want to file a bug and, if you do, try to include a really good repro
 case.

 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 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: can we have multiple directories in source path for module inheritance?

2009-01-05 Thread blissteria

Hi,

Here is an allowed example:
 source path=mydir /
 source path= / !-- no dot between the brackets --

but the first line is not useful as the second line will include mydir
unless you specify any include and exclude rules but this is another
topic.

On 6 jan, 01:51, Smith smitha.kang...@gmail.com wrote:
 My specific question was if I can give . to the current directory or
 do they all have to be under subdirectories to be specified in source
 path=mydir / ? Can I give
  source path=mydir /
   source path=. /

 On Jan 5, 4:46 pm, Smith smitha.kang...@gmail.com wrote:

  I have a module that inherits another module. The inherited module
  has
  module
source path=mydir /
  /module

   placed in a directory called sample. It works for all sources inside
  mydir . Can I specify multiple source paths? I need source from mydir
  as well as current directory (sample)  which contains the module.gwt
  file. Is it possible to do this?

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



Re: can we have multiple directories in source path for module inheritance?

2009-01-05 Thread blissteria

*brackets = quotes !




On 6 jan, 06:02, blissteria blisste...@hotmail.com wrote:
 Hi,

 Here is an allowed example:
  source path=mydir /
  source path= / !-- no dot between the brackets --

 but the first line is not useful as the second line will include mydir
 unless you specify any include and exclude rules but this is another
 topic.

 On 6 jan, 01:51, Smith smitha.kang...@gmail.com wrote:

  My specific question was if I can give . to the current directory or
  do they all have to be under subdirectories to be specified in source
  path=mydir / ? Can I give
   source path=mydir /
source path=. /

  On Jan 5, 4:46 pm, Smith smitha.kang...@gmail.com wrote:

   I have a module that inherits another module. The inherited module
   has
   module
 source path=mydir /
   /module

placed in a directory called sample. It works for all sources inside
   mydir . Can I specify multiple source paths? I need source from mydir
   as well as current directory (sample)  which contains the module.gwt
   file. Is it possible to do this?

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



.gwt.xml not on your class path

2009-01-05 Thread Sandeep

Hi,
I have created a GWT RPC application. It runs fine when i deploy it in
sepetrate Tomcat and when i run it using .shell command. But when i
try to run it using Run-Configuration of eclipse it gives me an error
saying that [ERROR] Unable to find 'com/sandeep/transfer/
StringReverse.gwt.xml' on your classpath; could be a typo, or maybe
you forgot to include a classpath entry for source?

What this error means?I have added the source of my project in
ClassPath for Run configuration. where else i have to add it.When we
run the application in Hosted Mode using Run configuration where does
it looks for .gwt.xml file.


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



Re: GWT hosted mode in infinity loop when debugging

2009-01-05 Thread tony,benbrahim

Had the same problem, in my case, the hang was 5 minutes of 50% CPU,
since the project is barely started (3000 LOC)

A full rebuild fixed the problem

Tony

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



Setting Cookies in GWT

2009-01-05 Thread Venkat

Hi All,

 I am very new to GWT? I would like to know how to set and retrive
cookies in GWT.

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



Re: form submit new window ... request getparameter not working???

2009-01-05 Thread Sam Wells

Try this . It worked for me
form.setEncoding(FormPanel.ENCODING_URLENCODED);//ENCODING_MULTIPART);

Thanks
Sam

On Dec 31 2008, 8:35 am, bharat.j...@gmail.com
bharat.j...@gmail.com wrote:
 Hi,
  I have a GWT form and Isubmitthe form to a spring controller. The
 formsubmitshould open in new window. I have a hiddenvalue in form
 that Isubmitwith form. My issue is that form opens a new window but
 when i do request.getParameter(...) I dont get my hidden value. Can
 somebody please help?

 finalFormPanelform = newFormPanel(_blank);
     form.setAction( hostPrefix + /someform/ );
     form.setMethod(FormPanel.METHOD_GET );

     Panel rfpMainPanel = new FlowPanel();

     rfpMainPanel.add( form );

     Panel rfpPanel = new VerticalPanel();

     form.setWidget(rfpPanel);

     final Hidden hiddenValue = new Hidden(multiple, testValue);
     rfpPanel.add( hiddenValue );

     form.addFormHandler( new FormHandler() {
       public void onSubmit(FormSubmitEvent event) {
         Window.alert( hiddenValue.getValue() );
       }
       public void  onSubmitComplete(FormSubmitCompleteEvent event) {

       }
     });

     Image goToRfpForm = new Image();

     goToRfpForm.addClickListener( new ClickListener() {
       public void onClick( Widget sender )
       {
         form.submit();
       }
     } );

     rfpPanel.add( goToRfpForm );

 Thanks
 Bharat

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



[gwt-contrib] Re: Code review request, Creating gen2 versions of Time and Date Spinner to use the new 1.6 datepicker and event system

2009-01-05 Thread dflorey

btw: Why is the datepicker in a separate package and why is this
package not located under user/client/ui?
It looks very strange to me that the datepicker package is currently
on the same level as server, theme and tools...

On 4 Jan., 18:37, dflorey daniel.flo...@gmail.com wrote:
 Hi Emily,
 Happy new year to all of you! I've been suffering from a real-world
 virus but hope to fully recover soon...
 I just upgraded my branch to the latest revision and tried to have a
 look at your port. The actual TimePicker looks good to me, but when
 testing the new 1.6 DateBox I struggled to add a ValueChangeHandler.
 The onValueChange method is never called. As far as I can see all
 the events fired by the DatePicker and the TextBox are consumed by the
 DateBoxHandler, but they will not fire a valueChangeEvent on the
 DateBox as the setValue method will be called with fireEvent=false.
 Once this is fixed I'd like to implement a TimeBox similar to DateBox
 but using a more usefull TimePicker 
 (seehttp://code.google.com/p/google-web-toolkit-incubator/issues/detail?i...
 )

 Cheers,
 Daniel

 On 30 Dez. 2008, 18:33, Emily Crutcher e...@google.com wrote:

  Dear Daniel,
      I hope you are having a great holiday. I've added a gen2 version of
  TimePicker and DatePickerPicker in a new com.google.gwt.gen2.picker package.
   It now depends upon the gwt 1.6 date picker and event system.  If you could
  review my changes and make any more you deem appropriate, that would be
  great!
          Thanks,

                  Emily

  Change 
  link:http://code.google.com/p/google-web-toolkit-incubator/source/detail?r...

  There are only 10 types of people in the world: Those who understand
  binary, and those who don't
--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] Re: review request: add missing packages to javadoc

2009-01-05 Thread John Tamplin
On Mon, Jan 5, 2009 at 11:34 AM, Freeland Abbott gwt.team.fabb...@gmail.com
 wrote:

 I waffled around OOPHM, but decided I shouldn't add it yet.


There isn't anything for OOPHM in user, so I am not sure what would be
documented for it.

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

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



[gwt-contrib] Re: review request: add missing packages to javadoc

2009-01-05 Thread Emily Crutcher
Can we automatically include all shared  and client (excluding impl)
packages instead of manually listing them out? It seems like that may be
less of a maintenance headache at least for the user package organization.



On Mon, Jan 5, 2009 at 11:34 AM, Freeland Abbott gwt.team.fabb...@gmail.com
 wrote:

 Two semantically-equivalent patches attached: I think we want the following
 new packages in the user javadoc set, but they weren't there.

- com.google.gwt.event.dom.client
- com.google.gwt.event.logical.shared
- com.google.gwt.event.shared
- com.google.gwt.debug.client
- com.google.gwt.datepicker.client

 I waffled around OOPHM, but decided I shouldn't add it yet.

 The vertical patch is worse for diff'ing today, but breaks the package
 lists to be one-per-line for easier to manipulation later.  That's the one I
 want to submit, the other is there for easier diff this time.

 Relative to trunk r4375.



 



-- 
There are only 10 types of people in the world: Those who understand
binary, and those who don't

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



[gwt-contrib] Comment on DomEventsAndMemoryLeaks in google-web-toolkit

2009-01-05 Thread codesite-noreply

Comment by e...@google.com:

Cyril,
Can you enter an issue report with some sample code  
here(http://code.google.com/p/google-web-toolkit/issues/entry)?   Feel free  
to e-mail me the issue number directly after you are done, as any memory  
leak you can create with just a tab panel + widgets without iframes, etc.  
is one we'd definitely want to track down!


For more information:
http://code.google.com/p/google-web-toolkit/wiki/DomEventsAndMemoryLeaks

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



[gwt-contrib] review request: add missing packages to javadoc

2009-01-05 Thread Freeland Abbott
Two semantically-equivalent patches attached: I think we want the following
new packages in the user javadoc set, but they weren't there.

   - com.google.gwt.event.dom.client
   - com.google.gwt.event.logical.shared
   - com.google.gwt.event.shared
   - com.google.gwt.debug.client
   - com.google.gwt.datepicker.client

I waffled around OOPHM, but decided I shouldn't add it yet.

The vertical patch is worse for diff'ing today, but breaks the package
lists to be one-per-line for easier to manipulation later.  That's the one I
want to submit, the other is there for easier diff this time.

Relative to trunk r4375.

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

Index: doc/build.xml
===
--- doc/build.xml	(revision 4375)
+++ doc/build.xml	(working copy)
@@ -10,7 +10,7 @@
   property.ensure name=gwt.dev.jar location=${gwt.build.lib}/gwt-dev-linux.jar /
 
   property name=USER_PKGS
-  value=com.google.gwt.core.client;com.google.gwt.core.ext;com.google.gwt.core.ext.soyc;com.google.gwt.core.ext.linker;com.google.gwt.core.ext.typeinfo;com.google.gwt.dom.client;com.google.gwt.i18n.client;com.google.gwt.i18n.rebind.format;com.google.gwt.i18n.rebind.keygen;com.google.gwt.json.client;com.google.gwt.junit.client;com.google.gwt.benchmarks.client;com.google.gwt.user.client;com.google.gwt.user.client.rpc;com.google.gwt.user.client.ui;com.google.gwt.user.server.rpc;com.google.gwt.xml.client;com.google.gwt.http.client;com.google.gwt.animation.client /
+  value=com.google.gwt.core.client;com.google.gwt.core.ext;com.google.gwt.core.ext.soyc;com.google.gwt.core.ext.linker;com.google.gwt.core.ext.typeinfo;com.google.gwt.dom.client;com.google.gwt.i18n.client;com.google.gwt.i18n.rebind.format;com.google.gwt.i18n.rebind.keygen;com.google.gwt.json.client;com.google.gwt.junit.client;com.google.gwt.benchmarks.client;com.google.gwt.user.client;com.google.gwt.user.client.rpc;com.google.gwt.user.client.ui;com.google.gwt.user.server.rpc;com.google.gwt.xml.client;com.google.gwt.http.client;com.google.gwt.animation.client;com.google.gwt.event.dom.client;com.google.gwt.event.dom.logical.shared;com.google.gwt.event.dom.shared;com.google.gwt.debug.client;com.google.gwt.user.datepicker.client /
   property name=LANG_PKGS value=java.lang;java.lang.annotation;java.util;java.io;java.sql /
 
   !--	Individual classes to include when we don't want to 
Index: doc/build.xml
===
--- doc/build.xml	(revision 4375)
+++ doc/build.xml	(working copy)
@@ -10,8 +10,35 @@
   property.ensure name=gwt.dev.jar location=${gwt.build.lib}/gwt-dev-linux.jar /
 
   property name=USER_PKGS
-  value=com.google.gwt.core.client;com.google.gwt.core.ext;com.google.gwt.core.ext.soyc;com.google.gwt.core.ext.linker;com.google.gwt.core.ext.typeinfo;com.google.gwt.dom.client;com.google.gwt.i18n.client;com.google.gwt.i18n.rebind.format;com.google.gwt.i18n.rebind.keygen;com.google.gwt.json.client;com.google.gwt.junit.client;com.google.gwt.benchmarks.client;com.google.gwt.user.client;com.google.gwt.user.client.rpc;com.google.gwt.user.client.ui;com.google.gwt.user.server.rpc;com.google.gwt.xml.client;com.google.gwt.http.client;com.google.gwt.animation.client /
-  property name=LANG_PKGS value=java.lang;java.lang.annotation;java.util;java.io;java.sql /
+  value=com.google.gwt.core.client;
+ com.google.gwt.core.ext;
+ com.google.gwt.core.ext.soyc;
+ com.google.gwt.core.ext.linker;
+ com.google.gwt.core.ext.typeinfo;
+ com.google.gwt.dom.client;
+ com.google.gwt.i18n.client;
+ com.google.gwt.i18n.rebind.format;
+ com.google.gwt.i18n.rebind.keygen;
+ com.google.gwt.json.client;
+ com.google.gwt.junit.client;
+ com.google.gwt.benchmarks.client;
+ com.google.gwt.user.client;
+ com.google.gwt.user.client.rpc;
+ com.google.gwt.user.client.ui;
+ com.google.gwt.user.server.rpc;
+ com.google.gwt.xml.client;
+ com.google.gwt.http.client;
+ com.google.gwt.animation.client;
+ com.google.gwt.event.dom.client;
+ com.google.gwt.event.dom.logical.shared;
+ com.google.gwt.event.dom.shared;
+ com.google.gwt.debug.client;
+ com.google.gwt.user.datepicker.client /
+  property name=LANG_PKGS value=java.lang;
+ java.lang.annotation;
+ java.util;
+ java.io;
+ java.sql /
 
   !--	Individual classes to include when we don't want to 
 include an entire package.


[gwt-contrib] [google-web-toolkit commit] r4377 - releases/1.6/user/src/com/google/gwt/user/client/ui

2009-01-05 Thread codesite-noreply

Author: jlaba...@google.com
Date: Mon Jan  5 11:25:31 2009
New Revision: 4377

Modified:
releases/1.6/user/src/com/google/gwt/user/client/ui/Widget.java

Log:
Corrected the JavaDoc of Widget#doAttach/DetachChildren() to reflect its  
actual usage.  The old comment stated that all implementors of HasWidgets  
must override it.  In fact, it only needs to be overridden if a child  
widget is physically but not logically attached to a parent.

Patch by: jlabanca
Review by: sumitchandel



Modified: releases/1.6/user/src/com/google/gwt/user/client/ui/Widget.java
==
--- releases/1.6/user/src/com/google/gwt/user/client/ui/Widget.java  
(original)
+++ releases/1.6/user/src/com/google/gwt/user/client/ui/Widget.java Mon  
Jan  5 11:25:31 2009
@@ -183,19 +183,23 @@
}

/**
-   * If a widget implements HasWidgets, it must override this method and  
call
-   * {...@link #onAttach()} for each of its child widgets.
+   * If a widget contains one or more child widgets that are not in the  
logical
+   * widget hierarchy (the child is physically connected only on the DOM  
level),
+   * it must override this method and call {...@link #onAttach()} for each of  
its
+   * child widgets.
 *
-   * @see Panel#onAttach()
+   * @see #onAttach()
 */
protected void doAttachChildren() {
}

/**
-   * If a widget implements HasWidgets, it must override this method and  
call
-   * onDetach() for each of its child widgets.
+   * If a widget contains one or more child widgets that are not in the  
logical
+   * widget hierarchy (the child is physically connected only on the DOM  
level),
+   * it must override this method and call {...@link #onDetach()} for each of  
its
+   * child widgets.
 *
-   * @see Panel#onDetach()
+   * @see #onDetach()
 */
protected void doDetachChildren() {
}

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



[gwt-contrib] Re: review request: add missing packages to javadoc

2009-01-05 Thread Freeland Abbott
I'd rather have a blacklist (with regexp matches for e.g. .impl packages),
personally... but yes, it can be done; no, it's not entirely trivial.
Javadoc itself will let you explicitly list packages, list root packages
with recursive descent, or list files.  There's no exclusion, so we'd have
to do it with Ant.  But it seems an Ant fileset (which does allow exclusion)
and the per-file listing would work, if stuffed into an @argfile (which
javadoc also supports)...

The other question is whether we actually lose by javadoc'ing everything, or
maybe everything but **/impl/**.  We're already, I think, doc'ing some *Impl
classes (i.e. impl classes, but not packages, such as CaptionPanelImpl)...
we also exclude things like user/src/com/google/gwt/user/tools
(ProjectCreator, etc) and most of the dev hierarchy as being uninteresting
to users, but might also want a contributor set of javadoc...



On Mon, Jan 5, 2009 at 11:44 AM, Emily Crutcher e...@google.com wrote:

 Can we automatically include all shared  and client (excluding impl)
 packages instead of manually listing them out? It seems like that may be
 less of a maintenance headache at least for the user package organization.




 On Mon, Jan 5, 2009 at 11:34 AM, Freeland Abbott 
 gwt.team.fabb...@gmail.com wrote:

 Two semantically-equivalent patches attached: I think we want the
 following new packages in the user javadoc set, but they weren't there.

- com.google.gwt.event.dom.client
- com.google.gwt.event.logical.shared
- com.google.gwt.event.shared
- com.google.gwt.debug.client
- com.google.gwt.datepicker.client

 I waffled around OOPHM, but decided I shouldn't add it yet.

 The vertical patch is worse for diff'ing today, but breaks the package
 lists to be one-per-line for easier to manipulation later.  That's the one I
 want to submit, the other is there for easier diff this time.

 Relative to trunk r4375.







 --
 There are only 10 types of people in the world: Those who understand
 binary, and those who don't

 


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



[gwt-contrib] Re: Code review request, Creating gen2 versions of Time and Date Spinner to use the new 1.6 datepicker and event system

2009-01-05 Thread Emily Crutcher
On Mon, Jan 5, 2009 at 5:16 AM, dflorey daniel.flo...@gmail.com wrote:


 btw: Why is the datepicker in a separate package and why is this
 package not located under user/client/ui?
 It looks very strange to me that the datepicker package is currently
 on the same level as server, theme and tools...


For new large user modules, we wanted to give users the option of not
including that code by default, therefore these types of modules are being
put into com.google.gwt.user.*name-of-module* rather then under
com.google.gwt.user.client.*name-of-module*.







 On 4 Jan., 18:37, dflorey daniel.flo...@gmail.com wrote:
  Hi Emily,
  Happy new year to all of you! I've been suffering from a real-world
  virus but hope to fully recover soon...
  I just upgraded my branch to the latest revision and tried to have a
  look at your port. The actual TimePicker looks good to me, but when
  testing the new 1.6 DateBox I struggled to add a ValueChangeHandler.
  The onValueChange method is never called. As far as I can see all
  the events fired by the DatePicker and the TextBox are consumed by the
  DateBoxHandler, but they will not fire a valueChangeEvent on the
  DateBox as the setValue method will be called with fireEvent=false.
  Once this is fixed I'd like to implement a TimeBox similar to DateBox
  but using a more usefull TimePicker (seehttp://
 code.google.com/p/google-web-toolkit-incubator/issues/detail?i...
  )
 
  Cheers,
  Daniel
 
  On 30 Dez. 2008, 18:33, Emily Crutcher e...@google.com wrote:
 
   Dear Daniel,
   I hope you are having a great holiday. I've added a gen2 version of
   TimePicker and DatePickerPicker in a new com.google.gwt.gen2.picker
 package.
It now depends upon the gwt 1.6 date picker and event system.  If you
 could
   review my changes and make any more you deem appropriate, that would be
   great!
   Thanks,
 
   Emily
 
   Change link:
 http://code.google.com/p/google-web-toolkit-incubator/source/detail?r...
 
   There are only 10 types of people in the world: Those who understand
   binary, and those who don't
 



-- 
There are only 10 types of people in the world: Those who understand
binary, and those who don't

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



[gwt-contrib] [google-web-toolkit commit] r4376 - in releases/1.6: reference/code-museum/src/com/google/gwt/museum/client/defaultmuseum use...

2009-01-05 Thread codesite-noreply

Author: jlaba...@google.com
Date: Mon Jan  5 08:04:11 2009
New Revision: 4376

Modified:
 
releases/1.6/reference/code-museum/src/com/google/gwt/museum/client/defaultmuseum/VisualsForTree.java
 
releases/1.6/user/src/com/google/gwt/user/theme/chrome/public/gwt/chrome/chrome.css
 
releases/1.6/user/src/com/google/gwt/user/theme/chrome/public/gwt/chrome/chrome_rtl.css
 
releases/1.6/user/src/com/google/gwt/user/theme/dark/public/gwt/dark/dark.css
 
releases/1.6/user/src/com/google/gwt/user/theme/dark/public/gwt/dark/dark_rtl.css
 
releases/1.6/user/src/com/google/gwt/user/theme/standard/public/gwt/standard/standard.css
 
releases/1.6/user/src/com/google/gwt/user/theme/standard/public/gwt/standard/standard_rtl.css

Log:
Fixed TreeItem stlyes that created a gap above Composite and complex  
widgets in Trees.

Patch by: jlabanca
Review by: ecc
Issue: 504



Modified:  
releases/1.6/reference/code-museum/src/com/google/gwt/museum/client/defaultmuseum/VisualsForTree.java
==
---  
releases/1.6/reference/code-museum/src/com/google/gwt/museum/client/defaultmuseum/VisualsForTree.java

(original)
+++  
releases/1.6/reference/code-museum/src/com/google/gwt/museum/client/defaultmuseum/VisualsForTree.java

Mon Jan  5 08:04:11 2009
@@ -18,7 +18,9 @@

  import com.google.gwt.museum.client.common.AbstractIssue;
  import com.google.gwt.user.client.ui.CheckBox;
+import com.google.gwt.user.client.ui.Label;
  import com.google.gwt.user.client.ui.RadioButton;
+import com.google.gwt.user.client.ui.SimplePanel;
  import com.google.gwt.user.client.ui.Tree;
  import com.google.gwt.user.client.ui.TreeItem;
  import com.google.gwt.user.client.ui.VerticalPanel;
@@ -41,6 +43,9 @@
  TreeItem d = new TreeItem(new RadioButton(myradio,
  I should line up nicely));
  TreeItem e = new TreeItem(new CheckBox(I should line up nicely));
+SimplePanel panel = new SimplePanel();
+panel.setWidget(new Label(There should not be any space above me));
+TreeItem f = new TreeItem(panel);

  t.setSelectedItem(b);
  t.addItem(a);
@@ -48,6 +53,7 @@
  t.addItem(c);
  t.addItem(d);
  t.addItem(e);
+t.addItem(f);
  b.addItem(ba);
  b.addItem(bb);
  bb.addItem(bba);

Modified:  
releases/1.6/user/src/com/google/gwt/user/theme/chrome/public/gwt/chrome/chrome.css
==
---  
releases/1.6/user/src/com/google/gwt/user/theme/chrome/public/gwt/chrome/chrome.css
  
(original)
+++  
releases/1.6/user/src/com/google/gwt/user/theme/chrome/public/gwt/chrome/chrome.css
  
Mon Jan  5 08:04:11 2009
@@ -1073,7 +1073,7 @@
  }

  .gwt-Tree .gwt-TreeItem {
-  padding: 1px;
+  padding: 1px 0px;
margin: 0px;
white-space: nowrap;
cursor: hand;

Modified:  
releases/1.6/user/src/com/google/gwt/user/theme/chrome/public/gwt/chrome/chrome_rtl.css
==
---  
releases/1.6/user/src/com/google/gwt/user/theme/chrome/public/gwt/chrome/chrome_rtl.css
  
(original)
+++  
releases/1.6/user/src/com/google/gwt/user/theme/chrome/public/gwt/chrome/chrome_rtl.css
  
Mon Jan  5 08:04:11 2009
@@ -1073,7 +1073,7 @@
  }

  .gwt-Tree .gwt-TreeItem {
-  padding: 1px;
+  padding: 1px 0px;
margin: 0px;
white-space: nowrap;
cursor: hand;

Modified:  
releases/1.6/user/src/com/google/gwt/user/theme/dark/public/gwt/dark/dark.css
==
---  
releases/1.6/user/src/com/google/gwt/user/theme/dark/public/gwt/dark/dark.css   
 
(original)
+++  
releases/1.6/user/src/com/google/gwt/user/theme/dark/public/gwt/dark/dark.css   
 
Mon Jan  5 08:04:11 2009
@@ -977,7 +977,7 @@
  }

  .gwt-Tree .gwt-TreeItem {
-  padding: 1px;
+  padding: 1px 0px;
margin: 0px;
white-space: nowrap;
cursor: hand;

Modified:  
releases/1.6/user/src/com/google/gwt/user/theme/dark/public/gwt/dark/dark_rtl.css
==
---  
releases/1.6/user/src/com/google/gwt/user/theme/dark/public/gwt/dark/dark_rtl.css

(original)
+++  
releases/1.6/user/src/com/google/gwt/user/theme/dark/public/gwt/dark/dark_rtl.css

Mon Jan  5 08:04:11 2009
@@ -977,7 +977,7 @@
  }

  .gwt-Tree .gwt-TreeItem {
-  padding: 1px;
+  padding: 1px 0px;
margin: 0px;
white-space: nowrap;
cursor: hand;

Modified:  
releases/1.6/user/src/com/google/gwt/user/theme/standard/public/gwt/standard/standard.css
==
---  
releases/1.6/user/src/com/google/gwt/user/theme/standard/public/gwt/standard/standard.css

(original)
+++  
releases/1.6/user/src/com/google/gwt/user/theme/standard/public/gwt/standard/standard.css

Mon Jan  5 08:04:11 2009
@@ -1072,7 +1072,7 @@
  }

  

[gwt-contrib] OOPHM LinkageError in trunk

2009-01-05 Thread Sam Gross
Hi John --

The last merge from releases/1.6 into trunk (r4367) introduced a
LinkageError in OOPHM.  A call to injectJsniFor, which was removed
during the OOPHM merge (r4201) reappeared in
CompilingClassLoader#findClassBytes.

Removing the call from the trunk version of CompilingClassLoader fixes
the LinkageError.

Regards,
Sam

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



oophm-linkage-r4377.patch
Description: Binary data


[gwt-contrib] Re: PopupPanel style applied to wrong element on Firefox 3 for Mac

2009-01-05 Thread rjrjr

LGTM

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

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



[gwt-contrib] RR: use jarjar to rename GWT's internal dependencies

2009-01-05 Thread Lex Spoon

The gwt-dev-*.jar files include a lot of code that GWT depends on but
that should not be directly used by clients of GWT.  This can cause
issues for any application that both tries to run the GWT compiler and
also has its own copy of one of these dependencies.

One way to help is to use jarjar to rename the dependencies.  The
attached patches do so.  They break up the build of gwt-dev-linux.jar
(and mac, and windows) into two steps.  First gwt-dev-linux-raw.jar is
built, and then jarjar is applied to that to produce
gwt-dev-linux.jar.  This way, all the source code references the
internal dependencies in the original package locations, but anything
depending on gwt-dev-linux.jar will get a version of the jar with the
internal dependencies renamed.  One advantage of this approach is that
there are no alternative gwt-dev-linux.jars floating around; the very
first one that is built already has the renaming.

I think this supports all the important use cases, but could have
overlooked something.  Both ant dist and ant test succeed.  Can
anyone think of any case that would be tricky?  People developing on
the compiler itself would not use ant and so would not do any
renaming.

Freeland, if the strategy looks good, can you review the attached
patches?  The first patch is for the tools directory, the second for
the build files in GWT's trunk.  The jar file is not attached, but
would be a direct download from the jarjar web site.  I don't see a
need to modify it given that it is only used during our building and
is not included in alldeps.jar.

The precise jarjar rules used were supplied by fabbot.  For
convenience of anyone curious, here is the precise invocation of
jarjar including the rewrite rules:

jarjar destfile=${project.lib}
  zipfileset src=${project.lib.raw} /
  rule pattern=org.xml.** result=@0 /
  rule pattern=org.w3c.** result=@0 /
  rule pattern=org.omg.** result=@0 /
  rule pattern=org.ietf.** result=@0 /
  rule pattern=org.apache.tapestry.** result=@0 /
  rule pattern=org.** result=com.google.gwt.thirdpar...@0 /
/jarjar



Lex

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



[gwt-contrib] Re: OOPHM LinkageError in trunk

2009-01-05 Thread John Tamplin
On Mon, Jan 5, 2009 at 5:00 PM, Sam Gross colesb...@gmail.com wrote:

 The last merge from releases/1.6 into trunk (r4367) introduced a
 LinkageError in OOPHM.  A call to injectJsniFor, which was removed
 during the OOPHM merge (r4201) reappeared in
 CompilingClassLoader#findClassBytes.

 Removing the call from the trunk version of CompilingClassLoader fixes
 the LinkageError.


Thanks, commited at r4378.

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

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



[gwt-contrib] [google-web-toolkit commit] r4378 - trunk/dev/core/src/com/google/gwt/dev/shell

2009-01-05 Thread codesite-noreply

Author: j...@google.com
Date: Mon Jan  5 14:15:04 2009
New Revision: 4378

Modified:
trunk/dev/core/src/com/google/gwt/dev/shell/CompilingClassLoader.java

Log:
Fix OOPHM breakage from latest merge.

Patch by: sgross
Review by: jat


Modified:  
trunk/dev/core/src/com/google/gwt/dev/shell/CompilingClassLoader.java
==
--- trunk/dev/core/src/com/google/gwt/dev/shell/CompilingClassLoader.java   
 
(original)
+++ trunk/dev/core/src/com/google/gwt/dev/shell/CompilingClassLoader.java   
 
Mon Jan  5 14:15:04 2009
@@ -720,8 +720,6 @@

  byte classBytes[] = null;
  if (compiledClass != null) {
-
-  injectJsniFor(compiledClass);
classBytes = compiledClass.getBytes();
if (!compiledClass.getUnit().isSuperSource()) {
  /*

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



[gwt-contrib] Proposed change: further flexibility for logging/filtering requests and responses on servlets

2009-01-05 Thread Rodrigo Damazio
   The attached patch adds the capability of inspecting and changing both
the serialized and deserialized contents of requests and responses
(including intercepting exceptions before they're sent to the client). This
opens all kinds of possibilities if properly used - monitoring the type and
amount of exceptions setn back to clients for server health monitoring,
sending of out-of-band data (e.g. the retry number for a GWT-RPC call), and
so on.
   This is a midpoint solution between only allowing the programmer to
inspect the contents and making a full-blown filtering system with an
out-of-band-data API - i.e., the most flexible that it could be without
getting complicated.
   Please review this patch.

Thanks!
Rodrigo

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



serialization-filter.patch
Description: Binary data