If getOptionlist returns the ArrayList of SelectItems then optionSelected should get SelectItem object whichever is selected this object will have value and label both fields...
But it returns null ....rather if the optionSelected is made String type it returns ....
What is binding attribute of these tags ..it is present for almost all tags ....how it works
posted 7 years ago
The 'binding' attribute allows you instant access to the desired UIComponent inside the backing bean. It is useful if you want to get/set a bit more than only the value.