+ Start a Discussion

How do you set a SelectOption title from a controller

Looking at the documentation URL below there are attributes like itemDescription, title, and styleClass.  How can those be set from a controller when creating a list of SelectOptions to be shown in a SelectList.


The attribute's corresponding setters and getters seem to be confusing from the controller.  The documentation describes the attribute "itemEscaped" but the setter I've had to use is "setEscapeItem".