My own renderer: How to convert special characters (e.g.: "<" into "& lt;")

Hi,

I have developed my own component. But I have a problem with my renderer if the value of my component contains special characters like e.g. umlauts (?e) or angle bracket ("<" and ">"). If my value contains one of these special characters my renderer does not convert them into valid XHTML code.

Must I implement a converter by my own? Or is there are a class that have this functionality already. I have seen that standard components like outputLabel converts special characters into valid XHTML code automatically.

Is there a way to add this functionality to my renderer. I hope I do not have to write my own converter because there are hundreds of special characters.

Regards

Martin

[731 byte] By [mwinandya] at [2007-11-27 7:48:36]
# 1
The solution is very simple. I have to usewriter.writeText(value, "myattribute");instead ofwriter.write(value);I do not know why I needed hours to get it :(
mwinandya at 2007-7-12 19:29:28 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...