Environment:
I'm working with JSF2.2, Bootsfaces 0.9.1, Primefaces 6.0, JEE7 and Hibernate 5.2 in combination with MySQL 5.7 DB.
What I have:
I've got a model which has a set of images. The set contains instances of my custom Image class which holds values for the Image like a title, description and the filename.
The images are stored on the filesystem and I got the MySQL DB for storing the models. I tried to display images on a view in my webapp and everything works fine. I also displayed some images with b:carousel tag from bootsfaces and everthing worked like I expected.
What I tried to do:
The next step I tried was to use for displaying a set of images with a different size. The following code was my attempt to realize this:
<b:carousel id="carousel" style="width: 800px; height: 400px;">
<ui:repeat value="#{modelDetailBean.modelImages}" var="img">
<b:carouselItem>
<b:image value="#{modelDetailBean.getImage(img)}"/>
</b:carouselItem>
</ui:repeat>
</b:carousel>
I recognized that no images got displayed in my carousel. Then I added at least 1 fixed to see if it's working and recognized that all images of the set are present in the carousel however the carousel doesn't take them into account correctly.
My main question:
Is it possible to use the ui:repeat tag to populate a carousel?
If it's possible: How can I do that? What am I doing wrong here?
If it's not: Which alternatives do I have to realize this with JSF and without a lot of javascript and so on?