how to fix width and height of primefaces dialogbox
问题 In my web application i want to fix height and width of primefaces dialogbox in the way in which the dialogbox appears exactly in the middle of my web page, and if one want to minimize the window then the dialogbox should also be minimised. i mean middle of my one of the frame not whole window. i.e. dynamic sized dialog box like % width and height thanks for any help... 回答1: You can use following code to make it of fixed dimension, <p:dialog header="Modal Dialog" widgetVar="dlg2" modal="true"