Passing a parameter to the method in each iteration of the loop
<p>I'm trying with each iteration of the loop to get the data to display.</p>

<p><em>xhtml</em></p>

<pre><code>...
&lt;ui:repeat var="cat" value="${animalBean.listCat}"&gt;
    &lt;p:graphicImage value="#{animalBean.getImage(cat)}"/&gt;                                               
&lt;/ui:repeat&gt;
...
</code></pre>

<p><em>AnimalBean</em></p>

<pre><code>...
private List&lt;Cat&gt; listCat;
private StreamedContent image;
// getters + setters

public StreamedContent getImage(Cat c) {
    // Here c is null
    return new DefaultStreamedContent(new ByteArrayInputStream(c.getPhoto1()));
}
...
</code></pre>

<p>Is it possible to somehow pass a parameter to the method so that at each iteration to perform a method which obtains the data?</p>