我想知道是否有一种方法可以触发一个JSF管理bean的方法(与AjaxBehaviorEvent类型参数:同样使用F时触发:AJAX)直接使用jQuery的AJAX服务器request.By的方式,IMA JSF developper,我没有找到关于使用jQuery AJAX和Java EE作为服务器端框架的例子,我发现所有的例子都是用php..so我希望得到这样做,一个完整的例子。 我认为其他的解决办法可能是让一个commandLink正在通过电话提交使用jQuery在客户端和传递参数,但我preFER前者的解决方案,我希望它的工作。
i would like to know if there is a way to fire a jsf managed bean method (with an AjaxBehaviorEvent type parameter: the same triggered when using f:ajax) directly by using a jquery ajax server request.By the way , i m a jsf developper and i didn't find an example about using jquery ajax with Java EE as a server-side framework, all examples i found were with php..so i wish to get a complete example about doing that. i think the other workaround maybe is to make a commandLink being submitted with jquery on the client side and passing parameters through that call but i prefer the former solution and i wish it work.
非常感谢帮助!
在这里你去:
<script type="text/javascript">
doAwesomeness();
</script>
在你的页面:
<a4j:jsFunction name="doAwesomeness" action="#{awesomeBean.awesomeMethod}"/>
祝你好运!