Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Himanshu Gupta
Ranch Hand
Posts: 598
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • 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

  •  
    Tim Holloway
    Saloon Keeper
    Posts: 18304
    56
    Android Eclipse IDE Linux
    • Mark post as helpful
    • send pies
    • 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.
     
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic