How to display HTML in content (OAF)

The Digital Space !!

Problem 1 : Some data in database has multiple spaces between words. But when that is rendered on page using message styled text, the multiple spaces between the words are trimmed to single space by default. But you want the number of spaces to be retained as it is.

Problem 2 : You have a varchar data which has some delimiter in between. When displaying it in page, you want the data to appear in multiple lines based on delimiter. ex: abc-deft-lmnop  should come in 3 lines : abc in one line,deft in one line and lmnop in one line.

Solution : Use OARawTextBean (item style : rawText). rawText bean renders the data as html code. hence your data can containg html tags in between to server your purpose.

Solution 1 : when fetching the data from database, fetch it as : select replace(column_name,’ ‘,’ ’) from dual
If you have multiple…

View original post 27 more words


About pacesettergraam

A good and realistic person

Posted on March 9, 2016, in Uncategorized. Bookmark the permalink. Leave a comment.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: