0

How do I skip the validation error of the selectOneMenu (combo box) of the JSF as shown below.

form1:menu1: Validation Error: Value is not valid

the result when the value change of the combo box is correct and expected. I just want to bypass the validation error.

Z.V
  • 1,441
  • 3
  • 21
  • 35
  • 4
    By the way, a `` doesn't render a combobox, it renders a dropdownlist. A combobox is a textfield+dropdownlist in one (thus, an editable dropdownlist). – BalusC Aug 03 '13 at 21:07

1 Answers1

-3

Try using immediate = "true". It will bypass JSF level validations.

  • been googled and tried it but doesn't work. the error sometimes occur, sometimes don't – Z.V Aug 03 '13 at 20:59
  • 4
    You misunderstood the purpose of `immediate="true"`. Carefully read the answer on http://stackoverflow.com/questions/13071512/why-was-immediate-property-added-to-the-editablevalueholders – BalusC Aug 03 '13 at 21:03