开发者

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. What might be the reason for this?

Thanks


i dont see any problem with using 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:

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

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜