css « Tag « JSF Q&A

Home
JSF Q&A
1.API
2.Bean
3.Component
4.Control
5.Data
6.database
7.Datatable
8.Development
9.Exception
10.Facelets
11.Form
12.Glassfish
13.HTML
14.IceFaces
15.Internationalization
16.JPA
17.JSP
18.MyFaces
19.openfaces
20.Page
21.Portlet
22.PrimeFaces
23.RichFaces
24.Seam
25.Security
26.Servlet
27.Session
28.Tag
29.Test
30.Tomcat
31.validation
32.Web Service
JSF Q&A » Tag » css 

1. How can I apply CSS to a JSF tag?    stackoverflow.com

I want to apply CSS specific to selectItem in selectOneMenu to be displayed in a different style. e.g. I want every option of coffee in the list below to be displayed ...

2. CSS for JSF tags    coderanch.com

4. CSS for individual selectItem tag    coderanch.com

Sorry, no can do. selectItem is part of the "f:" (facet) tagset and therefore does not correspond to UI display elements - it's data. A bigger problem is that the h:selectOneMenu tag renders as an HTML SELECT tag, and the HTML select tag (and the OPTION tags that the facets generate) don't support per-item styling. You CAN achieve this kind of ...

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.