1

我有一个命令按钮,应该使用 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标签的情况下重新呈现包含字段和标记的区域?

4

1 回答 1

0

我在网上搜索后发现了同样的风格问题rich:panel

<style>
    .rich-panel{
        background-color: transparent;
        border: 0px;
    }
    .rich-panel-body{
        background-color: transparent;
        border: 0px;
    }
</style>

你可以忘记你不喜欢的丑陋边框。

于 2011-11-25T08:58:51.280 回答