Hi,
I found out that p:graphicImage is not working inside h:dataTable (PrimeFaces 2.1 on GlassFish 3.0.1.)
follows some partial extract from test code:
----------
...
<h:dataTable value="#{companyController.items}" var="item">
<h:column>
<f:facet name="header">
<h:outputText value="#{bundle.ListCompanyTitle_name}"/>
</f:facet>
<h:outputText value="#{item.name}"/>
</h:column>
<h:column>
<f:facet name="header">
<h:outputText value="#{bundle.ListCompanyTitle_photo}"/>
</f:facet>
<p:graphicImage id="photo" value="#{item.photo}" cache="FALSE" />
</h:column>
...
</h:dataTable>
...
--------------------
p:graphicImage can't recognise local variable item used for dataTable loop.
The real backing bean is companyController. When I use p:graphicImage with selected item from the backing bean everything is OK,
but in this case where the value is bind to local variable item.photo the generated src in <img> tag:
"<td><img id="j_idt12:j_idt22:0:photo" src="/test/company/List.jsf?primefacesDynamicContent=item.photo&primefaces_image=6c5119cb-355b-4145-a225-0b13288eb789" alt="" /></td>"
does not return any image content,
instead it refresh the current page as a result of calling it.
Maybe this is a normal behaviour, having in mind how the things work in that case,
but if there is a chance to work around or fix, it will be nice.
Regards,
Dimitar Kazakov
