Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8679847
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T21:05:20+00:00 2026-06-12T21:05:20+00:00

When I embed a p:selectOneMenu in a p:dialog , its initial width is too

  • 0

When I embed a p:selectOneMenu in a p:dialog, its initial width is too small in Primefaces 3.4. The width of these widgets was perfectly fine in Primefaces 3.2. Do I need to do a hack to get around this?

The problem manifests in Chrome. The following example code demonstrates the problem:

<p:selectOneMenu value="A" onchange="testDialog.show()">
  <f:selectItem itemLabel="Default item" itemValue="A" />
  <f:selectItem itemLabel="Click here to show the dialog" itemValue="B" />
</p:selectOneMenu>
<p:dialog header="Test dialog" widgetVar="testDialog">
  <p:selectOneMenu value="A">
    <f:selectItem itemLabel="This one here in the dialog" itemValue="A" />
    <f:selectItem itemLabel="doesn't calculate" itemValue="B" />
    <f:selectItem itemLabel="its width" itemValue="C" />
    <f:selectItem itemLabel="correctly" itemValue="D" />
  </p:selectOneMenu>
</p:dialog>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T21:05:21+00:00Added an answer on June 12, 2026 at 9:05 pm

    I was able to reproduce your problem; it’s like the dropdown button is blissfully ignorant of the fact it’s covering up the textbox. On my setup I was able to get the selectOneMenus to appear properly with this CSS fix:

    <style type="text/css">
        .ui-selectonemenu label.ui-selectonemenu-label {
            padding-right: 28px;
            text-align: left;
        }
    </style>
    

    Edit: Oh whoops, I see this solution is very similar to akoskm’s comment. But I tried that at the time and text-align: right wasn’t working for me; only text-align: left was leaving the characters uncovered.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need help to embed a game into HTML, If I did replicate the
Possible Duplicate: How to Embed/Link binary data into a C++ DLL I need a
I need to embed a newline in a notification. I have two lines of
I embed iframe element in my HTML page: <iframe src=applet.html frameborder=0 style=width: 600px; height:
We need to embed a license file in the installation that is unique for
I need to embed json into html and in the #322 RailsCasts says the
I need to embed a vector graphical editor into my flash web app. A
I embed a text file into my Flex project and read its contents using
I used standard Youtube embed code like: <div style=width:100%; max-width:800px;> <iframe width=960 height=720 src=http://www.youtube.com/embed/VIDEO_ID
I have an object/embed on my page: <object type=application/x-shockwave-flash width=100% height={$height} id=chat_shell data=js/8wayrun/irc/lightIRC.swf?host={$server}{$params}{$extras}{$styles}> <param

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.