gwtuibindergwt-widgets

GWT UiBinder any way to have dynamic List of Images


I have a list of say 5 images (imageresources) that i want to add to a panel without having to declare five separate <img> tags in my ui.xml. Is this possible?


Solution

  • @uifield yourpanel panel

    And you directly add images to that panel.

    for (int i = 0; i < images.length; i++){
    
    Image image =new Image(url);
    
     .....
    ...
    Panel.add(image);
    }