Originally posted by K Varun:
Just curious, why do you require a label ? (unless your value-label combination forms a composite primary key in database, which seems highly unlikely since labels, I believe, are just more user friendly version of values)
I am providing a confirmation page for chosen form items. So when the user clicks Save they are presented the same form except the selectOneMenu's are replaced with outputText items and I need the Label to display to the user. The values are all numbers. And yes, I am using a value-label combo in my tables where the value is an int and the label is a
string. The int's are stored as a foreign key in another table so that if I ever needed to change the label of an item I won't have to go and update thousands of entries in all different tables.