简体   繁体   English

jsf2的a4j:jsfunction?

[英]a4j:jsfunction for jsf2?

I'm starting up a new jsf2/jQuery project, and would like to use the a4j:jsfunction in the ajax4jsf library. 我正在启动一个新的jsf2 / jQuery项目,并想在ajax4jsf库中使用a4j:js函数。 The problem is that ajax4jsf is not supported for jsf2. 问题是jsf2不支持ajax4jsf。 So I have to find some other approach to make an ajax call to the managed bean from javascript. 因此,我必须找到其他方法来从javascript对托管bean进行ajax调用。

I know that jsf2 have some built-in ajax functionality, but not for this partcular usecase. 我知道jsf2具有一些内置的ajax功能,但不适用于这种特殊的用例。 Is there any other library that I can use? 我还有其他可以使用的库吗?

I guess I can add a button or link or something, add an f:ajax for the onclick event, and invoke this from the javascript. 我想我可以添加按钮或链接之类的东西,为onclick事件添加f:ajax,然后从javascript中调用它。 However this is not an optimal solution.... 但是,这不是最佳解决方案。

Thanks for any help;) 谢谢你的帮助;)

在直接支持JSF 2.0的Richfaces 4.0 Milestone 4中提供了a4j:jsfunction。

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

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