繁体   English   中英

JSF2 f:ajax ajax 请求没有查询字符串?

[英]JSF2 f:ajax ajax requests without query string?

现在,在我发出的每个 f:ajax(或 a4j:ajax)请求上,POST 都包含我不想要的查询字符串。 有没有办法让它不传递? 我不明白为什么它会这样做。

示例:请求页面

获取 /mypage.xhtml?zipcode=10101

然后在该页面上由 f:ajax 触发的任何 ajax 调用都会发布如下帖子:

发布 /mypage.xhtml?zipcode=10101

This causes a lot of problems because if i changed the form element for zip on the page with ajax, any other ajax post will actually cause the original zip code passed into the page to get re-read and reset on my backing bean.

我真的很想告诉所有 f:ajax 调用 STOP 将请求参数放入 URL 中,如下所示:

POST /mypage.xhtml(不管原始页面 GET 上的请求参数是什么)。

如果您定义了视图参数,则可能会发生这种情况。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM