我使用的是primefaces 3.5,而且我的p:fileUpload组件有问题。
fileupload.js:11 Uncaught TypeError:无法读取属性' fileupload'未定义的
网页:
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:p="http://primefaces.org/ui"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:c="http://java.sun.com/jsp/jstl/core">
<ui:composition template="/templates/#{sessionScope['template']}">
<ui:define name="headerpage">
<h1>
Questionnaires
<small> Consulter Questionnaires</small>
</h1>
</ui:define>
<ui:define name="body">
<p:fileUpload id="upload" fileUploadListener="#{catalogueController.saveImageProduitUpload}"
mode="advanced"
sizeLimit="10000000"
multiple="true"
allowTypes="/(\.|\/)(gif|jpe?g|png)$/"/>