Primefaces 5 overlayPanel更新后损坏 [英] Primefaces 5 overlayPanel broken after update

查看:97
本文介绍了Primefaces 5 overlayPanel更新后损坏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

今天,我在P5中发现了一个新错误.当我更新覆盖面板所指的按钮时,它不再起作用-覆盖面板不再显示.

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.

作为一种解决方法,我确实使用了PF('widgetVar').loadContents();,但是感觉很不舒服.

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

在PF4中,它确实没有任何变通办法.

In PF4 this did work without any workarounds.

有人解决了吗?

推荐答案

我不确定您所指的是什么.您更新按钮意味着什么?

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

对我来说,以下代码可与PrimeFaces 5.0配合使用:

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>

这对您有帮助吗?

这篇关于Primefaces 5 overlayPanel更新后损坏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆