Primefaces文件上传将浏览器选项卡标题更改为文件名

时间:2015-11-04 09:05:30

标签: file-upload jsf-2 primefaces jsf-2.2

如果我上传一个带有primefaces对话框的文件,浏览器标签标题会在上传后从应用程序名称更改为文件名。这种情况发生在Firefox(41.0.2)和Chrome(46.0.2490.80)上。使用Internet Explorer时,它不会发生。我使用的是Mojarra 2.2.12和Primefaces 5.3。我怎么能抑制这个?

<p:fileUpload id="docUploadId" widgetVar="docUploadWidgetVar" fileUploadListener="#{uploadDocumentBL.handleDocumentUpload}" mode="advanced"
dragDropSupport="true" multiple="true" fileLimit="#{uploadDocumentBL.fileCountUploadLimit}" sequential="true"
sizeLimit="#{uploadDocumentBL.fileSizeUploadLimitForOneFile}" cancelLabel="#{msgs['label.button.fileUpload.resetButton']}"
uploadLabel="#{msgs['label.button.fileUpload.uploadButton']}" label="#{msgs['label.button.fileUpload.chooseButton']}"
fileLimitMessage="#{msgs.getTextWithParams('msg.error.validation.upload.tooMuchFiles', uploadDocumentBL.fileCountUploadLimit)}"
invalidSizeMessage="#{uploadDocumentBL.getMaxFileSizeExceededValidationMessage()}" styleClass="uploadDocument" update="@this">
    <h:panelGroup id="dropZoneTextId" styleClass="dropZoneTextDiv" layout="block">
        <h:outputText value="#{msgs['label.documentUpload.fileDropZone']}" styleClass="dropZoneText" />
    </h:panelGroup>
</p:fileUpload>

0 个答案:

没有答案