Model Design Problem with Editors

2011-03-22 Thread keyvez
I have two classes class Person { Long id; String name; } and class Car { Long id; Long person; String model; } I want to map these to gwt car editors. Can I just have an editor like: CarEditor implements Editor { PersonNameEditor person; Label model; } or should I have to chan

Re: EntityProxy Returns Null for Collection Properties

2011-03-12 Thread keyvez
There is a problem with the above method that I described, I am seeing collections of a single element being returned when that collection is empty. And the single element is null. I still cannot get .with to populate the collections in my entityproxy. -- You received this message because you

Re: GWT Validator with Editor Framework

2011-03-11 Thread keyvez
Hi, I just found the DynaTableRf sample and see that onViolation is fired there. Going through its setup I realized that I was missing the hibernate-validator jar, so I put it in my libs and build path, but still no entity property violations are caught. Any help is greatly appreciated. Thank

GWT Validator with Editor Framework

2011-03-10 Thread keyvez
Hi, I am unable to validate entities using the editor framework. No matter what I do the errors are never thrown from client side or server side. Here is a code snippet: -- public class P { public P() { } @Size(min=4) privat

Help with Generic DAO

2011-02-24 Thread keyvez
Hi, I am trying to build a generic DAO (BaseEntity) as mentioned in http://code.google.com/webtoolkit/doc/latest/DevGuideRequestFactory.html#locators, so I don't have to duplicate basic CRUD methods for Entities. Is there an example or code sample? Thanks, Gaurav -- You received this messa

Re: Application loads with blank page on Firefox 4 beta 6

2010-11-19 Thread keyvez
I have also filed an issue with GWT on this. http://code.google.com/p/google-web-toolkit/issues/detail?id=5606 I hope I am not the only one with the issue. On Nov 17, 11:21 pm, keyvez wrote: > Hi, > > I think this might be a bug in the new gwt 2.1 sdk. When I create a > new web

Re: Application loads with blank page on Firefox 4 beta 6

2010-11-19 Thread keyvez
Isn't anyone else experiencing this. Please help, this is becoming an issue on windows as well, a user is reporting it on ff windows too. You help is really appreciated. Gaurav On Nov 17, 11:21 pm, keyvez wrote: > Hi, > > I think this might be a bug in the new gwt 2.1 sdk. When I

Application loads with blank page on Firefox 4 beta 6

2010-11-17 Thread keyvez
Hi, I think this might be a bug in the new gwt 2.1 sdk. When I create a new web application project in eclipse and compile and run it in web mode on FF4 beta 6, I see a blank page. On debugging in firebug, the following errors was thrown: reference to undefined property m.external.gwtOnLoad refe

Re: EntityProxy Returns Null for Collection Properties

2010-10-19 Thread keyvez
esses().size(); return users; That should ensure that the collection properties are included in the proxy object that is returned. I think it's some kinda optimization on JPA's part to reduce lookups until they are needed. Heh, lazy! Cheers and thanks for everyone's help. Gaurav On Oct

Re: EntityProxy Returns Null for Collection Properties

2010-10-19 Thread keyvez
I will try to write a small app from scratch which tries this feature so I can be sure that I am doing it the right way. On Oct 19, 9:40 am, keyvez wrote: > Hi, > > Thanks for the suggestions, my addresses are a set of strings so I > tried calling like so: > >

Re: EntityProxy Returns Null for Collection Properties

2010-10-19 Thread keyvez
Hi, Thanks for the suggestions, my addresses are a set of strings so I tried calling like so: Request createReq = request.authenticate().using(user).with("addresses"); createReq.fire(new Receiver() { @Override public void onSuccess( UserProxy authenticatedUser ) { Syst

Re: EntityProxy Returns Null for Collection Properties

2010-10-19 Thread keyvez
I also tried List addresses instead of Set addresses but it still returns an empty list despite the datastore having values in the addresses field for that user. On Oct 19, 12:56 am, keyvez wrote: > My EntityProxy looks like this > > @ProxyFor ( User.class ) > public interface UserP

EntityProxy Returns Null for Collection Properties

2010-10-19 Thread keyvez
My EntityProxy looks like this @ProxyFor ( User.class ) public interface UserProxy extends EntityProxy { Long getId(); String getFirstname(); String getLastname(); Set getAddresses(); void setAddresses( Set addresses ); } And my Entity class look like this: @Entity publi

Pass a Java Object between to Opener Window

2010-06-16 Thread keyvez
Hi, I am trying to pass a custom Java object to the another window to which I have a reference using $wnd.opener. When I call $wnd.opener.callback(); or $wnd.opener.callback('string'), it works, however, when I pass $wnd.opener.callback(@com.package.Class::staticField), the staticField is receive

Re: Very slow DevMode on Mac Leopard with GWT 2.0 RC2

2009-12-07 Thread keyvez
wt.codesvr=127.0.0.1:9997 check /etc/hosts or DNS settings in System Preferences. Good luck. Gaurav On Dec 6, 4:33 pm, keyvez wrote: > Hi, > > I am experiencing really slow times (30-40 seconds) when I refresh the > page on safari or firefox. It almost seems to recompile the full app >

Re: Very slow DevMode on Mac Leopard with GWT 2.0 RC2

2009-12-06 Thread keyvez
Hi, I am experiencing really slow times (30-40 seconds) when I refresh the page on safari or firefox. It almost seems to recompile the full app every single time I hit refresh. I don't even change anything, and this the app you get when you create new Web App in eclipse. Meanwhile the browser hang

Re: OOPHM is slow

2009-12-06 Thread keyvez
Hi, I am experiencing really slow times (30-40 seconds) when I refresh the page on safari or firefox. It almost seems to recompile the full app every single time I hit refresh. I don't even change anything, and this the app you get when you create new Web App in eclipse. Meanwhile the browser hang