我有一个命令按钮,应该使用 AJAX 重新渲染某些特定区域。
<a4j:commandButton ajaxSingle="true" actionListener="#{myListener}"
reRender="ext" value="myButton" />
只要区域定义为
<a4j:outputPanel id="ext" layout="none">
<rich:panel rendered="#{isPanelRendered}">
...
</rich:panel>
</a4j:outputPanel>
它正在工作。但不幸的是,我无法使用rich:panel
它,因为它创建了一个我无法用 CSS 覆盖的丑陋边框。
但是当更改为
<a4j:outputPanel id="ext" layout="none" rendered="#{isPanelRendered}">
...
</a4j:outputPanel>
还
<a4j:outputPanel id="ext" layout="none">
<h:panelGrid rendered="#{isPanelRendered}">
...
</h:panelGrid>
</a4j:outputPanel>
不工作。
如何在没有rich:panel
标签的情况下重新呈现包含字段和标记的区域?