JSF: validation error on selectonemenu when refresh button is clicked
posted 10 years ago
I have a very small form which contains five input elements- one selectonemenu, inputText, selectBooleanCheckbox, one save button and one cancel button.
functionality is like, user can replace any value exists in the selectonemenu with the new value given in inputtext.
when user selects a value in selectonemenu and provides another value in inputtext and click save. it works fine and message is displayed to the user about successfull operation.
** now at this stage user clicks refresh button on browser window. Value is not a valid option - error is displayed for the selectonemenu. reason behind seems to be like - when user clicks refresh button browser re-sends previous request i.e. it sends previous values for all the items. since previous value in selectonemenu is no longer exists now, i.e it has been replaced with newer one. so JSF is generation validation error.
---I need to bypass this validation completely or need to customize and localize this message.