RichFaces rich:面板标题没有出现

时间:2010-02-16 13:13:44

标签: jsf richfaces

我指定了这个

    <rich:panel>
        <f:facet name="header">
                Panel #1. Changing Style Synchronously
        </f:facet>
            Each component in the RichFaces has a pre-defined set of classes you can manipulate with. If defined, those
            classes overwrite the ones come from the skin.
    </rich:panel>
来自RichFaces演示的

,在我的JSF页面中没有出现标题,虽然我的css中没有任何内容会干扰。可能是什么原因?

由于

4 个答案:

答案 0 :(得分:1)

我没有看到使用f:facet

的任何问题

答案 1 :(得分:0)

尝试

<f:facet name="header">
     <div><h:graphicImage value="/images/search.png" />
     <h:outputText value=" Action Logs Search" /></div>
    </f:facet>

为了重新生成您提到的错误

答案 2 :(得分:0)

当我意外地将面板的刻面包含在面板中时,我失踪了。方面必须是模态面板的子级:

<rich:panel>
   <a4j:form> <!-- This is trouble! -->
     <f:facet name="header">
            Panel #1. Changing Style Synchronously
     </f:facet>
        Each component in the RichFaces has a pre-defined set of classes you can manipulate with. If defined, those
        classes overwrite the ones come from the skin.
   </a4j:form>
</rich:panel>

答案 3 :(得分:-1)

好的,请随意评论为什么f:facet标签不起作用,但是当我更改代码时,我得到了漂亮的闪亮标题,所以它就像这样:

<rich:panel header="header">
            Each component in the RichFaces has a pre-defined set of classes you can manipulate with. If defined, those
            classes overwrite the ones come from the skin.
    </rich:panel>