-1

I am using JSF for my application.

I have a dynamic string which act as a propert html tag combination data.That data is stored in my bean rulesBean. I can easily shown that bean's data as html elements using,

     <h:outputLabel escape="false" value="#{rulesBean.myData}"/>

But,above lines creates extra html tags i.e and put all bean data inside it.I dont want these extra wrapper tags.I just want to put whatevr i have in bean.So,i have to do like :

         #{rulesBean.myData}

But,this line shows the html values as it is as text.I want to convert that text into proper html layout with out adding extra wrapper.

How to achive that in JSF ?

4

1 回答 1

0

尝试这个...

<h:outputText escape="false" value="#{rulesBean.myData}" />

笔记。只要您使用任何“样式”属性,它就会在<span>

http://www.jsftoolbox.com/documentation/help/12-TagReference/html/h_outputText.html

于 2013-03-21T13:42:41.187 回答