Two Laptop Bag*
The moose likes JSF and the fly likes how to change css of f:selectItems Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "how to change css of f:selectItems" Watch "how to change css of f:selectItems" New topic
Author

how to change css of f:selectItems

tony altaico
Greenhorn

Joined: Jan 31, 2009
Posts: 21
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

Joined: Jun 25, 2001
Posts: 15959
    
  19

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to change css of f:selectItems
 
Similar Threads
disabled issue for inputtext
Specifying multiple targets for hx:behaviour does not work
Problem with a h:panelGrid and a ui:repeat
Adding Ajax in existing JSF application
File browser button