I am using
JSF as a front-end technology for one of my project. My application works on
Tomcat web server. In my application, on one of page, I have to extract a data from database and have to display on the page.
I am extracting a data from database and populates it in the
java bean. I am using h: outputText While displaying data on the jsf page. My code is as follows
<h:outputText value="#{leg.transport}" styleClass="lightGray"/>
It works fine and displays data on the screen.
Problem is when data is too long in the database then all data gets displayed in one line. Horizontal scrollbar gets added to the page, as some of the data is of 1500 character length.
I will like to know the way of wrapping a text in the JSF. So that while displaying data on the page, I will wrap the text and page will display within the limit of browser.