I've been trying to figure out what is wrong with my
@Inject
@DataField
FlowPanel panel;
// Here's the REST callback:
public void onSuccess(StuffResultItemDTO stuffResultItem) {
for (StuffItemDTO item : stuffResultItem.getStuff()) {
LOG.info(item.toString()); // No problem data is here
ResultItem w = resultInstance.get();
w.setModel(item);
panel.add(w);
}
// Producer
stuff.setCursor(stuffResultItem.getCursor());
}
This has been my problem for quite a while now. The catch is if I manually add something in the FlowPanel
the widget is shown.
So the panel really can inject widgets into it (like manually adding the ResultItem).
The real pain here is the for-loop code and the injection of ResultItem
there.