Skip form check on command button

I have a JSF page that contains a tree shape tag that displays depending on some bean property. There are two buttons for the next and previous page. I want to skip the form check on the button that goes to the previous page.

I tried the following ways to disable validation:

  • Set h:commandButton immediate="true"

  • Change button a4j:commandButton ajaxSingle="true" rerender="someparts"

This does not work. Why does navigation fail when I want to skip checking?

+5
source share
2 answers

immediate="true"skips verification. Make sure you are redistributed successfully and there are no errors.

+12
source

I solve the problem using a4j:commandButton ajaxSingle="true" reRender=":outhercomponent:formconteningcomponent:component"

reRender ,

0

All Articles