Temporarily disable JSF validations

前端 未结 1 740
清歌不尽
清歌不尽 2020-12-12 01:10

A has many required inputs and validations. A couple of command buttons control different inputs.

I can change required attibrute with the value of

1条回答
  •  南方客
    南方客 (楼主)
    2020-12-12 01:46

    You seem to be using JSF 2.x already. So just use or to specify client IDs of components which are to be executed/processed when the button is pressed. All components which are not included in this will just be ignored and not converted/validated.

    E.g.

    
    
    
    
    
    
    
    

    In case of it defaults to @form (i.e. the entire current form).

    See also:

    • Understanding PrimeFaces process/update and JSF f:ajax execute/render attributes

    0 讨论(0)
提交回复
热议问题