GWT UiBinder any way to have dynamic List of Images

468 Views Asked by At

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?

1

There are 1 best solutions below

1
On BEST ANSWER

@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);
}