我想我知道其中的区别,但现在我发现自己很困惑。 :P
他们似乎都在做同样的事情,除了 partialSubmit
用于提交按钮以使用 AJAX 和 autoSubmit
提交表单。用于可编辑组件,它只提交自己的内容。我这样说对吗?
最佳答案
接受的答案对于 ADF 并非 100% 正确。 partialTriggers
属性涉及生命周期。
来自 Enabling Partial Page Rendering Declaratively
The
autoSubmit
attribute on an input component and thepartialSubmit
attribute on a command component are not the same thing. WhenpartialSubmit
is set to true, then only the components that have values for theirpartialTriggers
attribute will be processed through the lifecycle. TheautoSubmit
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 theautoSubmit
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".
关于jsf - JSF 中的 partialSubmit 和 autoSubmit 有什么区别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7281379/