Yes, MyFaces does it as well. Bruno
On 10/28/06, Craig McClanahan <[EMAIL PROTECTED]> wrote:
On 10/24/06, Greg Reddin <[EMAIL PROTECTED]> wrote: > I have a situation where I *think* the solution is to write a custom > renderer. It has brought up some issues with renderers I wanted to > ask about as well. Here's my problem: > > I need to display a combo box with "hierarchical" select items. IOW, > the list of items in the combo box needs to be displayed as a tree > like follows: > > Item 1 > Item 2 > Item 3 > Item 4 > Item 5 > Item 6 > etc.... By the way, the "official" approach to this use case is to have your items that are parents implement SelectItemGroup instead of SelectItem ... you can build up hierarchies of options that get rendered as <optgroup> elements appropriately. (At least the RI does this right, I haven't tried MyFaces on it). Craig

