• 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 ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
  • Mikalai Zaikin

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

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"
<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?
    Bookmark Topic Watch Topic
  • New Topic