• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Grid with Ext-GWT (GXT) and RPC - call

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi All )

I'm new on Google technologies
Based on this tutorial I've created a static grid.

but when i change the getInterventions() to communicate with the server and get a list of Intervention to be shown on the grid

here is my IntervGrid.java


My server side code :



I don't get any Errors or Exceptions
May be A logic problem

System.out.println("taille du Grid ="+IntervGrid.x.size()); here i get 32 inside the onsuccess() method
System.out.println("taille du Grid final ="+IntervGrid.x.size()); but here i get 0 outside onsuccess() method

Any Ideas ???
Thanks So much
 
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In future, while posting code, please UseCodeTags. I have edited your post and added them. As you can see it makes the code easier to read and understand.
Also, please read the private message I just sent you.

I am not sure I am getting your question. Do you mean your UI is not reflecting the fresh data after the server call?
 
Rami Khalfallah
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
well yes i get nothing on my grid check my System.out.println() that's what i get
 
Maneesh Godbole
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Disclaimer: I haven't worked with GXT/Ext-GWT

You call store.add(getInterventions());
Then you build and return your grid which is added to the parent container.
However, the getInterventions() uses a RPC call which is asynchronous. What it means is when your call to getInterventions() return, the List is not yet populated! Do you see the problem now?
 
catch it before it slithers away! Oh wait, it's a tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic