Dropdown: show labels in dropdownmenu, show value when item in dropdownmenu is selected
posted 2 years ago
Using h:selectOneMenu with SelectItems I want to show the labels in the choice items, but, when a value is chosen I only want to display the 'value' in the selectOneMenu, not the label.
The reason for this: Business wants as much information as possible when a user opens the selectOneMenu, but due to that, the label value is way too large. So they only want to see the value after the choice is made and not the label.