How to trigger component refresh from javascript in primefaces?

后端 未结 5 1987
长发绾君心
长发绾君心 2020-12-29 03:53

Is it possible to update a PrimeFaces component from javascript so that it would be force to refresh?

I am making an ajax save call using this button in a dialog. I

5条回答
  •  情话喂你
    2020-12-29 04:09

    You can use an PrimeFaces element called p: remotecommand. This element will execute an action (to call a bean method, for example) and to execute an update after that action.

    There is an example in this post http://devdublog.blogspot.com/2015/04/best-way-for-calling-method-of.html.

提交回复
热议问题