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!

Dynamic html append - InnerHTML like implementation for Adf components.

Jaykishan-OracleMay 12 2011 — edited May 12 2011
Hi,

I need to display html code on the jsff page which is set from backing bean.

I need to display some dynamic html code on jsff page. I am setting the html code in an attribute of requestMap which needs to be added and displayed on jsff page.

For example,
BackingBean
requestMap.put ("DetailText", "<p>This is sample text for description</p> <img src=\"test.png\">");

JSFF Page
<af:panelGroupLayout layout="vertical">
<af:outputText value ="#{requestScope.DetailText}"/>
</af:panelGroupLayout>


Above code is displaying hardcoded value / plain html code.

I need to do something like innerHTML style in adf components.

Is there any way to implement this? appreciating you help !!
This post has been answered by Frank Nimphius-Oracle on May 12 2011
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 9 2011
Added on May 12 2011
2 comments
517 views