更改rich上的背景颜色:选择richfaces中的项目

问题描述 投票:0回答:1

在我的应用程序中,我在Web视图页面中使用JSF-Richfaces。要通过手动输入选择项目进行搜索,我必须使用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>

下拉项目如下所示:

enter image description here

我想改变掉落物品的背景颜色,因为它看起来像深绿色的黑色。如何更改下拉项的样式。

richfaces jsf-2.2
1个回答
1
投票

您可以升级到最新版本(颜色在4.5.11中更改),以防您不能只使用selectItemClass属性 - 请参阅docs

© www.soinside.com 2019 - 2024. All rights reserved.