Search code examples
jsfprimefacespanel

How to add jsf or html tags to p:panel 's header


 <p:panel id="sports" header="&lt;p:inputText id='headerz' value='text of headerz'" toggleable="true" closable="true" >  

this is my code. Page doesnt show p:inputText. on the source code of page i can see the input text with id=headerz but it is greyed.


Solution

  • Try This:

    <p:panel id="sports" toggleable="true" closable="true" >
        <f:facet name="header">
            <p:inputText id='headerz' value='text of headerz' />
        </f:facet>  
    </p:panel>