i want to override the style attribute .ui-state-disabled
of the primefaces component SelectCheckboxMenu. The overriding is easy if i define a new style for .ui-state-disabled
but the problem is that all other primefaces components with this style class will be overridden too, which i don't want.
How can a specify that the class .ui-state-disabled
will be overridden for a specific primefaces component ? (in my case a SelectCheckboxMenu)
Style:
.ui-state-disabled
{
visibility: hidden!important;
}
Component which should be overridden:
<p:selectCheckboxMenu id="overview" style="width: 130px; margin-right: 10px;"
value="#{overviewModel.filterCompilation.selectedCareUnits}"
filter="true" filterMatchMode="startsWith" panelStyle="width:250px"
label="checkbox">
<f:selectItems value="#{overviewModel.items}" />
</p:selectCheckboxMenu>