jsf - JSF 中的 partialSubmit 和 autoSubmit 有什么区别?

标签 jsf oracle-adf

我想我知道其中的区别,但现在我发现自己很困惑。 :P

他们似乎都在做同样的事情,除了 partialSubmit用于提交按钮以使用 AJAX 和 autoSubmit 提交表单。用于可编辑组件,它只提交自己的内容。我这样说对吗?

最佳答案

接受的答案对于 ADF 并非 100% 正确。 partialTriggers属性涉及生命周期。

来自 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".

关于jsf - JSF 中的 partialSubmit 和 autoSubmit 有什么区别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7281379/

相关文章:

java - 带表的 ADF 查询面板无法正常工作

java - 是否可以从Java代码调用数据库触发器?

java - 如何在页面显示之前设计具有条件导航逻辑的 JSF 入口点页面?

java - 目标无法到达, 'null' 以 JSF 形式返回 null

JSF 1.2 - PostConstruct 是在 getter 之前还是之后执行

java - 以编程方式获取 LOV 的所有返回值

jsf - 使用 JSF 1.2 添加输入文件

java - JSF Ajax 更新使 commandLink 在第一次单击时失败

java - ADF Faces中是否有类似ExtJS的MessageBox

java - 如何在 Tomcat 服务器中托管 ADF 应用程序?