简体   繁体   English

RichFaces rich:panel标头未出现

[英]RichFaces rich:panel header not appearing

I specified this 我指定了这个

    <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>

from the RichFaces demo, in my JSF page and no header appears, although I've nothing in my css which would interfere. 从RichFaces演示中,在我的JSF页面中,没有标题出现,尽管我的CSS中没有任何东西会干扰。 What might be the reason for this? 这可能是什么原因?

Thanks 谢谢

我看不到使用f:facet有任何问题

try 尝试

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

in order to regenerate the error you mentioned 为了重新产生您提到的错误

Mine disappeared when I accidentally included the panel's facets in the panel form. 当我不小心将面板的小平面包括在面板表单中时,我的消失了。 The facets must be children of the modal panel: 构面必须是模式面板的子代:

<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>

OK, do please feel free to comment on why the f:facet tag is not working, but I get my nice shiny headers when I change the code so it's like this instead: OK,请随时评论为什么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>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM