gpt4 book ai didi

jquery - 通过 XmlHttpRequest 对象调用支持 bean 方法

转载 作者:行者123 更新时间:2023-12-01 06:09:33 25 4
gpt4 key购买 nike

有没有办法使用 javascript XmlHttpRequest 对象或通过 JSF 中的 jQuery 来调用支持 bean 方法?

最佳答案

是的,如果您通过 HTTP 公开 Backing Bean(即使用 RESTeasy、Servlet 等)。

但是使用像ajax4jsf这样的东西更容易。如果需要,您可以使用 ajax4jsf 的 a4j:jsFunction 作为 jQuery 和支持 bean 之间的中介。

关于jquery - 通过 XmlHttpRequest 对象调用支持 bean 方法,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/726581/

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