(a) your converter has to implement the Conveter interface
(b) if it does not require params you can simply create a converter
reference in the faces config xml file which would look like
<converter>
<converter-id>my.package.Nl2brConverter</converter-id>
<converter-class>my.package.Nl2brConverter</converter-class>
</converter>
(c) in your JSP use
<t:outputText converter"my.package.Nl2brConverter}"
value="#{someBean.someAttr}" />
(d) if you need to implement params you have to create a tag lib and
reference through it.
-----Original Message-----
From: Ondrej Svetlik [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 07, 2006 12:20 PM
To: MyFaces Discussion
Subject: Converter usage
Hello,
I want to implement converter that would convert "\n" to "<br />\n". I
already have the converter but no idea how to use it. Let's say, the
converter class is my.package.Nl2brConverter.
In my jsp I have
<t:outputText converter="#{my.package.Nl2brConverter}"
value="#{someBean.someAttr}" />
But it does nothing. The converter is not called so the value is not
converted. I found no example on the net, so I'm asking here.
Best regards
Ondrej Svetlik