File upload Primefaces文件上载将浏览器选项卡标题更改为文件名
如果使用primefaces对话框上载文件,则在上载后,浏览器选项卡标题将从应用程序名更改为文件名。Firefox(41.0.2)和Chrome(46.0.2490.80)都会出现这种情况。使用Internet Explorer时,不会发生这种情况。我使用的是Mojarra 2.2.12和Primefaces 5.3。我怎样才能抑制这种情绪File upload Primefaces文件上载将浏览器选项卡标题更改为文件名,file-upload,jsf-2,primefaces,jsf-2.2,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" fileUploadLis
<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>
当您删除取消标签
属性时,问题是否消失?出乎意料的是!标题不再更改。但是“取消”按钮当然不再被翻译了。听起来像是primefaces的bug。