I’m using primefaces’ accordion panel. Inside the tabs i have forms which are created programmatically. Each form has a submit button. Now I wanted to change the colour of a tab, if the form of this tab has been submitted. So is it possible to change the color of one specific tab and how could I manage to make this work?
I think i have to use different style classes as mentioned here but I’m not quite sure how to use them.
How to highlight a primefaces tree node from backing bean
Any help is appreciated
You can use the
titleStyleClassof the<p:tab>tag for this. E.g.This will set the CSS style class of the tab to
completedwhenever the condition returnstrue. You can just specify the desired CSS in the.completed {}style class in your ownstyle.cssfile which you put in/resourcesfolder and include by<h:outputStylesheet name="style.css">.