aspose file tools*
The moose likes JSF and the fly likes How to make some of the text fields Bold of DropDown List Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "How to make some of the text fields Bold of DropDown List" Watch "How to make some of the text fields Bold of DropDown List" New topic
Author

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

Himanshu Gupta
Ranch Hand

Joined: Aug 18, 2008
Posts: 598

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


  • My Blog SCJP 5 SCWCD 5
    Tim Holloway
    Saloon Keeper

    Joined: Jun 25, 2001
    Posts: 16014
        
      20

    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.


    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 make some of the text fields Bold of DropDown List