Re: Animation

2008-08-28 Thread Jason Essington
I've not seen anything like that with any of my animations in 1.5rc2 maybe you could post your code that is causing the error? -jason On Aug 28, 2008, at 11:23 AM, TiMeZoNe wrote: can anyone help me, please? --~--~-~--~~~---~--~~ You received this message

Re: Application start up (or replicating synchronous calls)

2008-08-28 Thread Jason Essington
Bob Vawter did a presentation during the Google I/O conference that addressed an issue similar to this. Rather than using a static host page, and making RPC calls at startup, you could use a JSP or servlet, and embed the initial data right into the page to be parsed at startup, no

Re: [RPC example] Can't get RPC example working (using GWT 1.5 and kitchenSink)

2008-08-28 Thread Jason Essington
the @override annotations need to go away and the onSuccess should be public void onSuccess(String result) rather than Object since you defined the callback as AsyncCallbackString see if those two things don't get you a little closer. -jason On Aug 28, 2008, at 1:52 PM, EJ Blom wrote:

Re: Google Chrome

2008-09-03 Thread Jason Essington
Chrome uses the Webkit engine so the GWT DOM implementation for Chrome is the same as for Safari, therefor, no need for separate support -jason On Sep 3, 2008, at 5:43 AM, matias_warrior wrote: What about a GWT DOM impl for Chrome? On Sep 3, 7:24 am, Reinier Zwitserloot [EMAIL PROTECTED]

Re: Google Chrome

2008-09-03 Thread Jason Essington
On Sep 3, 2008, at 10:27 AM, Ian Bambury wrote: I thought I just said that - well, three hours ago - Maybe you did ... I start writing a response, then forget to press send for a few hours, so when my mail window makes it back to the top of the stack, and I finish up, I very well could be

Re: Google Chrome

2008-09-03 Thread Jason Essington
oh, here it is! Your fist post arrived at 10:28 my time, and this one at 10:55 my time. There must be some crazy time warp thing in the google data centers ... -jason On Sep 3, 2008, at 6:30 AM, Ian Bambury wrote: Chrome uses Google's version of WebKit (whick is a fork of KHTML),

Re: How to display widget in html div wth rootPanel.get('div_id')

2008-09-04 Thread Jason Essington
On Sep 4, 2008, at 3:02 PM, Sumit Chandel wrote: Hi Kwame, I just tried to reproduce the issue with the code snippet below and didn't have any problems with displaying the ListBox. I tried this on Firefox 2 with GWT 1.5 and used the standard stylesheet (inherits

Re: 1.5's equivalent of 1.3

2008-09-05 Thread Jason Essington
The gwt.js and xxx.nocache.html files have been replaced by xxx.nocache.js. However, if you were hacking around in those files in 1.3, then you'll want to watch Bob Vawter's presentation on resource bundles and linkers. It'll show you how you can have the compiler simply generate what

Re: RPC String Deserialization error when string contains a quote.

2008-09-05 Thread Jason Essington
__widgetID=0 instead of cellSpacing= 0 for example. Is there a solution for this behavior of ie-explorer? On 13 Aug., 23:23, Jason Essington [EMAIL PROTECTED] wrote: While looking at Peterk's issue with XMLParser, I've found what I think is likely a bug in GWTs deserialization of String

Re: Download file with GWT

2008-09-11 Thread Jason Essington
Number 1 is actually very important. If you are going to use Window.open it has to be done as a direct result of a user action, otherwise popup blockers will prevent the window from being opened. This means that you can't place the Window.open command in a callback or any kind of deferred

Re: RPC host mode fine --- RPC deployed web mode fails

2008-09-19 Thread Jason Essington
does your object have public getters and setters? -jason On Sep 19, 2008, at 12:27 AM, Barry wrote: Hi ... I have a (relatively) simple project that demonstrates an RPC failure that I don't know how to fix. There are two remote calls. SimpleCall returns an integer and succeeds both in

Re: Communicating between php and GWT using JSON

2008-09-19 Thread Jason Essington
HTTPRequest is deprecated, you should consider using RequestBuilder JSON is fine for trusted sources, and the parsing (de-serializing) is actually pretty instantaneous if you use the JS Overlay techniques (direct evaluation) available in GWT 1.5. Of course, if you are getting JSON from a

Re: RPC host mode fine --- RPC deployed web mode fails

2008-09-19 Thread Jason Essington
and setters??? Thanks! On Sep 19, 8:10 am, Jason Essington [EMAIL PROTECTED] wrote: does your object have public getters and setters? -jason On Sep 19, 2008, at 12:27 AM, Barry wrote: Hi ... I have a (relatively) simple project that demonstrates an RPC failure that I don't know how to fix

Re: Poll: GWT 1.4.62 vs 1.5 -- what are you using? what are your plans?

2008-09-26 Thread Jason Essington
1) yes - new and migrated projects 2) yes - but migrating as fast as possible 3) no - hope to be using 1.6+ 4) no 5) no - unless the 1.6 dev cycle spins out of control 6) no 7) as soon as all of my current projects are migrated -jason On Sep 22, 2008, at 3:57 PM, John Gunther wrote: Trying

Re: Ajax on a server that does not support servlet

2008-10-01 Thread Jason Essington
AJAX (Asynchronous Javascript and XML) really only implies the client side technology, and GWT is server agnostic (with the exception of GWT- RPC). So, Sure, you can use whatever you want on the server. You build up your request on the client using the RequestBuilder class. The data that

Re: Safe to make *ServiceAsync a singleton?

2008-10-01 Thread Jason Essington
Sure, it is a very reasonable thing to do. Some notes though, Lazy instantiation would be good, particularly if you have many services that won't necessarily be used in a particular service. And I put the singleton into the xxxServiceAsync interface rather than the xxxService interface.

Re: Ajax on a server that does not support servlet

2008-10-01 Thread Jason Essington
well sure, RequestCallback is an interface that has just 2 methods onError(Request request); and onResponseReceived(Request req, Response res); your inline class implements 2 methods: onError() and onRequestReceived() onRequestReceived is not part of the interface, and doesn't really belong

Re: Problems with List of Object in GWT 1.5

2008-10-02 Thread Jason Essington
You are going to get this from quite a few people, but Don't return Object. when you do that GWT is forced to generate serializers for every serializable type in the known world ... whether you use it or not. This will cause quite a bit of extra code to be generated. Do a search on this

Re: Ajax on a server that does not support servlet

2008-10-03 Thread Jason Essington
you need to read this explanation: http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/faca1575f306ba0f It talks specifically about RPC, but it is relevant to all Asynchronous calls. -jason On Oct 2, 2008, at 6:47 PM, slow wrote: Thank you Jason for your help. That was

Re: Can't use browser back/forward

2008-10-09 Thread Jason Essington
http://code.google.com/docreader/#p=google-web-toolkit- doc-1-5s=google-web-toolkit-doc-1-5t=DevGuideHistory -jason On Oct 7, 2008, at 2:12 AM, hooly.jia wrote: hello! I build a new project, and add some panel in the project. but my project can't use back/forward button of browser.

Re: Your opinion sought: Jetty or Tomcat?

2008-10-14 Thread Jason Essington
Since creating a usable server side configuration in the embedded servlet container is all but impossible for anything but the simplest projects, I think that the choice of embedded server is a non-issue. Since complicated configurations aren't really something you want to address in the

Re: Your opinion sought: Jetty or Tomcat?

2008-10-14 Thread Jason Essington
It already is! have a look at -noserver My project requires a full blown JEE container, not just a servlet engine, so neither tomcat nor jetty would be enough. I have been using -noserver since the beginning and it works great. If the embedded server doesn't fit your needs (no matter what

Re: Graphs in pdf file

2008-10-15 Thread Jason Essington
You'll want to generate pdf on the server side ... Have a look at iText, or JasperReports for PDF generation or Reporting solutions respectively. -jason On Oct 15, 2008, at 2:05 AM, sridhar wrote: Hi all, I have generated some graphs using gwt's GChart.jar.Now i want that graphs to

Re: StackOverflowError with OOPHM GWTCompiler

2008-10-16 Thread Jason Essington
are you guys increasing the stack space for the compiler? -Xmx and - Xms jvm args? -jason On Oct 16, 2008, at 11:36 AM, Dominik Steiner wrote: I get the same StackOverflowError but on a version build from the 1.5.2 trunk on the 30th of September. I also have a big application and I get

Re: StackOverflowError with OOPHM GWTCompiler

2008-10-17 Thread Jason Essington
is a good one, but he probably meant -Xss (-Xmx is heap space). On Thu, Oct 16, 2008 at 3:06 PM, Jason Essington [EMAIL PROTECTED] wrote: are you guys increasing the stack space for the compiler? -Xmx and - Xms jvm args? -jason On Oct 16, 2008, at 11:36 AM, Dominik Steiner wrote: I

Re: Adding widget to RootPanel gets added twice

2008-10-17 Thread Jason Essington
Has to be since it is not possible to have the same object in two different places in DOM at one time. In fact, you can test that by doing: public void onModuleLoad() { Button btn = new Button(button); RootPanel.get().add(btn);

Re: GWT Date and Time serialization

2008-10-17 Thread Jason Essington
Of course this is expected behavior! When you are talking about time, that time is relative to your location. Just because it is noon where you are, doesn't mean it is noon where I am. If you are in New York, and post a schedule to your server that indicates that you will be having a

Re: GWT Date and Time serialization

2008-10-20 Thread Jason Essington
previous post? Thanks On Oct 18, 9:08 am, Jason Essington [EMAIL PROTECTED] wrote: Of course this is expected behavior! When you are talking about time, that time is relative to your location. Just because it is noon where you are, doesn't mean it is noon where I am. If you are in New York

Re: i need implement gwt with email

2008-10-20 Thread Jason Essington
You'll need to do that from the server side ... GWT is bound by what is possible in JavaScript on a web browser, and connecting directly to an email server is not. You can certainly create an email UI that runs in the browser, send the parts of the email (body, to, from, etc) to the

Re: i need implement gwt with email

2008-10-21 Thread Jason Essington
AM, andres ospina wrote: i like to have the code for implement in my web siti 2008/10/20 Jason Essington [EMAIL PROTECTED] You'll need to do that from the server side ... GWT is bound by what is possible in JavaScript on a web browser, and connecting directly to an email server

Re: ¿How waiting for a rpc and then to continue executing a code?

2008-10-21 Thread Jason Essington
the quick answer is to put everything you want executed AFTER the RPC completes into a method, call that method from the onSuccess() of your AsyncCallback. -jason On Oct 21, 2008, at 5:51 AM, Edu wrote: Hello, I like to know since i can wait for a rpc, have tried with timer, but there is

Re: GWT 1.5.3 zip files are corrupt for windows and linux

2008-10-23 Thread Jason Essington
I've seen that happen, the download stopped before you received the whole file. if the file on your filesystem is smaller than what Google claims the file should be, then you don't have a complete archive, and no amount of repairing is going to help you unzip it. Just try downloading it

Re: RPC Image

2008-10-23 Thread Jason Essington
, at 9:08 AM, Jim Freeze wrote: Hi On Thu, Oct 23, 2008 at 9:54 AM, Jason Essington [EMAIL PROTECTED] wrote: Although you could certainly return the bytes of an image via RPC, once you have them on the client side, there is no way to actually turn those bytes into an image (or even save those

Re: rpc with external servlet

2008-10-24 Thread Jason Essington
RPC uses XHR internally and as such is bound by the browsers Same Origin Policy. Simply ... No, RPC will not connect to a server that is different than the one the host page was loaded from. -jason On Oct 24, 2008, at 3:34 AM, vaibhav saxena wrote: HI groups, i am doing the pocs over

Re: Deploy RPC on WAMP5 Server

2008-10-26 Thread Jason Essington
GWT-RPC uses Java Servlets on the server side. apache + mod_php doesn't directly support servlets, so you'd have to install a servlet container as well (tomcat or jetty for instance). however, the better option, if the rest of your application is written in PHP would be to just forgo

Re: rpc with external servlet

2008-10-27 Thread Jason Essington
of the originating app, so you'll have to work a little harder at getting the proper URL path. -jason On Oct 24, 2008, at 11:22 PM, vaibhav saxena wrote: Hi Jason Essington You are right that rpc will connect to server from which the host page is generating but in my project approach is little bit

Re: Enumerating Javascript Overlay Types

2008-10-27 Thread Jason Essington
Right, if you want to enumerate the fieldnames of a JSON object, then you'd probably have to use the JSON parser. You could probably use a JSNI method in an overlay type to return an array of field names, then have another JSNI method in the object that would return the field, the problem

Re: Cast Element to Widget

2008-10-29 Thread Jason Essington
Technically no, that's like saying I have this tire here, how do I cast it to a pickup truck? I want to use it to haul a couch. That isn't even a reasonable thing to expect ... HOWEVER ... Some widgets have a static wrap() method that allow you to connect elements that exist in DOM to the

Re: gwt rpc vs json

2008-10-29 Thread Jason Essington
if your JSON is coming from a trusted source, you really should have a look at overlay types in GWT. It is much simpler (and faster) than mucking about with the JSON parser. -jason On Oct 29, 2008, at 8:31 AM, Brian wrote: Sounds pretty good. Seems like I spend half my time typing: int n

Re: gwt rpc vs json

2008-10-29 Thread Jason Essington
The current RPC wire format is asymetric, meaning that the same object going to the server will look different than coming from the server. There also isn't really a published spec for the RPC wire format as it tends to change from version to version of GWT. In GWT, this is not an issue

Re: how to close browser window

2008-10-30 Thread Jason Essington
it is really pretty easy using JSNI public static native closeWindow(JavascriptObject myWindow)/*- { myWindow.close(); }-*/; HOWEVER, you can only close windows that you open, and to close them, you have to have a reference to the window object. Since GWTs Window.open() doesn't return

Re: Download App on GWT using RPC

2008-10-30 Thread Jason Essington
you don't do it that way ... you've got a bunch of bytes returned to your RPC that you can do nothing with ... I have a service that builds reports like this, and it opens a new window (has to do this as a direct result of a user action otherwise it'll be blocked by popup blockers), sends

Re: Download App on GWT using RPC

2008-10-30 Thread Jason Essington
. Theres some default place to put that on server? On Thu, Oct 30, 2008 at 4:02 PM, Eduardo Cardoso [EMAIL PROTECTED] wrote: Hmm thats ok , thanks for the prompt help! On Thu, Oct 30, 2008 at 3:59 PM, Jason Essington [EMAIL PROTECTED] wrote: you don't do it that way ... you've got

Re: Why gwt-user.jar contains servlet api's?

2008-11-03 Thread Jason Essington
you shouldn't be deploying gwt-user.jar, but rather gwt- servlet.jar ... it omits all of the stuff required for development, but undesirable in deployment. -jason On Nov 3, 2008, at 9:43 AM, Harsha wrote: When we deploy the webapplication with gwt-user.jar to JBoss, we are getting

Re: Why gwt-user.jar contains servlet api's?

2008-11-04 Thread Jason Essington
] wrote: I think I understand where this questions leads us. He's asking why doesn't GWT distribution just put the servlet API in a separate jar instead of bundling it inside gwt-user.jar :-) On Nov 4, 8:37 am, Jason Essington [EMAIL PROTECTED] wrote: you shouldn't be deploying gwt-user.jar

Re: Why gwt-user.jar contains servlet api's?

2008-11-04 Thread Jason Essington
gwt-foo.jar to bother with and still leaves open the possibility for people to mistakenly deploy gwt-foo.jar. On Tue, Nov 4, 2008 at 11:12 AM, Jason Essington [EMAIL PROTECTED] wrote: It would allow people to mistakenly deploy the gwt-user.jar rather than the correct lib (gwt-servlet.jar

Re: ImageBundle combines my images

2008-11-10 Thread Jason Essington
That's correct, The whole point of ImageBundle is that it combines all of the images into a single file, and then uses clipping at runtime to only show the portion related to a particular image. The idea here is to reduce the request count, and byte count overall for a page. -jason On Nov

Re: windows to mac

2008-11-10 Thread Jason Essington
The .cmd script for windows is initially created when you run the applicationCreator. To get those files on your mac, you can rerun the applicationCreator there (always backup your project first :-) Another option (as Olivier said) is to create a launcher in your IDE to do the job that the

Re: Problem with GWT 1.5 and IE 7

2008-11-11 Thread Jason Essington
That's funny, because my windows open, and I can get music ... of course my car is a Jeep. Maybe you shouldn't have implemented IsSilent, and IsSubmarine -jason On Nov 11, 2008, at 5:05 AM, Ian Bambury wrote: Well, normally these things work, so without some kind of indication of what

Re: static method wrap(Element) conflicts compiler error. Why?

2008-11-11 Thread Jason Essington
Well in general the code is probably filled with syntax errors when using the Java 1.4 compiler ... And since GWT 1.5.x is not compatible with the Java 1.4 compiler I would consider this a non issue. Since GWT 1.5 is not compatible with Java 1.4 I would not expect it to work and the

Re: Using a common code both at client and server side

2008-11-11 Thread Jason Essington
sure, and in fact it is quite common to use the same code in both places. The easy way to do this is to consolidate that shared code into a particular package ... something like com.foo.bar.shared Then create a new GWT.xml file com/foo/bar.Shared.gwt.xml and add source path=shared/ your

Re: question about JSNI

2008-11-11 Thread Jason Essington
not sure I understand the need for the System.currentTimeMillis() ... Simply doing new Date(); would be the same as what you are doing ... Date initializes with a current time of NOW if you don't supply a time. -jason On Nov 10, 2008, at 2:35 PM, bw wrote: It seems the problem only occurs

Re: Using a common code both at client and server side

2008-11-13 Thread Jason Essington
. Is this a similar way, to creating a module Jason Essington wrote: sure, and in fact it is quite common to use the same code in both places. The easy way to do this is to consolidate that shared code into a particular package ... something like com.foo.bar.shared Then create a new GWT.xml

Re: calling new DOMParser()

2008-11-17 Thread Jason Essington
once you step into JSNI, you are in the javascript world, accessing java objects is a bit more complicated than in non-JSNI methods. http://code.google.com/docreader/#p=google-web-toolkit- doc-1-5s=google-web-toolkit-doc-1-5t=DevGuideJavaFromJavaScript -jason On Nov 17, 2008, at 9:29 AM,

Re: Web Service in GWT Application

2008-11-20 Thread Jason Essington
If you search this forum, someone just released a SOAP api for GWT ... However, the GWT client side is bound by SOP (Same Origin Policy) so you'll not be able to connect to random web services on random servers directly from the client. The web browser will not allow it. -jason On Nov 20,

Re: Animations

2008-11-22 Thread Jason Essington
many gwt widgets already have animations! Have a look at Tree, and DialogBox for example. At the very least the existing animated Widgets will give you an idea of how to animate your own Widgets. Using the new animation classes in GWT I have been able to remove all references to external

Re: same-origin security restriction

2008-11-24 Thread Jason Essington
Actually, allowing Hosted mode to violate SOP would lead to even more problems come deployment time... The idea with hosted mode is that it mirrors an actual browser as nearly as possible, so by breaking (not fixing) the SOP behavior, developers are likely to run into issues where

Re: dao and GWT

2008-12-03 Thread Jason Essington
GWT is mostly client side technology, so DAO never really comes into play, that is more of a server side implementation detai. -jason On Dec 2, 2008, at 1:02 PM, rizla wrote: Hi to everyone ..how I can see a code example of an implementation of GWT with DAO pattern? many thanks to all :D

Re: How do I separate static files?

2008-12-03 Thread Jason Essington
firebug (or Web Inspector) could help you out ... -jason On 1 dez, 15:55, Jason Essington [EMAIL PROTECTED] wrote: The simplest thing to do would be to put your module files in your war, that way the module and your service implementation are in the same context, and you can do

Re: URL that is launced in Hosted Mode

2008-12-08 Thread Jason Essington
does GWT.getHostPageBaseURL() help you out any? -jason On Dec 6, 2008, at 3:50 PM, funwithgwt wrote: Hi, Question 1: My URL in hosted mode looks like this: http://localhost:/com.mywebsite.MyBlog/MyBlog.html I would like the application to be launced in hosted mode so that it looks

Re: JDBC/MySQL Driver error

2008-12-08 Thread Jason Essington
select: Run - Build Configurations Then pick you launcher from the list on the left select the classpath tab, and add your required jar there Of course JDBC drivers only work on the server side, and not in client code. -jason On Dec 2, 2008, at 12:58 PM, [EMAIL PROTECTED] wrote: Thanks

Re: Does GWT RPC use HTTP?

2008-12-08 Thread Jason Essington
GWT-RPC uses the browsers XMLHTTPRequest mechanism. As such, it is required to use the same protocol and port used to load your host page (to avoid running afoul of the Same Origin Policy). So, if your host page is loaded via HTTP port 80 the RPC uses HTTP port 80 ... if you are in hosted

Re: GWT WITH SOAP.

2008-12-08 Thread Jason Essington
The assumption was that you wanted to communicate to a different server (than your GWT module came from) via SOAP, which is particularly difficult to do with a web browser due to Same Origin Policy. which would require GWT - rpc to your server - SOAP to remote server However if you are

Re: Question about the Same-Origin policy

2008-12-08 Thread Jason Essington
SOP says that XHRs can only connect to the domain that the host page was loaded from. So, of you have http://www.domain1.com/gwt-app/SomePage.html it doesn't matter where that page gets the GWT module from script type=text/javascript

Re: TextBox listener for contents changed?

2008-12-11 Thread Jason Essington
That's correct, onChange fires after the text box looses focus, but you can listen to onkeypress. onKeypress is fired before the text box is updated allowing you to cancel the keypress if desired. The trick is to use DeferredCommand.addCommand() to handle the text. public void

Re: What gwt method and/or event indicates that the object has been rendered?

2008-12-11 Thread Jason Essington
Thomas is correct here. onAttach() performs some very important functions related to widget behavior, so if you are not careful (to call super.onAttach()) then you would end up with broken widgets if you override that method. It is useful to override onAttach() if you need to perform some

Re: Reduce GWT (MD5) file names size

2008-12-15 Thread Jason Essington
At one time there was a feature request for this very thing: http://code.google.com/p/google-web-toolkit/issues/detail?id=686 It seemed that Google Page Creator truncated filenames that were longer than a certain length. Since page creator has been deprecated, it may no longer be relevant,

Re: Using eclipse project references with GWT.

2008-12-15 Thread Jason Essington
I use this technique in eclipse and it works as expected. if you want to use your JPA objects in your GWT [client] code (caution, there be dragons here) then you will need to add a reference to the JPA project in the GWT project. Also, you'll need your JPA objects to be translateable, and

Re: GWT Image Cache problem

2008-12-15 Thread Jason Essington
You could try attaching a cache-buster to the url ... append a timestamp or something to prevent the URL from being the same each time. -jason On Dec 15, 2008, at 10:15 AM, dhoffer wrote: My application makes extensive use of displaying dynamic images via the image#setUrl() method. The

Re: GWT Image Cache problem

2008-12-15 Thread Jason Essington
compiling down to javascript that ultimately is going to end up running in a browser ... some versions of which are decidedly hostile towards web developers. -jason -Dave On Mon, Dec 15, 2008 at 10:23 AM, Jason Essington jason.essing...@gmail.com wrote: You could try attaching a cache-buster

Re: GWT Image Cache problem

2008-12-15 Thread Jason Essington
yet. Regarding the cache, in my mind a good object API would provide a boolean to enable/disable caching. But what is even worse is caching that doesn't show any image. -Dave On Mon, Dec 15, 2008 at 2:16 PM, Jason Essington jason.essing...@gmail.com wrote: On Dec 15, 2008, at 12:22 PM

Re: GWT application performance

2008-12-16 Thread Jason Essington
Not really. It is just a way to organize code. once it is compiled, everything becomes a monolithic obfuscated JS codebase, so one module or a dozen would end up pretty much the same after compilation. -jason On Dec 15, 2008, at 7:18 PM, banty_shaily wrote: Hi, Does creating more

Re: Dollar sign in filename

2008-12-16 Thread Jason Essington
Generally things like Class1$Class2$Class3.class are due to inner classes in the java source, and those files are generated and named by the compiler. Dunno about properties files using that format. -jason On Dec 16, 2008, at 4:55 PM, jchimene wrote: Hi, Would someone please post a

Re: Reading POST parameters on GWT app

2008-12-17 Thread Jason Essington
Correct, you cannot read the post parameters from the client, as they don't really exist. An HTTP post supplies the post parameters as the content of the request (server) and they are no longer available when the response is returned (client) you would have to parse the parameters on the

Re: Error's , PLEASE HELP ME :)

2008-12-29 Thread Jason Essington
Judging from the error message something in GWT is attempting to access an object from outside of GWT ... $wnd.Ext.StatuBar ... and that object does not exist ... This is likely to mean that you have either forgotten to add the script tag for that external library, or the file is not where

Re: How to attach a click listener to an existing SPAN element?

2009-01-12 Thread Jason Essington
That is correct! Label will wrap either span or div elements. if you want to wrap other elements there may already be other widgets that work with them. The only thing to be aware of is, if at sometime in the lifespan of your page you remove that element, or dispose of the widget, be sure

Re: step by step to build entire web app with gwt1.5

2009-01-12 Thread Jason Essington
Unfortunately, what you are asking is akin to wanting a step by step tutorial for building a whole neighborhood using a hammer ... The thing is, GWT is just one component of a larger ecosystem, and you would need to identify the other parts as well. GWT is not a complete solution for

Re: How to render a list(ul li) by gwt widget ?

2009-01-15 Thread Jason Essington
There is a feature request for a UL and LI widget, however they are not yet included ... however, they aren't that difficult to create, I've had to do it for a couple of projects. You can use FlowPanel as your guide, and create similar widgets using the ul and li element. you could add

Re: GWT's generated javascript is opaque to 'view source'

2009-01-22 Thread Jason Essington
The compiled javascript in any form is probably less than useful to anyone wanting to reuse the code. probably the simplest solution would be to package the source up into a jar (or a zip file) and place a link in comments just before your script tag that loads the module !-- source code

Re: getElementById is always null

2009-01-26 Thread Jason Essington
Are you developing / testing on IE? I think that you can only create (set) the id of an element the moment it is created. At any rate, I think you are going about your task all wrong anyway. If you are doing any manual DOM manipulation of Widgets that you have created (Labels in this case)

Re: Error Message

2009-01-27 Thread Jason Essington
What ever type of panel you are attempting to add a widget to, hasn't overriden the .add(Widget child) method from Panel, so it is throwing this exception. perhaps there is a different method that you are supposed to use to add widgets to your panel? -jason On Jan 27, 2009, at 2:40 PM,

Re: what design pattern to use with DWT

2009-01-28 Thread Jason Essington
MVC is a good design pattern to use with GWT. If you are new to GWT, get Ryan Dewsbury's book Google Web Toolkit Applications it does a very good job of outlining exactly what is model, view and controller in each example project. -jason On Jan 28, 2009, at 9:10 AM, asdf_asdf wrote: His,

Re: Soylatte 32 bit Java 6 for Mac, how to enable Eclipse to use it

2009-01-30 Thread Jason Essington
Why not just run hosted mode in java 5? It works just fine. -jason On Jan 30, 2009, at 11:05 AM, Gary S wrote: Soylatte has a 32 bit Intel Java 6 which should allow OS X to run hosted mode on a Mac. http://landonf.bikemonkey.org/static/soylatte/#usage It's a Standard VM and Eclipse

Re: Cube Root

2009-01-30 Thread Jason Essington
Math.pow(someNumber, 1d/3d); doesn't work for you? -jason On Jan 30, 2009, at 4:11 PM, pasqual wrote: the Math class cube root, Math.cbrt(x), is not implemented in GWT. I have some JS that works, using the Newton method, but I am wondering about the best way to add it to the existing JSNI

Re: Cube Root

2009-02-02 Thread Jason Essington
The 'd' simply declares those numbers to be double rather than integer. -jason On Jan 31, 2009, at 4:19 AM, pasqual wrote: good call Jason. i should have remembered that: pow(x, 1/3) == cbrt(x) I'm not sure what 'd' represents though. On Jan 30, 5:51 pm, Jason Essington jason.essing

Re: Why GWT is too slow on some browers?

2009-02-04 Thread Jason Essington
Well, there are a couple of things to consider ... besides the possibility of BHOs mucking up the works in your particular install of IE. 1) Creating a large number of objects can certainly be slow if done in a tight loop. (for instance populating a very large grid with widgets). if you

Re: Deploying a GWT application

2009-02-05 Thread Jason Essington
O.K. the compiler spits out pretty much everything that was in a public path, so expect to see those in the output (www) directory. in addition you'll likely see some of the following: [module_name].nocache.js - this is the bootstrap file that loads the actual GWT module. [hash].cache.html

Re: Deploying a GWT application

2009-02-05 Thread Jason Essington
it. Would you let me know the right way. What is it that gets the generated GWT code to start running on the client side? Thanks. -- Russ On Feb 5, 12:13 pm, Jason Essington jason.essing...@gmail.com wrote: O.K. the compiler spits out pretty much everything that was in a public path, so

Re: RPC call efficiency

2009-02-06 Thread Jason Essington
Just curious, what happens if you return a string, or an int rather than a long? longs are emulated in GWT and have been pegged as being a bit slow, but 1s sure seems like an awful lot. The other thing to do is pull up FireBug (Firefox), or WebInspector (WebKit nightly builds) and check

Re: multiple rpc calls to server (can someone advise me!)

2009-02-06 Thread Jason Essington
gregor is right, you are trying to perform your update synchronously but your request is happening asynchronously. A full explanation of your exact problem can be found in this post: http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/faca1575f306ba0f/3be719c021aa19bd

Re: RPC call efficiency

2009-02-10 Thread Jason Essington
On Feb 10, 2009, at 5:51 AM, Rick wrote: Pinging google.com [74.125.45.100] with 32 bytes of data: Reply from 74.125.45.100: bytes=32 time=370ms TTL=241 Reply from 74.125.45.100: bytes=32 time=354ms TTL=241 Reply from 74.125.45.100: bytes=32 time=340ms TTL=241 Reply from 74.125.45.100:

Re: Asynchronous woes :-)

2009-02-12 Thread Jason Essington
Same Origin Policy limits you to making XHRs only to the host (same server, port, and protocol) where the Host Page was loaded ... That means if your host page is https://foo.com/index.html and you load the javascript from http://cache.bar.com/some.js you still have to make your XHRs to

Re: Evaling scripts in a JSNI method

2009-02-12 Thread Jason Essington
Why would you need prototype? just use RequestBuilder to fetch the text, and pass the result into your JSNI eval() ... -jason On Feb 12, 2009, at 4:17 PM, jdwyah wrote: js only I guess you could do an Ajax.Request, but in JSNI you don't have Prototype.. I dunno, I feel like you're

Re: Mobile Phones

2009-02-18 Thread Jason Essington
GWT works great with the iPhone and Android based phones. however, phones with WAP browsers are unlikely to ever be supported well due to the lack of any real javascript engine. I haven't tried the mobile opera browser with GWT but it may work reasonably well for simple applications -jason

Re: Memory Leak with IE7

2009-02-23 Thread Jason Essington
Well, I've read various articles claiming that IE leaks like a sieve (don't have any references for you right now, but I'm sure google could help). One thing to try is does IE's memory usage come down when you reload the page, or load a new page? -jason On Feb 23, 2009, at 8:44 AM,

Re: Memory Leak with IE7

2009-02-24 Thread Jason Essington
Michela On 23 Feb, 20:55, Jason Essington jason.essing...@gmail.com wrote: Well, I've read various articles claiming that IE leaks like a sieve (don't have any references for you right now, but I'm sure google could help). One thing to try is does IE's memory usage come down when you

Re: HowTo cancel a RPC call?

2009-02-26 Thread Jason Essington
sure, just return Request (or RequestBuilder, your option) from your async interface rather than void, and you are good to go. -jason On Feb 26, 2009, at 9:56 AM, alex.d wrote: Hi folks, Recently i've found myself in a situation where i have to cancel a RPC call. I've found out that

Re: How to wait for return value from RPC before Tree node is moved

2009-02-27 Thread Jason Essington
private void doMove(/*required params*/){ // node move Implementation } public void moveQuestion(TreeNode node, TreeNode oldParent, TreeNode newParent, int index){ // setup // call rpc service.resorting(/*params*/, new AsyncCallbackBoolean(){ public void onSuccess(Boolean

Re: No Style for my DatePicker

2009-03-02 Thread Jason Essington
indeed, GWT 1.6 does come with 3 different sets of CSS HOWEVER you would have to import one of the themes in your project to get them inherits name='com.google.gwt.user.theme.chrome.Chrome'/ For instance. -jason On Feb 26, 2009, at 2:47 PM, Arthur Kalmenson wrote: I think you have to

Re: iGoogle-like effect with GWT

2009-03-02 Thread Jason Essington
Grab Ryan Dewsbury's book Google Web Toolkit Applications one of the example projects in there shows you exactly how to do that! -jason On Mar 1, 2009, at 3:59 AM, Pete Kay wrote: Hi, I would like to use GWT to develop a user portal much like the front page of iGoogle where user can add

  1   2   3   >