Calling JSF managed bean method with arguments in jQuery

后端 未结 2 462
-上瘾入骨i
-上瘾入骨i 2020-12-06 14:34

I am using JSF to build a site. I have included jQuery Gritter (Growl) notification on my home page. Is it possible to call a managed bean method inside the before_clo

2条回答
  •  北荒
    北荒 (楼主)
    2020-12-06 15:01

    You need to understand that you need to call a java method that runs in the server and you CANNOT call it directly.

    In your case, I would recommend to use AJAX or have the value read on load of the page and use it (if feasible for you)

    Check how you can use AJAX with Jquery

提交回复
热议问题