【发布时间】:2016-01-05 21:47:00
【问题描述】:
在我的应用程序中,您可以上传 zip 文件。现在我想合并ajax。如何让 ajax 处理 zip 文件?
现在,我的代码如下所示:
<h:form id="form" enctype="multipart/form-data" prependId="false"
pt:class="form-inline" pt:role="form"
rendered="#{consoleController.getAdmin() != null}">
<div class="form-group">
<label class="sr-only" for="file">File:</label>
<h:inputFile id="file" value="#{uploadController.file}" />
</div>
<h:commandButton id="button" value="Upload"
action="#{uploadController.upload}" class="btn btn-default">
<f:ajax execute="file" render="@all" />
</h:commandButton>
</h:form>
我在 Chrome 中以模式窗口的形式收到以下错误:
malformedXML: Toplevel node must be one of: changes, redirect, error,...
【问题讨论】: