This was an 18 inch bug (the person standing at 18 inches in front of
the monitor : me) !
I was creating 0 rows...

 Sorry for the noise !

On 10 avr, 21:08, kozura <[email protected]> wrote:
> Hey Maxime,
> There's nothing you should need to do to tell it to redraw, and the
> above code looks correct, so from this it's unclear why you would be
> having a problem.  Have you checked that the loop is actually being
> run and has the right values in the result, with a log statement or
> debug breakpoints?
>
> On Apr 10, 1:55 pm, Maxime Lévesque <[email protected]> wrote:
>
> > Hi, I have a Grid that is populated with initial data, ex. :
>
> >   Grid g = new Grid(2, 3);
>
> >   g.setText(0, 0, "a1");
> >   g.setText(0, 1, "a1");
> >   g.setText(0, 2, "a1");
>
> >   g.setText(1, 0, "b1");
> >   g.setText(1, 1, "b1");
> >   g.setText(1, 2, "b1");
>
> >   dock.add(g, DockPanel.CENTER);
> >   rootPanel.add(dock);
>
> > On the initial page load, I see the grid fine.
>
> > Then it gets repopulated with data comming from a server
> > in an AsyncCallback, and that the new data doesn't get displayed,
> > I repopulated with :
>
> >             g.resizeRows(res.size());
>
> >             for(int i = 0; i < res.size(); i++) {
> >               g.setText(i, 0, res.get(i).nom);
> >               g.setText(i, 1, res.get(i).prenom);
> >               g.setText(i, 2, res.get(i).pseudo);
> >             }
>
> > Do I need to explicitely tell some widget that it needs to redraw ?
>
> > Thanks
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" 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/google-web-toolkit?hl=en.

Reply via email to