---------------------------------------------------------------------------
HARBOR: http://coolharbor.100free.com/index.htm
The most powerful application server on earth.
The only real POJO Application Server.
Making the Java dream come true.
---------------------------------------------------------------------------
I think the attribute is
wrap="off"
I dont use JSF so wont be much help
other than saying, Tomcat supports tags, but on top of that there are lots
of frameworks and if you are using VWP and JSF, its best to ask the people
that made that framework... ie NB user group or SUN
Essentially all the special tag does is call a bunch of libraries that the
framework.
Remember that all the tags have to become HTML for the browser to handle so
if the documentation in the framework sucks... googling for the HTML equiv,
in this case Textarea will set you right.
Personally I like good old fashioned HTML and a dash of CSS.
That VWP... which is Suns JSF gets very slow very quick... I feel.
... what I do sometimes do is use the NB VWP tool to layout a page, render
it and then steal the style sheets and HTML and just plonk that into a HTML
editor...
Thing I dont like about these total frameworks as that once you commit,
thats it, cant have one guy on Frontpage, another on DreamW and then slap a
site together... its VWP (JSF) or nothing.
And then whats happening to you could be a real problem, ie the framework
wont allow the attribute, thats when you start rendering and stealing HTML
;)
Good Luck
----- Original Message -----
From: "Ryan Fleming" <[EMAIL PROTECTED]>
To: <users@tomcat.apache.org>
Sent: Wednesday, April 16, 2008 5:37 AM
Subject: Textarea Horizontal Scroll Bar Problems
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]
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]