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

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