我正在使用PrimeFaces 5.0.5和GlassFish服务器3.1.2.2.
我在<ui:fragment>其中添加了一个selectonemenu ,然后将其包含在另一个XHTML页面中.
当我打开选择菜单并使用鼠标滚轮滚动时,面板将随页面一起浮动.
最初,我尝试编辑CSS文件,因为我猜它可能是位置问题,但事实并非如此.
然后,我从展示中复制了源代码,滚动时面板仍然分开.
这两个纯HTML下拉列表<h:selectOneMenu>都很好,我不知道它为什么不能使用<p:selectOneMenu>.
我可以找到一些提及此问题的帖子,但它们与旧版本的PrimeFaces有关.
问题仍然存在或在505中修复?如果是,我该如何解决这个问题?
任何反馈和评论都表示赞赏.
非常感谢.
p:selectOneMenu下拉列表未附加到对话框内的组件
<ui:fragment
xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:c="http://java.sun.com/jsp/jstl/core"
xmlns:p="http://primefaces.org/ui">
<h:panelGroup
id="cPanel"
layout="block"
styleClass="contentArea product">
<div class="mainColumnContainer">
<div class="mainColumn">
...
<div id="try">
<form>
...
<h:panelGroup>
<h:form>
<p:messages autoUpdate="true" />
<h:panelGrid columns="2" style="margin-bottom:10px" cellpadding="5">
<p:outputLabel for="console" value="Basic:" />
<p:selectOneMenu id="console" value="#{selectOneMenuView.console}">
<f:selectItem itemLabel="Select One" itemValue="" />
<f:selectItem itemLabel="Xbox One" itemValue="Xbox One" />
<f:selectItem itemLabel="PS4" itemValue="PS4" />
<f:selectItem itemLabel="Wii U" itemValue="Wii U" />
</p:selectOneMenu>
<p:outputLabel for="car" …Run Code Online (Sandbox Code Playgroud) 我安装了 11.2020 11g EE Oracle 数据库
SQL> select * from v$version
2 ;
BANNER
--------------------------------------------------------------------------------
Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
PL/SQL Release 11.2.0.2.0 - Production
CORE 11.2.0.2.0 Production
TNS for Linux: Version 11.2.0.2.0 - Production
NLSRTL Version 11.2.0.2.0 - Production
Run Code Online (Sandbox Code Playgroud)
最初,一切都很好,它侦听端口 1521,直到我关闭服务器。
重新启动后,我通过运行startup来启动数据库
SQL> startup
ORACLE instance started.
Total System Global Area 1603411968 bytes
Fixed Size 2226912 bytes
Variable Size 1342178592 bytes
Database Buffers 251658240 bytes
Redo Buffers 7348224 bytes
Database mounted.
Database opened.
Run Code Online (Sandbox Code Playgroud)
但是,数据库不监听,我无法连接到实例。 …