Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to show whitespace formatted text?

Jai Om-OracleFeb 19 2014 — edited Feb 25 2014

Hello,

I am using Jdev 11.1.1.6.0 with ADF Faces.

I have a requirement to show a text report on page in the saved format. The text report is saved as multi-record text report with each row containing maximum 78 chars.

Each record is formatted with whitespace to show column data. For example:

                                   SUMMARY

                                   -------

Col1          Col2          Col3

xyz1234       abc9999       mno1234

...

This report data is currently appearing unformatted. It removes the whitespace and just shows with some default spaces. Something like:

SUMMARY

-------

Col1 Col2 Col3

xyz1234  abc9999  mno1234

...

So, you can't read data with proper column heading. If you query the table in SQL Developer, it shows with perfect formatting. Also our legacy Oracle Forms application used to display with proper format.

Currently, I have tried following but it is not working:

<af:outputText value="#{row.rptText}" id="ot1"

                      inlineStyle="font-family:'Courier New'; font-size:12.0pt;"

                      noWrap="false"/>

I tried this on af:column also, specially noWrap="false" but no luck so far.

Any help is highly appreciated.

Thanks,

Jai

This post has been answered by Timo Hahn on Feb 19 2014
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 25 2014
Added on Feb 19 2014
7 comments
5,177 views