How to output formatted html String get from Bean
Hi, I need to put some formatted html string into jsp. But everything I tried was not working. Have anyone some ideas?
Details:
I have following jsf code...:
in place of [?] I want to "inject" content of variable #{model} (which is html string i.e. "<div id="1"> some text</div>")
<t:dataTable value="#{logEntriesBean.entries}"
var="model"
styleClass="table" id="entriesTabel">
<t:column id="fileNames">
[?]
</t:column>
</t:dataTable>
When I try something like it:
<t:div styleClass="portlet-section-body">
<jsp:useBean id="logEntriesBean" scope="request"
class="saaa.bbb.web.LogEntriesBean">
</jsp:useBean>
<%
java.util.List entries = logEntriesBean.getEntries();
if (entries !=null){
java.util.Iterator it = entries.iterator();
while(it.hasNext()){
String str = (String)it.next();
out.println(str);
}
}
%>
</t:div>
i get following error:
org.apache.myfaces.shared_impl.taglib.UIComponentBodyTagBase doEndTag Component with id '...' (...) and path : {...} renders it's children, but has embedded JSP or HTML code. Use the <f:verbatim> tag for nested HTML. For comments use <%/* */%> style JSP comments instead of <!-- --> style HTML comments.

