I'm newbie using seam.
I want to output my html snippet from database ,but all < and > become > and
<.
How can I replace > and < to < and > ?
MY backing bean is :
| import org.jboss.seam.annotations.Name;
| @Name("htmltest")
| public class Htmltest {
| public String g() {
| return
"<html><body><h1>testhtml</h1></body></html>";
| }
| }
|
and my xhtml is :
| <!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
| <ui:composition
xmlns="http://www.w3.org/1999/xhtml"
|
xmlns:ui="http://java.sun.com/jsf/facelets"
| template="layout/template.xhtml">
| <ui:define name="body">
| #{htmltest.g()}
| </ui:define>
| </ui:composition>
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4099362#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...