gpt4 book ai didi

java - JSF 2.0 : Why does f:ajax send all the form fields and not only those marked with execute-attribute?

转载 作者:塔克拉玛干 更新时间:2023-11-03 03:47:31 25 4
gpt4 key购买 nike

这些天我似乎遇到了一堆与 JSF 相关的问题......这里又来了:为什么用 f:ajax 声明的 AJAX 调用不仅发布表单的所有字段那些用 execute 声明的?这个问题was already asked在 Sun 论坛中,但由于它们现在已关闭,我无法在那里回复。那里的线程有一个 stub ,对此没有真正的答案。

如果我只需要使用其中的一部分,那么提交所有表单域有什么意义?

最佳答案

我刚刚查看了 Tuuka 在 2011 年 1 月发布的 JSF 票证。它说这种行为(提交所有表单字段)符合 JSF 规范,并且问题已关闭。

JSF 开发人员发布了规范更改通知,指出应在即将发布的规范中对此进行修改。日期为 2013 年 1 月 31 日。https://java.net/jira/browse/JAVASERVERFACES_SPEC_PUBLIC-1098

"f:ajax doesn't obey the 'execute' attribute but always sends all the fields in a form. Mojarra does, however, only process the listed fields as supposed. However, excess fields shouldn't be sent because it increases request size."

"Status: open Priority: major"

关于java - JSF 2.0 : Why does f:ajax send all the form fields and not only those marked with execute-attribute?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3889894/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com