Re: Accessing shared package class from client code

2010-08-20 Thread vikky8118
hi Thomas, Thanks a bunch, that idea really works for me. Awesome. Kudos. Hey Deepak, I have not yet worked on RequestBuilder - but after seeing the javadoc, with very little knowledge, I am guessing this might be what you are looking for - you need to write the code here - RequestBuilder's

Re: Accessing shared package class from client code

2010-08-19 Thread Thomas Dvornik
Hey Vikky, You may be right that it's not possible in GWT. It would actually make sense that you get two different instantiations. If both the server and the client had the same instance, you could technically change something on the server, and see it on the client without sending it back,

Accessing shared package class from client code

2010-08-18 Thread vikky8118
Hello all, I am new to GWT programming! Here is the problem that I am trying to solve since two days. I have the following service package : a server side service which interacts with db and gets data and stores the data in the shared package class shared package : a shared class which

Re: Accessing shared package class from client code

2010-08-18 Thread Thomas Dvornik
Some code will be useful, especially the singleton class. Also, when/how are you getting the data? One potential problem I can see happening is the client code accessing the data before the server sets the values in the singleton class. Tom On Aug 18, 2:24 am, vikky8118 vikky...@gmail.com

Re: Accessing shared package class from client code

2010-08-18 Thread vikky8118
Hi Thomas, thank you very much for your reply. I have made sure that client code is trying to access only after the service has populated data into the single-ton class. I am trying to access data from client in the onSuccess method AsyncCallback class of the service which does the actual

Re: Accessing shared package class from client code

2010-08-18 Thread Deepak Singh
Hi Hi Vikky, I also face one similar problem. I have done cross-domain call using RequestBuilder in client package. My problem is how to make sure to access the data only after the request callback has completed. I have both the RequestBuilder class and the class accessing the data of callback