tags:

views:

314

answers:

3

Hello

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

A: 

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>
Mark Lewis
it works perfectly fine here with `<f:facet>`
Bozho
+1  A: 

i dont see any problem with using f:facet

daedlus
As I have used the other way of doing it I unfortunately have no time to check this out in more detail, but for other readers you have decent rep saying it should work so I don't know what I did, but at least you also have a workaround. Good karma gives the answer points to daedlus.
Mark Lewis
A: 

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

k3a