myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Heath Borders <heath.bord...@gmail.com>
Subject Re: problems with html embebed in a <f:verbatim>
Date Thu, 06 Jan 2005 22:35:01 GMT
On the <h:outputText /> tag there is an "escape" attribute.  This
escapes the String to be literally viewable in a browser.  Set
"escape" to false and it will render real HTML code.


On Thu, 6 Jan 2005 17:05:15 -0500, Sonia Garavito
<sonia.garavito@gmail.com> wrote:
> greetings
> actually i'm writing a code  where do i need to render an attribute
> from a backing bean that throws a string with html tags
> 
> //backinbean
> public class Bean  {
>         ...
>        private String page1 ="<table><tr><td>hello</td></tr></table>";
>        ...
> public String getPage1(){
>        return page1;
> }
> 
> //my page jsf
> 
> <h:form id="coordinateForm" >
> <f:verbatim escape="true">
> <h:outputText     id="pageLabel" value="#{bean.page1}"/>
> </f:verbatim>
> </h:form>
> 
> and the output I got is the code html is:
> <table><tr><td>hello</td></tr></table>
> I need to get this code rendered correctly, as a table with one row
> one column and the word hello.
> 
> i'll apreciate any help
> thanks
> Sonia Garavito
> 


-- 
-Heath Borders-Wing
hborders@mail.win.org

Mime
View raw message