BalusC's answer is (as always :) correct, but as you noticed there will be a list of URLs in the selectOneMenu. That is exactly why I asked you how do you store your images. The way I usually do it: (and from what I know that's the standard way of doing it, hopefully someone will correcty me if I'm wrong) you store the image somewhere on the server and in your DB you store its location. That's why I would suggest to make a MyImage class (which will be mapped to a DB table) where you would store the name of the image and a way to get its location on the server (for example you can do it using namespaces like cats will have a String namespace = "cats"
and a String imageName
and a method that will return the url like String getImageLocation() {return "http://something.com/images/"+namespace+"/"+imageName;}
remember that it's important to make it look like a getter so the JSF can use it). Then all you have to do is to get the list of MyImages for a given namespace from your DB and render the images in a dataTable, something like this:
<h:dataTable value="#{myBeanWithAListOfImages.images}" var="img">
<h:column>
<h:graphicImage value="img.imageLocation"/>
</h:column>
</h:dataTable>
Where images is a List<MyImage>
. This should work and print the images in a single column.