• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to make some of the text fields Bold of DropDown List

 
Ranch Hand
Posts: 598
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a drop down list. It has some group kind of concept. Like in Group A there will be 6 elements and in Group B there will be 8 elements.

I want to display these groups names as Bold in the list itself. Gropup names will be followed by elements name.

This will be something like ;

Group A
  • A.1
  • A.2
  • A.3


  • Group B
  • B.1
  • B.2
  • B.3

  •  
    Saloon Keeper
    Posts: 27764
    196
    Android Eclipse IDE Tomcat Server Redhat Java Linux
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    You have your work cut out for you.

    The standard JSF droplist control generates a standard HTML droplist control, and the HTML droplist doesn't allow styling of individual items in the list.

    In order to get that effect, you'll need to provide javascript code that looks and behaves like an HTML dropdown list, but adds per-item style options.

    There might be something out there in one of the specialized libraries for that, but I don't know of any myself.
     
    Consider Paul's rocket mass heater.
    reply
      Bookmark Topic Watch Topic
    • New Topic