textArea... bug?

Not sure what forum from what site I should post this in but since I'm using a c:out to populate a textArea I'm going to give it a shot here.

Simple code that I have is as follows.

<td colspan="6"><textarea name="report" rows="25"

style="width: 100%; hight: 100%; font-size: 8pt"><c:out

value="${sessionScope.OCCS99Form.report}" />

</textarea></td>

occasionally when the page is displayed the value that is shown inside the textarea is cut off. If I view the source everything is in the source. This only occurs in IE not FF. I know this is not a JSTL problem, but the only other forum I every get good answers from is devshed.

[828 byte] By [gmachamera] at [2007-10-2 11:41:35]
# 1

From what you are saying its not a JSP/JSTL issue, as the entire text gets transmitted into the source.

One obvious thing - in the style tag hight should be height .

You say the text is cut off.

Is this dependant on how much text is in there? ie won't display past a certain limit?

Maybe there is something in the text that IE interprets as closing the textarea tag?

evnafetsa at 2007-7-13 5:34:47 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

all of what you say makes sence.. but the problem is that it works half the time for the exact same data.I fixed the height and it still has the same problem.

The text that I have being returned is just

1\r\n2\r\n3\r\n.. etc. Just generating it and slapping it in the form.

When it fails it cuts off at 26 every time.

I've tried it using scriplets and it does the same thing... my only thought is that it must be an IE bug as it only occurs about half the time and does not occur in FF.

gmachamera at 2007-7-13 5:34:47 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3

>When it fails it cuts off at 26 every time.

Seeing rows=25 is too much of a coincidence.

Notice that you are specifying the height of the textarea in two ways. Once via the "rows" attribute, another via the height style.

Try removing one or the other, and seeing if the issue is still there.

Does it behave the same with a static HTML page?

Just save the source as a static HTML page, and access it directly.

If it is a browser bug, you should be able to reproduce it in static HTML.

Also try it in a standalone page with just a textarea. You are nesting it in a table. Maybe it is something from the table affecting it?

Most of this debugging with HTML is just trial and error. Try different things until it works.

Good luck,

evnafets

evnafetsa at 2007-7-13 5:34:47 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4
thanks. I'll give that a try when I get back to work tomorrow. I had already removed the height from the style attribute and it was still behaving the same way. Maybe the static html or removing it from the table will make something apparent.
gmachamera at 2007-7-13 5:34:47 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 5

hmmm if I do it in a stand alone HTML it does not cause a problem.

also if I move the row that contains the text area outside the table it renders fine every time....

The table that it is contained in has the following style sheet definition, if I remove the class from the table it renders fine?

height: 250px;

background-color: #f2f0e6;

width: 100%;

border: 1px solid black;

border-style: groove;

border-spacing: 0px;

border-collapse: collapse;

I'm at a loss, and I can't just move this outside of the table to make it work...

gmachamera at 2007-7-13 5:34:47 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...