Re: multiple rpc calls to server (can someone advise me!)

2009-02-09 Thread ytbryan
thank you very much. i solved the problem already thank you! On Feb 6, 5:24 pm, Jason Essington wrote: > gregor is right, you are trying to perform your update synchronously   > but your request is happening asynchronously. > > A full explanation of your exact problem can be found in this > po

Re: multiple rpc calls to server (can someone advise me!)

2009-02-06 Thread Jason Essington
gregor is right, you are trying to perform your update synchronously but your request is happening asynchronously. A full explanation of your exact problem can be found in this post: http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/faca1575f306ba0f/3be719c021aa19bd -jason

Re: multiple rpc calls to server (can someone advise me!)

2009-02-06 Thread gregor
Your problem looks like it's here: private void updateGrid1(GridPanel gridPanel, int cols, int rows) { if (store != null) { store.removeAll(); } getData1(1); PROBLEM Object[][] data = null; if(displayData1!= null) { wrote: > can someo

Re: multiple rpc calls to server (can someone advise me!)

2009-02-06 Thread ytbryan
can someone help? below are my rpc request code. private void getData() { AsyncCallback callback = new AsyncCallback() { // fail public void onFailure(Throwable ex) { RootPanel.get().add(new HTML(ex.toString())); } // success public void onSuccess(Object result) { // C

Re: multiple rpc calls to server

2009-02-06 Thread ytbryan
I just insert Window.alert("") into getdata1(); and i realised that the method is called but no window alert appears. i inserted a println after onsuccess and onfailure and something is printed out. basically, onsuccess and onfailure are skipped? how is it possible? On Feb 6, 11:58 am, ytbryan

Re: multiple rpc calls to server

2009-02-06 Thread ytbryan
below is the code where i execute the rpc request. i create getdata() and getdata1() to get execute different query. i am using two Async object to make call. i am not sure is it correct as i got error when i use one. any help/advice is welcome and appreciated. :D private void getData() { As

Re: multiple rpc calls to server

2009-02-06 Thread ytbryan
thank you mon3y . may i know which code snippet should i post? the Async, sync and impl interface? On Feb 6, 11:46 am, mon3y wrote: > Hi > > A code snippet would be nice, so we can see where you're going wrong. > > Also put a Window.alert(""), in your onFailure and onSuccess of your > second ca

Re: multiple rpc calls to server

2009-02-06 Thread mon3y
Hi A code snippet would be nice, so we can see where you're going wrong. Also put a Window.alert(""), in your onFailure and onSuccess of your second call to see what you get. If it comes into the onFailure of your second call, there must be something wrong with the way you're calling the server

multiple rpc calls to server

2009-02-06 Thread ytbryan
Hi all, i know gwt don support synchronous call and i read it somwhere that there is actually don need to make rpc call synchronous. but i created an application with buttons like " save data" and " display result "that will communicate to server by fetching data or saving data. when the applic