package org.primefaces.showcase.view.multimedia;
import java.util.ArrayList;
import java.util.List;
import javax.annotation.PostConstruct;
import javax.faces.bean.ManagedBean;
@ManagedBean
public class ImagesView {
private List images;
@PostConstruct
public void init() {
images = new ArrayList();
for (int i = 1; i <= 12; i++) {
images.add("nature" + i + ".jpg");
}
}
public List getImages() {
return images;
}
}
package org.primefaces.showcase.view.multimedia; import java.util.ArrayList; import java.util.List; import javax.annotation.PostConstruct; import javax.faces.bean.ManagedBean; @ManagedBean public class ImagesView { private List images;
@PostConstruct
public void init() {
images = new ArrayList();
for (int i = 1; i <= 12; i++) {
images.add("nature" + i + ".jpg");
}
}
public List getImages() {
return images;
}
}