I have a JSP page whereby when the user clicks the submit button I validate the input texts and the values selected from dropdown boxes. Also, I have 2 dropdown boxes whereby I default the values and then DISABLE the dropdown box so that no entries can be changed in those dropdown boxes. The issue is after the fix is made the DROPDOWN BOXES are enabled again and the values are changed to their default values.
The DISABLE of the dropdown boxes is done by JQuery based on values entered in input fields.
Is there a way that after the facesMessage is fixed and the page is realoded that the values in the dropdowns are maintained and the DISABLED attribute is maintained as well on the JSP page?
Why the values of the dropdown boxes change to their default values? Have you checked if this behavior occurs even id you do not disable them? If I remember correctly disabled inputs DO NOT send their data to server. So your logic is faulty there. Have you tried readonly (instead of disabled) or similar?
Something like this: