-
1. Re: h:selectOneMenu style
ssilvert Mar 19, 2010 8:16 AM (in response to lenyas66)I've never tried it myself, but I think the selectOneMenu attributes you are looking for are enabledClass and disabledClass. These tell which CSS class to use when the menu is enabled and disabled.
Stan
-
2. Re: h:selectOneMenu style
jsfdevelop Apr 13, 2010 7:37 AM (in response to ssilvert)Hi,
I have given a background color to the h:selectOneMenu by using the below code:
<h:selectOneMenu value="#{LoginAction.locale}" styleClass="alignLeft;" valueChangeListener="#{LoginAction.changeLanguage}" immediate="true" style="background-color:yellow;">
<a4j:support event="onchange" reRender="loginForm" limitToList="true" immediate="true"/>
<f:selectItem itemValue="en" itemLabel="English" />
<f:selectItem itemValue="es" itemLabel="Español" />
</h:selectOneMenu>I have a requirement for changing the background of the value in h:SelectOneMenu when the mouse is over the value.I mean the value which the mouse points to should be highLighted i.e if have 10 values in the drop down when my mouse is on the second value in dropdown the value should be highlighted in yellow whereas the others should not be highlighted.
I tried using onmouseover attribute but it jut mess up my logic when mouse is over the dropdown all values are highLighted.Thanks and Regards,
JSFDEveloper
-
3. Re: h:selectOneMenu style
lenyas66 Apr 23, 2010 11:13 AM (in response to jsfdevelop)I see how to change background color, but how to change the color of a button with down arrow?
-
4. Re: h:selectOneMenu style
yaseralhs Oct 16, 2011 6:14 AM (in response to lenyas66)how to change the color of a button with down arrow?
-
-
6. Re: h:selectOneMenu style
kh.ramana Dec 9, 2011 4:47 AM (in response to lenyas66)Do any one found the solution to change the down arrow with different color?