oh!!!... i got another idea.. you want to execute this method one time and then the server will response you several times and probably at dffferent time ?
If so, i think you might need to re-do what you're trying to do. Another approach will be to use server-push or commet-push, but web-servers as far as i know are not prepared for this kind of operations, i mean you can achieve this but i don't recommend it. it will consume your broadband as far as i understand (im not an expert on commet-push or server-push, i dont really know the correct name), perhaps you could do some research. Regards, _____________________ Ing. Gabriel Gutiérrez Celular: +52 1 81 1071 7213 Oficina: +52 81 8153 2415 Monterrey, México On Mon, Apr 6, 2009 at 6:07 PM, Gabriel Ernesto Gutierrez Añez <gutierrez.ge @gmail.com> wrote: > mm i didnt understood what you said. > > Lets see.. you want to execute one method on server-side and depends on > what your method returns you would like to perform diferent stuff on your > client-side. > > is that right? > > Regards, > > > > _____________________ > Ing. Gabriel Gutiérrez > Celular: +52 1 81 1071 7213 > Oficina: +52 81 8153 2415 > Monterrey, México > > > On Mon, Apr 6, 2009 at 5:57 PM, asif11 <[email protected]> wrote: > >> >> Thanks for the feedback Gabriel but this is GWT code and further is >> making multiple calls to the server. For each of your GWT calls you >> get a single callback. I am looking for a single call from the GWT >> client to result in several calls back. E.g. The server remembers some >> state and calls back with further data. >> >> Maybe you can think of an easier way to do this ? >> >> Cheers. >> >> >> On Apr 6, 9:04 pm, Gabriel Ernesto Gutierrez Añez >> <[email protected]> wrote: >> > well it shouldn't be that hard. >> > >> > i've made it using somehing like this >> > >> > private int i = 0; >> > >> > private AsyncCallback call = new AsynCallback(){ >> > public void onFailre(Throwable){...} >> > public void onSuccess(Object o){ >> > if(++i < 4){ >> > processResult(o); >> > init(); >> > } >> > } >> > >> > } >> > >> > public void init(){ >> > myservice.doOperation(call); >> > >> > } >> > >> > in this case the init() method gets called at the constructor, so when >> the >> > operation ends at server it came back at the onSuccess part and then I >> add >> > one to the variable, and then call it again if required. >> > >> > you might want to return some boolean value witch will tell you wheather >> you >> > run the process again or not. >> > >> > If you could post some of the client-side code to check what are u doing >> > would be nice. >> > >> > Hope it helps, >> > >> > _____________________ >> > Ing. Gabriel Gutiérrez >> > Celular: +52 1 81 1071 7213 >> > Oficina: +52 81 8153 2415 >> > Monterrey, México >> > >> > On Mon, Apr 6, 2009 at 11:44 AM, asif11 <[email protected]> wrote: >> > >> > > Hi, >> > >> > > I am trying to get my server code to call my GWT code multiple times. >> > > e.g. >> > >> > > 1. GWT GUI Code calls GWTAsynInterface. >> > > 2. GWTAsynInterface calls JavaServerCode. >> > > 3. GWTAsynInterface completes call and returns to GWT GUI Code. >> > > 4. JavaServerCode calls GWT GUI Code again. >> > >> > > Step 1 to 3 are standard and work fine. But step 4 is what I need to >> > > do. >> > >> > > My scenario is to do with Paginated Data. e.g. GUI calls db for 100 >> > > rows. Server returns 25 rows at a time. I am fine with the server >> > > class being somewhat stateful. >> > >> > > Any suggestions ? >> > >> > > Cheers. >> >> >> > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "GWT-Ext Developer Forum" 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/gwt-ext?hl=en -~----------~----~----~----~------~----~------~--~---
