Scroll-Problem with SelectOneMenu inside Dialog

Locked
nma
Posts: 3
Joined: 28 Apr 2016, 09:05

04 Oct 2016, 11:11

Hello everyone,

today I noticed that when i place a selectbox inside a dialog and open it, it will scroll along the main page. I also checked the sourcecode of the html and the absolute positioning of the element seems to be responsible.

Code: Select all

<p:dialog widgetVar="eventDialog" >
   <p:selectOneMenu id="reason" value="Selection">
      <f:selectItems value="Selection 1" />
      <f:selectItems value="Selection 2" />
   </p:selectOneMenu>
</p>
Sourcecode of HTML:
Image

Screenshots of what happens:
ImageImage

Do you have an idea? Thank you.
Using PrimeFaces 6.0, MyFaces 2.2.10, Apache Tomcat 8.0.35

mert.sincan
Posts: 5281
Joined: 29 Jun 2013, 12:38

06 Oct 2016, 16:13

Please try;

Code: Select all

<p:selectOneMenu id="reason" value="Selection" appendTo="@(this)">
      <f:selectItems value="Selection 1" />
      <f:selectItems value="Selection 2" />
   </p:selectOneMenu>

fes
Posts: 3
Joined: 22 Mar 2013, 12:10

19 Jan 2017, 14:04

selection on dialod
selection on dialod

<p:selectOneMenu id="reason" value="Selection" appendTo="@(this)">
<f:selectItems value="Selection 1" />
</p:selectOneMenu>
Last edited by fes on 18 Oct 2017, 13:35, edited 2 times in total.

mert.sincan
Posts: 5281
Joined: 29 Jun 2013, 12:38

20 Jan 2017, 20:06

???

Locked

Return to “Modena”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest