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
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?
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?