2017-05-03 74 views
0

我們最近升級到JSF 2.3,並且p:fileUpload停止調用fileUploadListener。在Jetty上運行,但在Liberty上運行時仍然可以正常工作。我們正在使用PrimeFaces 6.0。在Liberty服務器上的JSF 2.3中未調用fileUploadListener

這是一個解決方法的已知問題?

<p:fileUpload id="uploadFile" update="@this docPanel" value="#{documentController.file}" mode="advanced" auto="false" fileLimit="1" 
    fileUploadListener="#{documentController.upload}" styleClass="fileUpload" widgetVar="fileUploadVar" a:onchange="checkSize(); " 
    required="true" requiredMessage="#{msgs.msg_val_required}"/> 
+1

我'改進'你的標籤 – Kukeltje

+0

在Liberty上使用JSF 2.2工作嗎? – wtlucy

+0

它確實與Liberty上的JSF 2.2一起工作。 – Promination

回答

0

原來春季安全CSRF不承認的請求。我們擴展了過濾器來接受它。

private RegexRequestMatcher unprotectedMatcher = new RegexRequestMatcher("(/views/StartSystem.*)|(/views/ListDocumentReferences.*)", null); 
相關問題