Display text w/i Static Text Field

Running SJSC2.1 on XPHow can I get the text within a static text field to display on multiple lines.It works within a text area field - using "\n" but not a static text field. The text is fed from a database (Derby/Oracle)?Thanks...
[260 byte] By [farmboya] at [2007-11-27 1:45:58]
# 1
Use escape="false".
Ingmara at 2007-7-12 1:06:57 > top of Java-index,Development Tools,Java Tools...
# 2

Thank you so much for the reply...

Where would i put the "escape=false"

Loading the data into the database The text looks like this: "<whatever> first line\n second line\n third line\n <whatever>

where would i exter the "escape=false" text

can you please show me an example

Thanks

farmboya at 2007-7-12 1:06:57 > top of Java-index,Development Tools,Java Tools...
# 3

I need to be clearer...

The static text field is actually a table cell.. (table cell's default to static text fields)

When I drag a static text field to the design area it has an "escape" property which can be set to false (unchecked).

However, the table cell has no such escape field, at least I do not see one) to be set to false..Is there another place to do this...

Thanks

farmboya at 2007-7-12 1:06:57 > top of Java-index,Development Tools,Java Tools...
# 4

I have inserted: escape="false" as here:

<ui:tableColumn binding="#{Page1.tableColumn3}" headerText="Info" id="tableColumn3">

<ui:staticText binding="#{Page1.staticText5}" escape="false" id="staticText5" text="#{currentRow.value['CONTACT.CINFO']}"/>

There is no option in properties for table cells (static text)

Still the text is one long string..

However, looking at the source code after deployment shows newlines where they should be. Go Figure!

Could certainly use some help here..

Thanks

farmboya at 2007-7-12 1:06:57 > top of Java-index,Development Tools,Java Tools...
# 5

What is the HTML output?

Perhaps you need to replace the newlines with <br>. Or wrap the paragraphs with

. Also you can try html-tag <pre> (I haven't tried this yet) or CSS white-space:pre. The last works in Firefox but is supported by IE only partially, dependend on browser mode.

Ingmara at 2007-7-12 1:06:57 > top of Java-index,Development Tools,Java Tools...
# 6

I did use the

tag... and it works..

However, and these kind of things always have a however, when entering the data via a form directly to the database it will be kind of, what's a good word here, DUMB to ask users to enter a "

tag every time they want to start a new line.. (for the output display)

How can I get around this?

Thanks...

farmboya at 2007-7-12 1:06:57 > top of Java-index,Development Tools,Java Tools...
# 7
I don't understand your question. You spoke about <ui:staticText>. But this isn't an input component. Why do you not use Text Area (<ui:textArea>)?
Ingmara at 2007-7-12 1:06:57 > top of Java-index,Development Tools,Java Tools...