Why ace:fileEntry does not work?

不想你离开。 提交于 2019-12-11 14:58:10

问题


I'm using jsf 2.0 and icefaces 3 component to upload files:

<h:form enctype="multipart/form-data">   
<ace:fileEntry
        id="file-entry"
        relativePath="/files/"
        maxFileCount="10"
        maxFileCountMessage="Limited to 10 files uploaded concurrantly."
        fileEntryListener="#{uploadFileBean.sampleListener}"
        maxFileSize="6291456"
        maxFileSizeMessage="Submitted file is too large."
        maxTotalSize="18874368"
        maxTotalSizeMessage="Total size of submitted files is too large."
        required="true"
        requiredMessage="The file is required to submit this form."
        useOriginalFilename="true"
        useSessionSubdir="true" />

      <h:commandButton
        id="submit"
        type="submit"
        value="Send File" />
      </h:form>

but after I select a file to upload and press Send File button, I receive:

The file is required to submit this form.

which is very strange because I already selected a file.

Does anyone has any suggestion?

来源:https://stackoverflow.com/questions/20216829/why-acefileentry-does-not-work

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!