I have a problem with to show images into a <p:dataTable>
. I'm following the BalusC's instructions here but when I try use context.getCurrentPhaseId()
as follows,
FacesContext context = FacesContext.getCurrentInstance();
if (context.getCurrentPhaseId() == PhaseId.RENDER_RESPONSE) {
return new DefaultStreamedContent();
}
Then Eclipse shows the following compilation error on context.getCurrentPhaseId()
:
The method getCurrentPhaseId() is undefined for the type FacesContext
How is this caused and how can I solve it? I'm using JSF 2 and Primefaces 2.2-snapshot.