开发者

a4j:jsfunction for jsf2?

开发者 https://www.devze.com 2023-01-28 01:04 出处:网络
I\'m starting up a new jsf2/jQuery project, and would like to use the a4j:jsfunction in the ajax4jsf library. The problem is that ajax4jsf is not supported for jsf2. So I have to find some other appro

I'm starting up a new jsf2/jQuery project, and would like to use the a4j:jsfunction in the ajax4jsf library. The problem is that ajax4jsf is not supported for jsf2. So I have to find some other approach to make an ajax call to the managed bean from javascript.

I know that jsf2 have some built-in ajax functionality, but not for this partcular usecase. 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开发者_如何学Go javascript. However this is not an optimal solution....

Thanks for any help;)


a4j:jsfunction is available in Richfaces 4.0 Milestone 4 which directly supports JSF 2.0.

0

精彩评论

暂无评论...
验证码 换一张
取 消