How to trigger component refresh from javascript in primefaces?

后端 未结 5 1996
长发绾君心
长发绾君心 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:08

    you can always do something like this (remove the showmessage id from your save button update attribute)

    
    
    function handleSaveNewMember(xhr, status, args) {
        ...
        jQuery("#myBtn").click();
    }
    

    EDIT But anyway in your current code , isn't the dialog being closed at the same time that the grwol being updated ?

提交回复
热议问题