The following used to work with p:graphicImage
but not with o:graphicImage
.
Problem: data_id
is always null.
xhtml:
<p:dataScroller var="data"...
<p:graphicImage value="#{bean.imagel}" >
<f:param name="data_id" value="#{data._id}" />
</p:graphicImage>
Bean:
public InputStream getImage(){
String dataId = FacesContext.getCurrentInstance()
.getExternalContext()
.getRequestParameterMap()
.get("data_id");
I also tried with o:param
with the same result. What am I missing?