formating text

Hi,i would like to make possible that one can format its text in a textArea. for insatance one should be able to write italics , boldor making tables.How can i make this possible. Thanks
[229 byte] By [hamidagaa] at [2007-11-26 15:55:57]
# 1

Use CSS to do this.

<td>

<h:inputTextarea styleClass="areaClass" id="reason" tabindex="4" value=""/>

</td>

and in the CSS have the areaClass as:

.areaClass{

font-weight: bold;

font-size: x-large;

}

Illua at 2007-7-8 22:16:44 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
> make possible that one can format its text I guess he is looking for an WYSIWYG editor.Seach on google to "wysiwyg html editor" or so. There are lots of Javascript-based examples. FckEditor is a good and highly customizeable one.
BalusCa at 2007-7-8 22:16:44 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
thanks for replies!yes i'm looking for wysiwyg, but i did not know that it's called "wysiwyg" ,now i'm a bit smarter.will post here what i could found.
hamidagaa at 2007-7-8 22:16:44 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4

hello,

I use the tiny_mce wysiwyg editor and here it is decribed how you can use it with

jsf: http://wiki.apache.org/myfaces/WYSIWYG_Editor

it works very well, but I get this for example from db:

<h1>gf<font color="#ff0000">ffff</font></h1>

ff<strong>ffffff</strong>

and not the formated text.

How can i get the formated text without html tags?

thanks

hamidagaa at 2007-7-8 22:16:44 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 5
can i use <f:verbatin> to formatk correctly?
hamidagaa at 2007-7-8 22:16:44 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 6
Hello,I solved my problem.nMaybe that can hepl someone else!You have to put escape="false" and be carefull you have to do it explicity because the default is true!!<h:outputText value="#{YOUR Text}"
hamidagaa at 2007-7-8 22:16:44 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...