I\'m strugging with my own resource-implementation. The getInputStream-method doesn\'t get called.
My handler:
public class R
found the mistake .The getRequestPath of my rescource implementation was faulty. I forgot the faces-mapping (Util.getFacesMapping(context)) to the faces-servlet in the url:
@Override
public String getRequestPath() {
final FacesContext context = FacesContext.getCurrentInstance();
return context
.getApplication()
.getViewHandler()
.getResourceURL(
context,
ResourceHandler.RESOURCE_IDENTIFIER + "/" + mediaId + Util.getFacesMapping(context)
+ "?ln=" + AppConstants.RESOURCE_MEDIA_LIB);
Everything works now as expected.
Thanks to BalusC for his help.
Cheers
Jonny