Iterate over all objects which are not garbage collected

2011-08-02 Thread Tom Fishman
Our website has memory issues. A typical situation is the event handler has reference to a window/widget. Instead of checking those situations case by case, I wonder if java can iterate/enumerate all objects that is not garbage collected. ( I care more in java mode than javascript mode now ) By l

GWT Unit Test code doesn't work for me

2011-06-25 Thread Tom Fishman
I downloaded the sample code from "http://code.google.com/webtoolkit/ articles/mvp-architecture-2.html", ( "http://code.google.com/p/google- web-toolkit/downloads/detail?name=Tutorial-Contacts2.zip"). I got the following errors and warnings in eclipse: Description ResourcePathLoca

Re: EntityProxies for entity groups ( JDO in App Engine )

2011-02-22 Thread Tom Fishman
This is my temporary solution: I start a transaction in the my filter code. The transaction enclosed the whole com.google.gwt.requestfactory.server.RequestFactoryServlet code and my service code. The transaction is committed after all of the other code returned. It works for chained persistence.

EntityProxies for entity groups ( JDO in App Engine )

2011-02-22 Thread Tom Fishman
I asked a design question about EntityProxy and ValueProxy (http:// groups.google.com/group/google-web-toolkit/browse_thread/thread/ 894718c982b5a149). Now, I have similar question about EntityProxies for entity groups. I have a 1:1 mapping of two entities: E1 and E2. E2 is a child of E1 ( App Eng

Re: creating EntityProxyId from the client side

2011-02-22 Thread Tom Fishman
Has anyone tried com.google.gwt.requestfactory.shared.impl.IdFactory.getId(String typeToken, serverId) on the client side? On Feb 22, 12:13 am, Tom Fishman wrote: > When I know the ID of an entity on the server side, can I generate > EntityProxyId directly from the client side a

creating EntityProxyId from the client side

2011-02-22 Thread Tom Fishman
When I know the ID of an entity on the server side, can I generate EntityProxyId directly from the client side and use requestFactory.find(...) to get it from server? Now, I have to call my own function to get it. -Tom -- You received this message because you are subscribed to the Google Groups

Re: The operation order (req.getOperations()) of EntityProxy and ValueProxy on the server side

2011-02-21 Thread Tom Fishman
50 am, Thomas Broyer wrote: > On Sunday, February 20, 2011 11:41:28 AM UTC+1, Tom Fishman wrote: > > > The payload Json (as in > > com.google.gwt.requestfactory.shared.impl.AbstractRequestContext::doFire()) > > > looks like this: > > > { > >   "I&quo

The operation order (req.getOperations()) of EntityProxy and ValueProxy on the server side

2011-02-21 Thread Tom Fishman
In short, the value (proxy) is not updated before entity (proxy) on the server side. So, the value is not updated correctly. Detail: Say I have entity E with a property V which uses ValueProxy. The Entity E is fetched and updated like this: private void edit(RequestContext requestContex