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

查看:16
本文介绍了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天全站免登陆