Use another UIData component in which you have full control over the output, for example Facelets' ui:repeat , Tomahawk's t:dataList or RichFaces rich:dataList or rich:dataList a4j:repeat .
eg.
<ul> <ui:repeat items="#{bean.photos}" var="photo"> <li><img src="#{photo.url}" alt="#{photo.title}" /></li> </ui:repeat> </ul>
combined with for example
li { display: inline; list-style-type: none; }
t:dataList and rich:dataList can display <ul> and <li> for you. You just need to print <img> (or h:graphicImage , if you wish) and apply a CSS snapshot.
Update : as a bonus and for horizontal page scrolling, itβs usually bad for UX, you would like to make it a carousel. Just create the <ul> element as follows:
ul { width: 500px; white-space: nowrap; overflow-x: scroll; overflow-y: none; }
source share