• Post Reply Bookmark Topic Watch Topic
  • New Topic

regarding line break

 
Arun Sudharsanam
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have an OutputText to be displayed dynamically from the database. If the number of characters are more the content goes out of the page border.
I am using trinidad tags in my application.
Can anyone tell me a way to wrap the text and bring the remaining to next line.
 
Justin Cobman
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i think you should replace all '\n' to <br/>
 
Arun Sudharsanam
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I dont use <br/> or '\n'.
The tag will be like this:
<trutputText value="agfjkashfjkahsdjkfhakdhfkahfkahkdlhaklghakuiwyei"/>
 
Tim Holloway
Bartender
Posts: 18408
58
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Probably the best thing to do is render the text in some sort of container like a DIV and use CSS to define how the text gets placed and wrapped.

Most of the time, you'd do this as an indirect attribute of some JSF function, such as the column class definition for a dataTable tag. If there's no suitable container JSF construct for what you're doing, you could wrap a div in JSF verbatim tags.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Ar Pdy",
Please check your private messages regarding an important administrative matter.
-Ben
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!