I want to present a number of pictures in an imageSwitch. The Images are loaded out of the database. It is possible to add or delete images in an dedicated administration tool.
This is the part of code I use to create the imageSwitcher inside the index.xhtml:
Code: Select all
<p:imageSwitch id="imageSwitch" effect="fade">
<ui:repeat value="#{pictureOverViewBean.pictureList}" var="image">
<p:graphicImage value="#{imageBean.image}" title="#{image.title}">
<f:param name="uuid" value="#{image.uuid}" />
</p:graphicImage>
</ui:repeat>
</p:imageSwitch>
And now the question:
Is it somehow e.g. by using ajax possible to reload the images from the database in the imageSwitcher without reloading the complete website? I tried to do an update on the ID imageSwitch with a commandButton but without success. What can I do to solve that problem?
Thx