繁体   English   中英

RichFaces rich:panel标头未出现

[英]RichFaces rich:panel header not appearing

我指定了这个

    <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中没有任何东西会干扰。 这可能是什么原因?

谢谢

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

尝试

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

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

当我不小心将面板的小平面包括在面板表单中时,我的消失了。 构面必须是模式面板的子代:

<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,请随时评论为什么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