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 8708209
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T04:04:19+00:00 2026-06-13T04:04:19+00:00

I have a dialog that contain <p:dialog id=sqlDialog widgetVar=sqlWidgetVar header=SQL width=800 position=center minimizable=true maximizable=true

  • 0

I have a dialog that contain

<p:dialog id="sqlDialog" 
          widgetVar="sqlWidgetVar"
          header="SQL" 
          width="800"
          position="center"
          minimizable="true"
          maximizable="true"
          appendToBody="true"
          dynamic="true">
    <h:outputText id="sql" 
                  escape="false" 
                  value="#{bean.sql}" 
                  style="color: green"/>
</p:dialog>

Since the text is very long I need to add a scroll option

How can I do it ?

Thanks

  • 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-13T04:04:20+00:00Added an answer on June 13, 2026 at 4:04 am

    Use CSS to make it a block element with fixed dimensions and an overflow.

    <h:outputText ... styleClass="sqlDialogText" />
    

    with

    .sqlDialogText {
        display: block;
        width: 600px; /* Optional, depends otherwise on parent. */
        height: 300px;
        overflow: auto;
        color: green;
    }
    

    Alternatively, just give the dialog a fixed height.

    <p:dialog ... height="300">
    

    Note that this has nothing to do with JSF. It’s just a HTML/CSS/JS code generator. The <h:outputText> generates a HTML <span> element. You just have to alter the CSS accordingly for the look’n’feel.

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

Sidebar

Related Questions

I have a dialog that I want to place within another dialog and position
I have simple dialog that contain 4 buttons. I want to change those 4
I have a custom Dialog that contains only a TextView to display some text
I have a small form that contains a jQuery UI dialog to ask for
I have a dialog that I show with <class>.ShowDialog() . It has an OK
I have a Dojo dialog that is opened when a user clicks on an
I have a jQuery dialog that appears and loads an external page. In that
I have a modal dialog that is created with the following: procedure TFormCompose.createParams(var Params:
i have a dialog box that opens on pageload for a site. script type=text/javascript>
I have a Login dialog that can create an alert dialog when the user

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.