[jboss-user] [JBoss Seam] - How can I output my html snippet from database in seam ? all
5day
do-not-reply at jboss.com
Fri Oct 26 11:34:29 EDT 2007
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#4099362
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4099362
More information about the jboss-user
mailing list