on 12-22-2009 8:56 AM
Hi,
I have a data in HTML code. It is a full HTML code with the body, head, html.... Now in my Web DynPro i have a section whereby it displayed the message that store in the database table. In that column store all the HTML code. So now in my Web DynPro im using a TextEdit to display the message. It will showed all the HTML code in the TextEdit.
For example
<html>
<head>
</head>
<body>
<p>Testing</p>
</body>
</html>
Is it possible in Web DynPro to display the HTML just like a webpage? As it will convert the HTML code to a readable format.
Thanks.
Hi Adrian,
In case you have formatted text that you wish to be rendered on a Web Dynpro view (but not shown as is) then you should use the FormattedTextView UI element.
Follow these steps:
1. Insert a FormattedTextView element in your view.
2. To define the content of the FormattedTextView, select the text property of your FormattedTextView element and bind the text property to the context attribute which has your HTML content
When the application is run, the HTML will be shown as a web page.
Event onAction is triggered when the user clicks on a link (<a> tag) inside the FormattedTextView. The parameter contains the href attribute of the triggered link.
The TextEdit UI element will not serve your pupose. Hope this helps.
Best Regards,
Supriya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.