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 <[email protected]> wrote: > 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 represent the data I wanted > to store. it has setters and getters to all the class fields. This is > a single ton class. > client package : a client side class which invokes the server > side service and then tries to access the data from shared class in > which, we have data which is populated by server side service. > > But, this is what happening. > > Service is being called successfully and service side operations are > performed successfully and shared class data is populated properly. > But, when I try to get the shared package - single ton class, I get a > different object / not the one I wanted and I get junk data from the > getters of the class ( 'undefined' ) > > I am not sure if this is the right way, but, the data is frequently > accessed. Hence, my plan is to access the data from db for once, store > it in shared package single ton class and access it every time from it > when ever client needs it. > > Can some one help me, what flaw I am making here? > > Thanks in advance. > Vikky. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
