I am having difficulties getting the horizontal scroll bar to work in a inputTextarea control in a java web applicaton. I have posted several questions on a few groups, and everybody seems to think the code should work. I am new to web apps. Tomcat 6.0 is the first server I have used with Netbeans 6.0. So I am unsure if this behavior is coding, or the webserver. I have tried several CSS class style properties, both in the XML, and also in the java code, to force the horizontal scrollbar to work. However, if the text goes beyond the edges of the textarea, the text wraps to the next line. Unless I set the white-space to nowrap, and then I get one long line of text with no line breaks. When I set the value of the text area, linebreaks in the java code are set using the \r\n. I tired <br>, but this text appears in the textarea. While my first guess would not be this, I am wondering if the problem lies in the way Tomcat interprets the Java web app and present it to the browsers. below is a sample of the xml code for the textarea, and also a sample of java code, where I also attempt to change the style of the textarea. Any help would be greatly appreciated!
<h:inputTextarea binding="#{RaceReport.txtRiderInfo}" id="txtRiderInfo" style="border-width: 2px; border-style: solid; font-family: 'Courier New','Courier',monospace; font-size: 12px; height: 75%; min-height: 400px; left: 24px; top: 144px; position: absolute; width: 96%; min-width: 400px; margin-right: 7500px; overflow-x: scroll"/> txtRiderInfo.setStyle("white-space: normal; border-width: 2px; border-style: solid; font-family: 'Courier New','Courier',monospace; font-size: 12px; height: 75%; min-height: 400px; left: 24px; top: 144px; position: absolute; width: 96%; min-width: 400px; margin-right: 7500px"); The text gets created like this: txtRiderInfo.setValue("Race Results Report.\r\nAll Total Elapsed Times Are Based From The Start Of The First Heat.\r\n\r\n"); Thanks for your time Ryan ____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]