I am using PrimeFaces 5.0.5 with GlassFish server 3.1.2.2.
I added a selectonemenu inside a
which is then included in another XHTML
I had a very similar problem, and the selecOneMenu element was placed in a dialog window in a table cell, and the dropdown was moving along with the parent while scroling.
Both solutions appendTo="@this"
and panelStyle="position:fixed;"
works fine, however having p:selectOneMenu
element as a part of a datatable makes the dropdown hidden "under" the element it is in.
The panelStyle="position:fixed;"
fixed completely the problem, as it remains at that position regardless of scrolling on the top of the element it is in.