p:selectOneMenu下拉列表未附加到对话框内的组件 [英] p:selectOneMenu dropdown not attached to the component inside a dialog

查看:99
本文介绍了p:selectOneMenu下拉列表未附加到对话框内的组件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在p:dialog中有一个p:selectOneMenu.每当我滚动页面时,下拉菜单就会与p:selectOneMenu标签分离,并根据鼠标滚动进行移动.有什么方法可以将其粘贴到标签上以使其不会移动?

I have a p:selectOneMenu inside a p:dialog. Whenever I scroll the page, the dropdown detaches from the p:selectOneMenu label and moves according to the mouse scroll. Is there any way to attach it to the label so that it doesn't move?

以下是存在相同问题的某人发布的问题的屏幕快照 SelectOneMenu面板随着鼠标滚轮

Here's a screenshot of the problem posted by someone who has the same problem SelectOneMenu panel scrolls with the mouse wheel

推荐答案

如果有人发现此问题,我想在此补充说明,此问题可以在更新版本的Primefaces(5.0+)中找到,您可以通过以下方法解决使用p:selectOneMenu中的appendTo="@this".我刚刚找到它,并在另一个新问题中解决了它.

In case someone finds this question, I want to add here that this problem can be found in newer versions of Primefaces (5.0+) and you can solve it by using appendTo="@this" in the p:selectOneMenu. I just found it and solved it in another more recent question.

相关:

SelectOneMenu用鼠标滚轮滚动

这篇关于p:selectOneMenu下拉列表未附加到对话框内的组件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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