Skip to Content
0
Former Member
Feb 12, 2010 at 02:51 PM

FormattedTextEdit Problem

14 Views

Hi everyone,

In my Web Dynpro application I try to create a FormattedText from a String containing HTML Code:

My Input String kommentarFormatted is:

<table><tr><td>Test </td><td> testing </td><td>  Test</td></tr></table>

This String should be displayed in a FormattedTextView UI Element by using the WDFormattedTextFactory Class.

IWDFormattedText formtext = WDFormattedTextFactory.valueOf(kommentarFormatted);
wdContext.currentContextElement().setTempFormattedKommentar(formtext);

The Attribute tempFormattedKommentar is of type FormattedText.

But the Result displayed in the FormattedTextView is: TesttestingTest

All HTML Tags are cleared.

Do I need additional tags to make the UI Element accept the input?

Best regards,

Olaf