Primefaces how to update content in a dialog and keep the dialog centered?

前端 未结 2 949
天命终不由人
天命终不由人 2021-02-01 20:29

I have a dialog that contains no content on page load and I\'m dynamically setting the content of a dialog box based on the link that a user clicks on.



        
2条回答
  •  傲寒
    傲寒 (楼主)
    2021-02-01 21:22

    I had the same problem. Updating the dialog makes it disappear and reappear (and forget its position).

    To solve it, I created a wrapper tag around the dialog content.

    
    
    
    
    
       
          
       
    
       
          
       
    
    
    

提交回复
热议问题