I am using PrimeFaces 5.0.5 with GlassFish server 3.1.2.2.
I added a selectonemenu inside a <ui:fragment>
which is then included in another XHTML page.
When I open the select menu and scroll with the mouse wheel, the panel will float with the page.
Initially, I try to edit the CSS file as I was guessing it could be a position problem but it is not.
Then, I copied the source code from the showcase and the panel still splits when scrolling.
Both plain HTML drop down list and <h:selectOneMenu>
are fine and I have no idea why it doesn't work with <p:selectOneMenu>
.
I can find some posts mentioning this issue but they are related to older version of PrimeFaces.
Is the issue still there or fixed in 505? If yes, how to I solve this issue?
Any feedback and comment are appreciated.
Many thanks.
p:selectOneMenu dropdown not attached to the component inside a dialog
<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" value="Grouping: " />
<p:selectOneMenu id="car" value="#{selectOneMenuView.car}">
<f:selectItem itemLabel="Select One" itemValue="" />
<f:selectItems value="#{selectOneMenuView.cars}" />
</p:selectOneMenu>
<p:outputLabel for="city" value="Editable: " />
<p:selectOneMenu id="city" value="#{selectOneMenuView.city}" effect="fold" editable="true">
<f:selectItem itemLabel="Select One" itemValue="" />
<f:selectItems value="#{selectOneMenuView.cities}" />
</p:selectOneMenu>
</h:panelGrid>
...
regards, Rek
fullPage
of thep:layout
to false, and the problem dissapeared, maybe I can test this throughly tomorrow and give you an answer, do you have layouts too? – mrganser