jsfajax4jsf

Skip form validation on command button


I have a JSF page that includes a tree form tag which is rendered depending on some bean property. There are two buttons for next and previous page. I want to skip form validation on the button which goes to the previous page.

I tried the following ways to disable the validation:

It does not work. Why does the navigation fail when I want to skip validation?


Solution

  • immediate="true" does skip the validation. Make sure you have redeployed successfully, and the there aren't any errors.