This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how to change css of f:selectItems  RSS feed

 
tony altaico
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello

I am not able to change the css of f:selectItems inside rich:select. I can change CSS of rich:Select successfully unfortunately I do fail when I try to change f:selectItem. You can see the code.. Any help will be appreciated.

Best Regards
Altaico

 
Tim Holloway
Bartender
Posts: 18662
71
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The f:selectItem(s) element is a data element, not a ui element. It doesn't support the style or styleClass attributes.

Aside from the lack of JSF-level support, while HTML docs do indicate that styles may be applied to the HTML <OPTION> elements that selectItems render to when used as data for selectOneMenu, I have never seen a browser that would honor them.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!