This week's giveaway is in the OCPJP forum.
We're giving away four copies of Practice Tests for OCP Java 17 Certification Exam (1Z0-829) and have Paul Anilprem on-line!
See this thread for details.
Win a copy of Practice Tests for OCP Java 17 Certification Exam (1Z0-829) this week in the OCPJP forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Scott Selikoff
Bartenders:
  • Piet Souris
  • Jj Roberts
  • fred rosenberger

How to fixed the length of the text for the h:outputText

 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Condition: The PanelGrid has one column and two rows. The width of the Panel Grid is 770px. Each row content a paragraph.When the UI is resize the text can wrap upto 500px, beyound this the text should not wrap.

Required: The text can wrap upto certain limit, e.g. upto 500px.

code snippet

<h anelGrid columns="1" styleClass="explanatoryText"
columnClasses="paragraph">
<h utputText id="explanatoryText1"
value="#{bundle.ExplanatoryText1}" />
<h utputText id="explanatoryText2"
value="#{bundle.ExplanatoryText2}" />
</h anelGrid>

Style class
.explanatoryText {
text-align: left;
font-weight: bold;
font-size: 9pt;
.paragraph {
text-align: left;
font-weight: bold;
font-size: 9pt;
width: 770px;

Is it possible to fixed the width of the Panel Grid upto which it can be minimize?
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic