Re: html text as model

2009-04-22 Thread Jeremy Thomerson
On your label: setEscapeModelStrings(false)

--
Jeremy Thomerson
http://www.wickettraining.com



On Wed, Apr 22, 2009 at 11:24 AM, tubin gen  wrote:

> I have text area   with tinynmce behaviour, so any text  saved from this
> textarea will contain html tags to retain format of the text.Now in other
> pages I want to display this text as read-only  , for which i get the
> string
> comment text from database and set it to as  model to my  label ,  the
> problem is the comment text its getting displayed  as it is showing html
> tags and browser is not parsing them ,
>
> for example
>
> add(new Label("comments",new Model(TinyMCE is a platform
> independent web ));
>
> > once the page is rendered   I am expecting to see  this as  *TinyMCE is a
> > platform independent web*  and not   *TinyMCE is a platform
> independent
> > web   , *
>
> please tell me how to  resolve this.
>


html text as model

2009-04-22 Thread tubin gen
I have text area   with tinynmce behaviour, so any text  saved from this
textarea will contain html tags to retain format of the text.Now in other
pages I want to display this text as read-only  , for which i get the string
comment text from database and set it to as  model to my  label ,  the
problem is the comment text its getting displayed  as it is showing html
tags and browser is not parsing them ,

for example

add(new Label("comments",new Model(TinyMCE is a platform
independent web ));

> once the page is rendered   I am expecting to see  this as  *TinyMCE is a
> platform independent web*  and not   *TinyMCE is a platform independent
> web   , *

please tell me how to  resolve this.