I wanted to change the background color of the toolbar what the tag would be
<p:toolbar>
<f:facet name="right">
<h:commandButton value="Sair" style="color: "/>
</f:facet>
</p:toolbar>
I wanted to change the background color of the toolbar what the tag would be
<p:toolbar>
<f:facet name="right">
<h:commandButton value="Sair" style="color: "/>
</f:facet>
</p:toolbar>
When accessing your page through the browser, go to inspect element, click on the object you want to know the information and look for the class tag, in case the toolbar of the primefaces has the information of all the elements that make up the object.
class="ui-toolbar ui-widget ui-widget-header ui-corner-all ui-helper-clearfix"
In your css you declare the class
.ui-toolbar {
background-color: red;
}
In this case every time you call the toolbar will come this information, in case you want this color application only in a tag, the right thing would be to create a styleClass.
<p:toolbar styleClass="teste">
<f:facet name="right">
<h:commandButton value="Sair" style="color: "/>
</f:facet>
</p:toolbar>
..
.teste {
background-color: red;
}