Primefaces 5 overlayPanel broken after update

假如想象 提交于 2019-12-07 13:40:08

问题


Today I discovered a new bug in P5. When I update the button which the overlay panel is referring to, it doesn't work anymore - The overlaypanel is not shown anymore.

As a workaround I do use PF('widgetVar').loadContents(); but this feels very uncomfortable.

In PF4 this did work without any workarounds.

Anyone got some solution?


回答1:


I don't know exactly what you are pointing at. What do you mean with updating the button?

For me the following code works fine with PrimeFaces 5.0:

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:p="http://primefaces.org/ui"
    xmlns:pm="http://primefaces.org/mobile">
<h:head>
</h:head>
<h:body>
    <p:commandButton id="menuButton" value="Menu" icon="ui-icon-home"/>

    <p:overlayPanel for="menuButton" widgetVar="menuPanel" at="left" showEffect="push">
        <!-- overlayPanel content goes here -->
    </p:overlayPanel>
</h:body>
</html>

Does this help you with your problem?



来源:https://stackoverflow.com/questions/23695239/primefaces-5-overlaypanel-broken-after-update

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