Primefaces confirm dialog not centered when used in conjuntion with richfaces

冷暖自知 提交于 2019-12-24 07:28:19

问题


As per my question title, when I use richfaces, specifically a rich:popupPanel, my primefaces confirm dialog, p:confirmDialog, gets placed top/left justified. If I remove the the richfaces popup panel the primefaces dialog gets centered in the browser window as expected.

I tried changing the order of the namespace entries but that didn't work. What else can I try. I see richfaces also has a confirm dialog that I'm going to look into, it's just that I already had the primefaces version working on other pages, that happen to not have the richfaces popup panel.

I can post code if necessary.


回答1:


You should not use Richfaces and Primefaces together. There so many conflicts between them both in terms of css and javascript. You can solve css problems by overwriting them and using '!important' at the end of each setting. for example,

.class{
    //...
    text-align: center !important
}

However, Your best bet is to use just primefaces



来源:https://stackoverflow.com/questions/24491454/primefaces-confirm-dialog-not-centered-when-used-in-conjuntion-with-richfaces

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!