My galleria won't work like it does in the showcase. It displays the images all at once with the style of a bulleted list
- picture 1
- picture 2
I pretty much copied the code from the showcase website (link). But it doesn't work at all like it should. I used Mozilla Firefox and Internet Explorer for testing. Both same result.
I'm running on a glassfish 5.0. Using Java 8, PrimeFaces 6.0 and JSF 2.1. Both images have a resolution of 711 x 400.
Here is my code.
xhtml
<p:galleria var="currentImage" value="#{homeBean.images}" panelWidth="500" panelHeight="313"
showCaption="true">
<p:graphicImage value="/image/#{currentImage}"></p:graphicImage>
</p:galleria>
Java-Bean
@ManagedBean
@ApplicationScoped
public class HomeBean {
private final List<String> images;
{
images = new ArrayList<>();
images.add("image1.png");
images.add("image2.png");
}
public List<String> getImages() {
return images;
}
}