0

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.

HDJEMAI
  • 9,436
  • 46
  • 67
  • 93
quarks
  • 33,478
  • 73
  • 290
  • 513
  • what happens ? Do you get an error message ? Check the HTML with Dev Tools. – Ümit Jan 31 '15 at 12:22
  • Yeah I've checked with the HTML, and as inspected the data is not rendered, yet the actual POJO is ok and its there returned by the method. – quarks Jan 31 '15 at 15:36
  • The problem was with handler registration being registered every time the page is loaded – quarks Feb 01 '15 at 08:04

0 Answers0