Doubt on immediate attribute for command button

前端 未结 1 1821
粉色の甜心
粉色の甜心 2020-12-18 16:04

HI,

I have a doubt on setting the immediate attribute for the command button. I would like to know what will be the changes in the life cycle?

I have read th

相关标签:
1条回答
  • 2020-12-18 16:07

    If immediate="true" is set in an UICommand component, then the apply request values phase until with update model values phases will be skipped for any of the UIInput component(s) in the same UIForm. Use this to skip the entire processing of the form. E.g. "Cancel" or "Back" button.

    If immediate="true" is set in both UIInput and UICommand components in the same UIForm, then the apply request values phase until with update model values phases will be skipped for any of the UIInput component(s) in the same form which does not have this attribute set. Use this to skip the processing of the entire form expect for certain fields (with immediate). E.g. "Password forgotten" button in a login form with a required but non-immediate password field.

    See also

    • Debug JSF lifecycle
    0 讨论(0)
提交回复
热议问题