That happens because the resources required to populate the listbox are
received through the RPC call and are asynchronous. When you make a call for
the resources, your code does not stop to wait for the response from the
server, so when trying to populate your listbox you create it and fill it
with with nothing because the RPC call has not returned yet.

When creating your GUI elements, first make the RPC call to get your
resources, then create your GUI in the onSuccess method of the RPC call.
That way you will have all your resources when you are creating your GUI
elements.

On Tue, Apr 20, 2010 at 5:17 PM, kozura <[email protected]> wrote:

> Without much information to go on, it sounds it could be how your
> asynccallback is set up, maybe you could post the bit of code you are
> using to populate the list box?
>
> On Apr 19, 11:45 pm, Durgesh Kumar Mishra <[email protected]>
> wrote:
> > Hi
> >       I am Durgesh. I am facing a problem in populating list box
> frequently.
> > I am using simple GWT 1.5. In my form there are 6-7 list boxes and many
> text
> > boxes. I am populating this form from the view in database. I have
> written a
> > service for that. But sometimes list boxes do not populate ...then i
> again
> > click on tree panel and then it populates.
> >
> > My problem is only to populate list box is very slow.
> >
> > One more problem is that when i deploy my war file with another war file
> db
> > get disconnected. Bot war file is using same datasource file in jboss .
> >
> > can any body reply ....
> >
> > Thanks
> > Durgesh
>
> --
> 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]<google-web-toolkit%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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