This content has been marked as final. Show 3 replies
Yes, if you would check the JSF specifications or any result you get by searching google for 'jsf tags' you would see that f:selectItem in fact does not support a styleClass attribute. In stead of just guessing - look up specs and know. Surely that is not a weird concept to you?
But then you're using Richfaces - and this is not a Richfaces forum. But I'm a nice guy (really!) so I check the Richfaces manual for you - which you could have done yourself. And then I see that the rich:comboBox element supports an 'itemClass', an 'itemSelectedClass' and a 'listClass' attribute. 2 minutes of work. Might be worth investigating.
My richfaces version does not support rich:comboBox... Unfortunately, I am not able to use rich:comboBox ... : ((
Too bad, better drop the requirement then. A little knowledge of the working environment, which is HTML and CSS in this case, would have told you that there actually are little to none styling choices for select options.