im trying to upload a file with like this:
<h:form>
<rich:fileUpload fileUploadListener="#{bean.test}"
id="upload" acceptedTypes="jpeg, jpg, gif, png, bmp">
<a4j:ajax event="uploadcomplete" render="preview" />
</rich:fileUpload>
</h:form>
But I always get the Error:
Servlet.service() for servlet [Faces Servlet] in context with path [/project] threw exception
java.lang.UnsupportedOperationException
at javax.faces.context.FacesContext.getExceptionHandler(FacesContext.java:280)
at javax.faces.context.FacesContextWrapper.getExceptionHandler(FacesContextWrapper.java:354)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:119)
at ......
I used the before, and it worked fine. I just cant see my mistake.
The Upload Box of it shows, I can add a file. The error appears when i push "upload" and the listener-method (public void test(FileUploadEvent event){..}) is not called.
any idea how i can solve this?