Hi,
I have a problem with adding a FileUploadListener object to HtmlFileUpload (rich:fileupload) programmatically:
This works but is deprecated:
HtmlFileUpload upload = new HtmlFileUpload();
upload.setFileUploadListener(FacesContext.getCurrentInstance()
.getApplication().createMethodBinding(
"#{actions.storedObjects["+this.getActionID()+"].uploadEventListener}",
new Class[] { UploadEvent.class }));
The Javadoc says that I should use MethodExpression instead but setFileUploadListener() will only accept FileUploadListener which is an instanceof MethodBinding but not MethodExpression. I'm using RichFaces 3.3.2 SR1.
Thanks in Advance!