I tryed with primefaces implementation, using 2.2.1 version with no success.
The code in the xhtml page:
Code: Select all
<p:fileUpload fileUploadListener="#{actionsContainer.fileStorageActions.uploadListener}"
multiple="true" label="choose" allowTypes="*.jpg;*.png;*.gif;*.pdf;*.webm;*.flv" description="Images"/>
Code: Select all
public void uploadListener(org.primefaces.event.FileUploadEvent event) throws CommonUtilsException {
log.write("Upload.");
}
Thans in advance
EDIT:
As I could see in other threads, I add this suggestion
Code: Select all
<h:form enctype="multipart/form-data" prependId="false">
<p:fileUpload fileUploadListener="#{actionsContainer.fileStorageActions.uploadListener}"
multiple="true" label="choose" allowTypes="*.jpg;*.png;*.gif;*.pdf;*.webm;*.flv" description="Images"/>
</h:form>