I am new to JSF and I came across the noSelectionOption
attribute in JSF 2.0.
I don't understand the purpose of this attribute. As per the description, it's used when the selection is required and the user selects noSelectionOption
causing a validation error.
So, if noSelectionOption = true
then the user can select noSelectionOption
and bypass that list or menu?
Or, if noSelectionOption = true
then the user has to select one of the items, and, if he chooses noSelectionOption
then the validation error occurs?
Can the user see noSelectionOption
as one of the items under the List or menu if it's true?
Please help me to understand the logic behind this.