0

我正在尝试在 Appfuse 项目中添加 FileUpload 的高级模式,我点击了这个链接: http: //www.primefaces.org/showcase/ui/file/upload/multiple.xhtml

我添加了它,但是在选择我的文件时,咆哮标签中没有显示任何文件,并且上传和取消按钮钢禁用。

在我的导航器的终端我有这个错误: TypeError: undefined is not a function。

你能帮我吗?谢谢

4

1 回答 1

0

展示柜有一个错误,您需要使用值 multipart/form-data 声明 enctype 示例

<h:form enctype="multipart/form-data">
    <p:growl id="messages" showDetail="true" />
 <p:fileUpload fileUploadListener="#{fileUploadView.handleFileUpload}" mode="advanced" dragDropSupport="false"
                  multiple="true" update="messages" sizeLimit="100000" fileLimit="3" allowTypes="/(\.|\/)(gif|jpe?g|png)$/" />

    <p:growl id="messages" showDetail="true" />
</h:form>
于 2017-08-04T10:15:03.793 回答