File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes GWT and the fly likes Wrong output for the list of data Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » GWT
Bookmark "Wrong output for the list of data" Watch "Wrong output for the list of data" New topic

Wrong output for the list of data

S Roberts
Ranch Hand

Joined: Dec 06, 2013
Posts: 66
on each object i get the list of elements on my gwt ui that the data that i populate ui with, and i get only on the last object the list of elements in ui, but want to get it for each object object, can you suggest me what am doing wrong? I add all the objects from first and second callbacks into panel at the end, must i do it in another place? (first asynccallback for the object and the second for the element into this objects)

Ankit Garg

Joined: Aug 03, 2008
Posts: 9465

I might be wrong here, but it seems like you've declared first as an instance variable instead of a local variable. Can you declare it within the for loop and try?

SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
I agree. Here's the link:
subject: Wrong output for the list of data
It's not a secret anymore!