Re: GWT best Practices - JS Library Wrappers & Overlay Types

2009-04-26 Thread Bobby
I just came across some interesting docs, this one in particular covers almost all the questions i had in my original post (lots of TBDs though): http://code.google.com/docreader/#p=gwt-google-apis&s=gwt-google-apis&t=DesigningAPIWrappers Also, check out what's underneath the "large efforts" head

Integrating GWT with the existing webapp

2009-04-26 Thread newtoGWT
In the existing webapplication, my action class receives the request, validates it, hits the DAO, builds the Value Object (nothing but a bean class), and finally returns the VO to the action class. This value object is then set into session and retrieved in JSP page. (Normal request and response

Re: GWT best Practices - JS Library Wrappers & Overlay Types

2009-04-26 Thread Bobby
I would prefer having a GWT library for GData, it seems within reach. Bobby On Apr 26, 11:55 pm, Vitali Lovich wrote: > Couldn't arbitrary JS support be added using deferred binding?  Sure, you > wouldn't be able to do code completion, but you could call arbitrary JS > functions & variables wit

Invalid Argument Exception while using com.google.gwt.widgetideas.datepicker.TimePicker

2009-04-26 Thread GWT User
I am getting Invalid Argument exception while using com.google.gwt.widgetideas.datepicker.TimePicker. I have done an individual test on this Class , for (int i = 0;i < 10; i++) { TimePicker tp = new TimePicker(new Date(),false); } ... And the exception on IE7 is thrown after 7 TimePicker compon

Invalid Argument Exception while using com.google.gwt.widgetideas.datepicker.TimePicker

2009-04-26 Thread Tapas
I am getting Invalid Argument exception while using com.google.gwt.widgetideas.datepicker.TimePicker. I have done an individual test on this Class , for (int i = 0;i < 10; i++) { TimePicker tp = new TimePicker(new Date(),false); } ... And the exception on IE7 is thrown after 7 TimePicker compo

Re: Identifying what css are loaded

2009-04-26 Thread Vitali Lovich
Also, you have bad form in your isLinkLoaded. In HostedMode, that code won't run - it'll throw a type exception. In compiled web-mode, it'll run but you'll get unexpected behavior since you'll have an exception objected treated as a boolean. For instance, on an exception, any code that checks fo

Re: Request after request.

2009-04-26 Thread Vitali Lovich
Uggh - I don't bother with that. There's too many problems (at least anecdotally from 3rd parties - I've never used it myself). I think it's because there's no good overview describing how it works & what the various limitations are. Thus when you integrate with GWT, you can encounter situations

Re: Request after request.

2009-04-26 Thread davidst...@gmail.com
I mean this : getThreadLocalRequest().getSession().getId() gives me the same id for two different clients that are opened. Someone told me that maybe two browsers share a cookie cache/address space and because of that they see the same cookie. I googled this theme about two weeks but i did not fin

Re: Identifying what css are loaded

2009-04-26 Thread jagadesh
Thanks Vitali Lovich, Let me work this stuff. --~--~-~--~~~---~--~~ 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

Re: MenuItem icons

2009-04-26 Thread Vitali Lovich
yes. you probably want to know how, don't you :). new MenuItem(bundle.image().getHTML(), true, /* whatever 3rd parameter goes here */); bundle is your ImageBundle, image is the method that returns an AbstractImagePrototype. On Sun, Apr 26, 2009 at 11:32 PM, Hannson wrote: > > Hi all, > > Is t

Re: GWT best Practices - JS Library Wrappers & Overlay Types

2009-04-26 Thread Vitali Lovich
Couldn't arbitrary JS support be added using deferred binding? Sure, you wouldn't be able to do code completion, but you could call arbitrary JS functions & variables with 0-overhead. Might be a cool project to do (if Ray hasn't already done it :D). On Sun, Apr 26, 2009 at 11:43 PM, Bobby wrote

Re: GWT best Practices - JS Library Wrappers & Overlay Types

2009-04-26 Thread Bobby
I finally got the GData library to compile inside a GWT 1.6 test app. Now it's down to testing. I'm considering auto generating a test app as well, otherwise i won't be able to find out what's broken, otherwise i have to test each class manually. It looks good at this point but i'm antecipating

MenuItem icons

2009-04-26 Thread Hannson
Hi all, Is there some standard way to add an icon to a MenuItem using an ImageBundle? --~--~-~--~~~---~--~~ 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-Toolk

Re: Identifying what css are loaded

2009-04-26 Thread Vitali Lovich
Oh, and you can always retrieve an existing link element on the page (assuming it has an id). On Sun, Apr 26, 2009 at 11:34 PM, Vitali Lovich wrote: > Document.get().createLinkElement > > > On Sun, Apr 26, 2009 at 11:15 PM, jagadesh wrote: > >> >> How can i identify whether css has loaded or not

Re: Identifying what css are loaded

2009-04-26 Thread Vitali Lovich
Document.get().createLinkElement On Sun, Apr 26, 2009 at 11:15 PM, jagadesh wrote: > > How can i identify whether css has loaded or not .meanwhile i got a > code snippet as > > public native boolean isLinkLoaded(LinkElement le)/*-{ > > try { > return le.readyState=="Complete"; > }catch(

Identifying what css are loaded

2009-04-26 Thread jagadesh
How can i identify whether css has loaded or not .meanwhile i got a code snippet as public native boolean isLinkLoaded(LinkElement le)/*-{ try { return le.readyState=="Complete"; }catch(e){ return e; } }-*/; but how can i create a link element in GWT. --~--~-~--~

Re: Easiest way to package a library with optional features requiring a sub-library?

2009-04-26 Thread John Gunther
I'm late to reply as usual but really appreciate the info. Will likely revise my planned approach along the lines you have indicated to use deferred binding. On Apr 19, 7:46 pm, Thomas Broyer wrote: > On 18 avr, 07:42, JohnGunther wrote: > > > Thanks for the great info, sorry I didn't see your r

Re: new to GWT, trying to determine the cause of compilation errors for existing software project

2009-04-26 Thread Jake
OK, so I read through the docs you linked to, and also took a look at the way you were using super-source in Emulation.gwt.xml in gwt-in-the- air: http://code.google.com/p/gwt-in-the-air/source/browse/trunk/super/net/ltgt/gwt/air/emul/Emulation.gwt.xml I attempted to do the same thing with exten

Re: Error finding source code for JSONValue in GWT 1.6.4

2009-04-26 Thread ceeed
Thanks, I forgot to include the modules in the xml file :-( On Apr 25, 5:00 pm, Vitali Lovich wrote: > Lol - didn't even think of that.  That's probably what it is. > > > > On Sat, Apr 25, 2009 at 5:59 PM, Thomas Broyer wrote: > > > On 25 avr, 21:58, ceeed wrote: > > > Hi, > > > With GWT 1.6.

Re: JsArray methods deficiency

2009-04-26 Thread Thomas Broyer
On 26 avr, 20:23, Vitali Lovich wrote: > Just as an aside, I have a set of patches to implement all the missing > native methods from JsArray (splice, etc).  I'll be opening a defect soon. I already did so 8 months ago: http://code.google.com/p/google-web-toolkit/issues/detail?id=2793 ...but

Re: [gwt] Re: GEP, war/WEB-INF/lib, and source control

2009-04-26 Thread Vitali Lovich
That's pretty much the approach I use. I prefer to keep the war/ directory as minimal as possible in terms of what is in source control. I keep only the web.xml & app HTML page. By default the war/ directory gets added to ignore because that is where generated resources are placed. Instead I pr

Re: JsArray methods deficiency

2009-04-26 Thread Vitali Lovich
Unfortunately, I have already implemented my own version. This means that regardless of which is better (or even if they are identical) I must criticize & reject yours out of hand. On a serious note, why do some of your methods have a GWT.isScript check? On Sun, Apr 26, 2009 at 5:43 PM, Thomas B

Re: JsArray methods deficiency

2009-04-26 Thread Thomas Broyer
On 26 avr, 04:53, Blessed Geek wrote: > I am wondering why GWT team has overlooked the need for > - get (String key) method This is a JS Object method, not directly related to arrays (and it's bad practice to store key/value pairs in an Array, you should use an Object instead; though, eventual

Re: new to GWT, trying to determine the cause of compilation errors for existing software project

2009-04-26 Thread Jake
@Thomas: That's probably exactly it. I'll review the documentation and report back on whether I succeeded. Thank you for your help, Jake On Apr 26, 5:56 pm, Thomas Broyer wrote: > On 26 avr, 08:34, Jake wrote: > > > > > Thomas and Vitali, thank you for the expert advice. I believe I'm > > beg

Re: new to GWT, trying to determine the cause of compilation errors for existing software project

2009-04-26 Thread Jake
I originally thought that I was trying to use the built-in OutputStream, because I believed that it implemented OutputStream.write and the other methods that GWT was having trouble with, but now I understand that the built-in OutputStream does not implement those methods, and thus a custom OutputS

Re: new to GWT, trying to determine the cause of compilation errors for existing software project

2009-04-26 Thread Thomas Broyer
On 26 avr, 08:34, Jake wrote: > Thomas and Vitali, thank you for the expert advice. I believe I'm > beginning to put this problem into perspective. Here is the > OutputStream implementation bundled with this project: > > http://dev.eclipse.org/viewcvs/index.cgi/e4/org.eclipse.e4.swt/bundle... >

Re: Same app in several Hosted Pages

2009-04-26 Thread Vitali Lovich
That layout is fine, except for gwtapps - usually the apps go directly under webroot (you may have to modify the default ant scripts & whatnot). However, the better approach might be to split each application into 2 parts. 1 part for the front-end specific for each page (i.e. the code containing o

Re: Given: One WAR archive; three independent Host Pages; common client and server code. Question: How to best organize such project(s) and have each HTML page load only its used code?

2009-04-26 Thread Vitali Lovich
I haven't actually done this, but check any of the numerous GWT libraries. They all provide library code without an entry point. http://code.google.com/p/gwtquery/, http://code.google.com/p/gwt-mosaic/ On Sun, Apr 26, 2009 at 8:26 AM, JDK wrote: > > I've spent quite a while reading related posts

Re: unused code in "compiled" javascript

2009-04-26 Thread Vitali Lovich
The GWT compiler is supposed to remove all unused code. If you believe that there's code in there that is unused, or can be removed, I would recommend filing a bug. Hopefully a GWT developer would be able to provide more information about this particular question. On Sun, Apr 26, 2009 at 5:03 PM

Re: new to GWT, trying to determine the cause of compilation errors for existing software project

2009-04-26 Thread Vitali Lovich
I thought you were trying to use the built-in OutputStream. Are you sure the package name on your class is right? Shouldn't it be gwt.extended.common.java.io? On Sun, Apr 26, 2009 at 2:34 AM, Jake wrote: > > Thomas and Vitali, thank you for the expert advice. I believe I'm > beginning to put t

Re: efficiency of my gwt application

2009-04-26 Thread Vitali Lovich
On Sat, Apr 25, 2009 at 10:05 PM, ytbryan wrote: > > thank you for all replies. > > i have a few questions: > > 1) JSON data graph with Javascript Overlay -- i can't find example on > this... can someone tell me what is this? not sure what you mean here. What data graph? Coding basics

Re: throwing exceptions in onModuleLoad

2009-04-26 Thread Vitali Lovich
By the way, it's really bad style to throw an exception in onModuleLoad - it indicates you are doing something wrong. 2009/4/26 Piotr Jaroszyński > > > http://www.google.com/search?q=unchecked+exception > > Thanks, apparently I fail at java :) > > -- > Best Regards, > Piotr Jaroszyński > > > >

Re: Where is this class com.google.gwt.core.client.RunAsyncCallback in GWT 1.6.4

2009-04-26 Thread Vitali Lovich
It's in trunk (as the svn path tells you). It's scheduled to make an appearance with 2.0. You either need to build from trunk or wait. On Sun, Apr 26, 2009 at 1:18 PM, maximity wrote: > > I downloaded showcase example from Google SVN (http://google-web- > toolkit.googlecode.com/svn/trunk/sampl

Re: RPC error in JPA (toplink)

2009-04-26 Thread noon
Hi, First, Gilead does not support yet TopLink or EclipseLink (only Hibernate is supported), even if issues are the same (have a look at http://noon.gilead.free.fr/gilead/index.php?page=presentation for an explanation about JPA/GWT integration issues). If TopLink is not mandatory, you can "easil

Re: Request after request.

2009-04-26 Thread Vitali Lovich
On Sun, Apr 26, 2009 at 3:29 PM, davidst...@gmail.com wrote: > > > Are you sure you're not doing a notify? Maybe you actually receive an > > event? InterruptedException (from memory, haven't looked at the javadoc) > > get's called when wait times out - if you call notify, it'll wake up the > > t

unused code in "compiled" javascript

2009-04-26 Thread zbo
Hello, I am working on reducing the compiled js size of a relatively complex GWT application. I've been looking at the detailed output of the compile process, and find quite a few blocks of code that seem to be included no matter what. To test things and get a better understanding of the GWT

Re: Request after request.

2009-04-26 Thread davidst...@gmail.com
> Are you sure you're not doing a notify? Maybe you actually receive an > event? InterruptedException (from memory, haven't looked at the javadoc) > get's called when wait times out - if you call notify, it'll wake up the > thread normally. That's exactly what i do there, notifying. Forgive my

Hot key functionality for a FlexTable

2009-04-26 Thread procyon4476
Hi all, very new to GWT (less than a weekend actually!) and pretty new to Java in general. Our development project has an online GWT flextable setup similar to an excel spreadsheet grid where the user can click on any of the cells and edit the data. I have been tasked with trying to figure out h

Re: Synchronous YES/NO/Cancel message box

2009-04-26 Thread JDK
Hi Paul, There are several ways to resolve this situation. One of them is a bit awkward solution and it may not fit correctly within your surrounding logic (so you must be careful) but it is relatively easy to setup: Declare an instance boolean flag variable at the right place (let' name it "isA

Re: Synchronous YES/NO/Cancel message box

2009-04-26 Thread JDK
Hi Paul, There are several ways to resolve this situation and here is one of them. It is a bit awkward solution and it may not fit correctly within your surrounding logic (so you must be careful) but it is relatively easy to setup: Declare an instance boolean flag variable at the right place (le

PagingScrollTable and initial sort column indicator

2009-04-26 Thread Viraj Alankar
Hello, I can't seem to figure out how to set the sort column indicator to be visible upon initial load of a PagingScrollTable. The indicators show up when the columns are clicked, but I'd like to default to a column being sorted and indicate that upon creation. Is there a way I can do this? Than

Where is this class com.google.gwt.core.client.RunAsyncCallback in GWT 1.6.4

2009-04-26 Thread maximity
I downloaded showcase example from Google SVN (http://google-web- toolkit.googlecode.com/svn/trunk/samples) but I am getting compilation errors because com.google.gwt.core.client.RunAsyncCallback is missing. I am using GWT 1.6.4. Was this class deprecated or replaced? How do I make the showcase w

Given: One WAR archive; three independent Host Pages; common client and server code. Question: How to best organize such project(s) and have each HTML page load only its used code?

2009-04-26 Thread JDK
I've spent quite a while reading related posts but my question remain unanswered. Kindly, advise me on this from the perceptive of your experience with it. My web app is comprised of three HTML pages each of which is independent of others and has its own Entry Point. One of these pages is the mai

Re: RPC error in JPA (toplink)

2009-04-26 Thread Jim
You may try Dreamsource ORM. Dreamsource ORM is designed to target GWT applications by providing the following features: 1. Whatever you codes happens in database. No merge 2. No detached enhanced object so no third party library like Gilead is needed 3. No lazy loading. Just eager loading becaus

Re: Database Database Connectivity RPC

2009-04-26 Thread Jim
You have to open and close a JDBC connection in server side code like a RemoteServiceServlet subclass. You can find an example in http://www.gwtorm.com/mail/Mail.html. Source code is also available in http://code.google.com/p/dreamsource-orm/downloads/list. You can use Dreamsource ORM for your GW

Re: JsArray methods deficiency

2009-04-26 Thread Vitali Lovich
Just as an aside, I have a set of patches to implement all the missing native methods from JsArray (splice, etc). I'll be opening a defect soon. On Sun, Apr 26, 2009 at 2:33 AM, Adam T wrote: > > Best thing to do is either: > > a) raise a defect and then this gets tracked, and if indeed the wor

Re: throwing exceptions in onModuleLoad

2009-04-26 Thread Piotr Jaroszyński
> http://www.google.com/search?q=unchecked+exception Thanks, apparently I fail at java :) -- Best Regards, Piotr Jaroszyński --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to t

Re: Synchronous YES/NO/Cancel message box

2009-04-26 Thread Jeff Chimene
On 04/26/2009 09:40 AM, Paul Grenyer wrote: > Hi > > >> I'm not sure I understand this requirement. If you're talking about a >> GWT tab widget, no user data will be lost when the tab "closes". In a >> TabPanel, a Tab close event is usually associated with moving focus to >> another tab. No da

Re: Synchronous YES/NO/Cancel message box

2009-04-26 Thread Paul Grenyer
Hi > I'm not sure I understand this requirement. If you're talking about a > GWT tab widget, no user data will be lost when the tab "closes". In a > TabPanel, a Tab close event is usually associated with moving focus to > another tab. No data loss occurs. Even if that's the case, I still need to

Re: throwing exceptions in onModuleLoad

2009-04-26 Thread Isaac Truett
http://www.google.com/search?q=unchecked+exception 2009/4/26 Piotr Jaroszyński : > > Hello, > > how come I can't throw exceptions in onModuleLoad while some GWT > functions called from it can? E.g. Composite::initWidget can throw an > exception but doesn't specify that in its signature. How is g

Re: [gwt] Re: GEP, war/WEB-INF/lib, and source control

2009-04-26 Thread Isaac Truett
Thanks. That is an interesting thread, although it seems to be addressing a separate need: multiple classpath definitions, which I think would be a big win for the GEP. I've been using multiple classpath definitions in my Ant build scripts for years. Usually there's a runtime classpath with JDBC

Re: RPC error in JPA (toplink)

2009-04-26 Thread Arthur Kalmenson
When you pull an object out of the database, Collections are not ordinary java.util collections but are instead turned into ones that can keep track of persistence data. You need to use something like Gilead (http://noon.gilead.free.fr/gilead/), or Dozer with a DTO. If your Object graph isn't very

Re: Synchronous YES/NO/Cancel message box

2009-04-26 Thread Jeff Chimene
On Sun, Apr 26, 2009 at 1:52 AM, Paul Grenyer wrote: > > Hi > > Thanks for the response. Yes, what you say is very true. However, it > doesn't help me. The problem I've got is that I have a method which is > called just before a tab is closed. If the contents of the tab has > been modified, but n

Silly bug or miracle? FormPanel doesn't send request to server.

2009-04-26 Thread serega.shey...@gmail.com
My form doesn't want to send request (watching its activity through Firefox Firebug) This is my client code: public class UploadForm extends FormPanel{ private HorizontalPanel content = new HorizontalPanel(); private Label uploadLabel= new Label("Choose file"); private FileUpload file

throwing exceptions in onModuleLoad

2009-04-26 Thread Piotr Jaroszyński
Hello, how come I can't throw exceptions in onModuleLoad while some GWT functions called from it can? E.g. Composite::initWidget can throw an exception but doesn't specify that in its signature. How is gwt compiled that it's not an error? Sorry if it's covered somewhere already. -- Best Regards

Database Database Connectivity RPC

2009-04-26 Thread barclay allen
I'm starting a high traffic web application. I just setup a MySQL server for GWT app. 1. Is the practical way still opening and closing a connection like below? What about database connectivity with RPC? Below, for every RPC service method call, I open a database connection, make a query, and

Re: RPC error in JPA (toplink)

2009-04-26 Thread Saeed Zarinfam
this is my entity class. import java.io.Serializable; import javax.persistence.Basic; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.FetchType; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id

RPC error in JPA (toplink)

2009-04-26 Thread Saeed Zarinfam
Hi When i want to get entity list from top-link JPA encounter following error: please help me. [WARN] Exception while dispatching incoming RPC call com.google.gwt.user.client.rpc.SerializationException: java.lang.reflect.InvocationTargetException at com.google.gwt.user.server.rpc.impl.Se

Re: Start server & implement loop with timer

2009-04-26 Thread JITEchno
Hi, I dont sure that I understand your pain in right way, but u always can start server as you like and when you like. After that u can prepare any data for client to be ready up to connection time. But if u need data or action from client to activete "server class", it is available only after cli

Re: Same app in several Hosted Pages

2009-04-26 Thread JITEchno
Hello, I have similar problems, I need few pages with different Javascriots. I stsrted from 2 classes with MainEntryPoint, but was not able manage it.. Only solution, what I found, put all code for generation JS under one MainEntryPoint for page.html, and call corresponding section of code using

Re: Synchronous YES/NO/Cancel message box

2009-04-26 Thread Paul Grenyer
Hi Thanks for the response. Yes, what you say is very true. However, it doesn't help me. The problem I've got is that I have a method which is called just before a tab is closed. If the contents of the tab has been modified, but not saved, I want to pop up a yes/no/cancel box so that the user can

Re: popup on an GWT HTML field

2009-04-26 Thread Chuck
I guess I just found it; I'll update my GWT first and then I'll get back to you... On 26 Apr., 09:36, Chuck wrote: > Hi, > > Thank you so much for your help! Yeah, you're right, I shouldn't do it > this way. But unfortunately in this case I should do it like you > explained it to me. > > I tried

Re: popup on an GWT HTML field

2009-04-26 Thread Chuck
Hi, Thank you so much for your help! Yeah, you're right, I shouldn't do it this way. But unfortunately in this case I should do it like you explained it to me. I tried to import the ClickHandler but I can't find it in any library. Is it maybe an inteface? As you can see I'm a newbie! :-) Thank

facebook authentication

2009-04-26 Thread asianCoolz
anyone tried integrating facebook authenticaiton with gwt ? any example? --~--~-~--~~~---~--~~ 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