Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to change css of f:selectItems

 
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
Saloon Keeper
Pie
Posts: 18014
47
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