What is the difference between partialSubmit and autoSubmit in JSF?

后端 未结 2 1250
一整个雨季
一整个雨季 2021-02-10 13:22

I guess I knew the difference, but right now I find myself confused. :P

Both of them seem to be do the same thing, except that partialSubmit is used on subm

2条回答
  •  遥遥无期
    2021-02-10 13:31

    The accepted answer isn't 100% correct for ADF. The partialTriggers attribute is involved in the lifecycle.

    From Enabling Partial Page Rendering Declaratively

    The autoSubmit attribute on an input component and the partialSubmit attribute on a command component are not the same thing. When partialSubmit is set to true, then only the components that have values for their partialTriggers attribute will be processed through the lifecycle. The autoSubmit attribute is used by input and select components to tell the framework to automatically do a form submit whenever the value changes. However, when a form is submitted and the autoSubmit attribute is set to true, a valueChangeEvent event is invoked, and the lifecycle runs only on the components marked as root components for that event, and their children. For more information, see Section 4.4, "Using the Optimized Lifecycle".

提交回复
热议问题