Shahriar Miraj
Shahriar Miraj

Reputation: 337

Change the background color on rich:select items in richfaces

In my application I am using JSF-Richfaces in web view pages. For searching by manual typing in select items I have to use rich:select tag.

<h:outputText value="Product" />
<rich:select defaultLabel="start typing for select"
                             value="#{accountSearchController.searchAccDto.accountProduct}" converter="#{productConverter}">
    <f:selectItems value="#{accountSearchController.allProducts}" var="product" itemLabel="#{product.name}"/>
</rich:select>

The dropdown items looks like:

enter image description here

I want to change the background color of drop items as it is looks bleary as black in deep green. How do I can change the style of the drop-down items.

Upvotes: 0

Views: 297

Answers (1)

Makhiel
Makhiel

Reputation: 3884

You can upgrade to the latest version (the colors were changed in 4.5.11) in case you can't just use the selectItemClass attribute - see the docs.

Upvotes: 1

Related Questions