Thanks for your help Thomas. It Works but now i have a problem with a Window that isnt render the component i put in it, just buttons.
Thanks BEst REgards On Sep 5, 6:36 pm, "[email protected]" <[email protected]> wrote: > Your problem arises due to misunderstanding the nature of asynchrounos > callbacks. Since these are asynchronous, the program will not wait for > the return value before continuing execution. This means that you'll > have this flow in your onModuleLoad() method: > > obtenerCompetencias(); > set up callback > fire http-request to server > crearTabs(getCompetencias()); > fails, since getCompetencias() = null; > Panel panel = getPanel(); > Viewport viewport = new Viewport(panel); > ... > ... > onSuccess()/onFailure() is called. > > Instead, I suggest this approach (I use pseudo-code): > > in onModuleLoad(): > set up a panel with a wait msg. Maybe a spinning gif, or something. > run obtenerCompetencias(); > > in AsyncCallback.onSuccess(): > make a grid with the returned values. > remove the wait msg from the panel. > add the grid. > > Also, you might run into difficulties with just using "ArrayList". If > you know the type of object this arraylist may contain, specify it, to > make it serializable, ie. ArrayList<String> or > ArrayList<SomeSerializableObject>. > > /Thomas Arp --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
