p:fileUpload required =' true'不工作

时间:2016-02-24 14:16:19

标签: primefaces jsf-2.2

<p:fileUpload fileUploadListener="#{expeditionGroupView.handleFileUpload}" mode="advanced" dragDropSupport="true"
                      update="upload-messages" sizeLimit="10000000" allowTypes="/(\.|\/)(gif|jpe?g|png)$/" 
                      cancelLabel="#{lbl['label.cancel']}" uploadLabel="#{lbl['label.send']}" label="#{lbl['label.choose.file']}"
                      invalidFileMessage="#{msg['error.invalid.file.type']}" required="true"/>

我正在尝试使用required =&#34; true&#34;验证我的p:FileUpload,为什么它不起作用?

0 个答案:

没有答案