1
PF 5.3.5 및 Mojarra 2.2.8을 사용하고 로그 파일 다운로드를 구현하고 있지만 아무 일도 발생하지 않습니다. 내가 모질라 콘솔에서 IE11 콘솔의 내부 아래에는 다운로드 한 파일에만이 오류가 표시되지primefaces fileDownload XML5619 : 잘못된 문서 구문입니다. 줄 : 1, 열 1
public StreamedContent getDownloadProperties() {
StreamedContent file = new DefaultStreamedContent();
ByteArrayOutputStream bos = null;
try {
bos = new ByteArrayOutputStream();
propConf.save(bos);
InputStream is = new ByteArrayInputStream(bos.toByteArray());
if (is != null)
file = new DefaultStreamedContent(is);
if (LOG.isDebugEnabled()) {
LOG.log(Level.DEBUG, "Download Prop: " + bos.toString());
}
return file;
} catch (ConfigurationException e) {
LOG.error("Could not save the collected properties", e);
} finally {
IOUtils.closeQuietly(bos);
}
return file;
}
<p:commandButton value="#{msg.SUPPORT_DOWNLOAD_APP_PROPS}" title="#{msg.SUPPORT_DOWNLOAD_APP_PROPS} (d)" accesskey="d">
<p:fileDownload value="#{supportController.downloadProperties}" />
</p:commandButton>
및 백엔드이 오류 구문 오류 앱 info.xhtml : 1 : 1 및 백엔드 오류가 없습니다.
XML5619 : 잘못된 문서 구문입니다. 줄 : 1, 1 열 도움, 의견 정말 감사드립니다. 미리 감사드립니다.