Intestingly, If I add a "Timer" that delays for 1ms before calling "cellList.setRowData(result)" it all works
I will live with this, dont like it but it seems to work On Aug 12, 1:41 pm, Paul Browne <paul...@hotmail.com> wrote: > Hi, > > I have have a celllist in a UIBinder, when I use JSON to get some > data from a remote server it does not seem to update the celllist with > the data that I have set in cellList.setRowData until I start moving > the mouse for a bit (sometimes not at all if i dont move the mouse for > about 20 seconds), This problem does not seems to happen if I get the > data any other way i.e. load it from code rather that remote server. > > I have tried to cut the code down as small as possiable, (statusText > is a label on screen). > I can see that statusText stays "Set Data" so I know the results have > been returned back, but the screen does not update. > > ----- > initWidget(uiBinder.createAndBindUi(this)); > > statusText.setText("Getting results"); > > TaskFactory taskFactory = new TaskFactory(); > taskFactory.GetTasks(new AsyncCallback<ArrayList<TaskModel>>() { > > @Override > public void onFailure(Throwable caught) {} > > @Override > public void onSuccess(ArrayList<TaskModel> result) { > cellList.setRowData(result); > statusText.setText("Set Data"); > > }}); > > ---- > > Taskfactory in the code is based on the JSONP code that is the main > GWT page, I can put the debugger on the line and see that the array > returned contains all the data I expect > > Any ideas? > > Cheers > > Paul -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.