更新时间:2021-09-26 09:05:35
代码存在以下问题:
The code has the following issues:
) 不适用于附件.a4j
标签.<a4j:commandButton .../>
) does not work with attachments.a4j
tags.
更改为
.<a4j:commandButton .../>
to <h:commandButton .../>
.bw.write(getDomainDocument());
改为bw.write(document);
.try/catch
的第一行添加String document = getDomainDocument();
.bw.write( getDomainDocument() );
to bw.write( document );
.String document = getDomainDocument();
to the first line of the try/catch
.
(未显示)更改为
.
<a4j:outputPanel.../>
(not shown) to <h:messages showDetail="false"/>
.本质上,删除所有与 commandButton
相关的 Ajax 工具.仍然可以显示错误消息并利用 RichFaces UI 样式.
Essentially, remove all the Ajax facilities related to the commandButton
. It is still possible to display error messages and leverage the RichFaces UI style.