This content has been marked as final.
Show 6 replies
-
1. Re: @Converter usage in ui example problem
pmuir Apr 19, 2007 12:58 PM (in response to supernovasoftware.com)I'm afraid that's a (fixed) bug in the example. Reference the converter as converter="newlineConverter"
-
2. Re: @Converter usage in ui example problem
supernovasoftware.com Apr 19, 2007 1:09 PM (in response to supernovasoftware.com)Worked like a charm. Thanks a million.
-
3. Re: @Converter usage in ui example problem
sammy8306 Apr 19, 2007 2:48 PM (in response to supernovasoftware.com)Can I ask how you use this converter? Afaik it only works when turning of escaping of the outputText tag? I'm having this problem myself, not wanting to turn of the escaping safety-net and still be able to handle newlines correctly..
-
4. Re: @Converter usage in ui example problem
supernovasoftware.com Apr 19, 2007 3:03 PM (in response to supernovasoftware.com)Use the converter posted previously and the code shown below.
<h:outputText escape="false" value="#{messageL.text}" converter="newlineConverter"/>
-
5. Re: @Converter usage in ui example problem
supernovasoftware.com Apr 19, 2007 3:06 PM (in response to supernovasoftware.com)Sorry I missed the part out the output dissable.
I used to use a tag, but I like this better. -
6. Re: @Converter usage in ui example problem
sammy8306 Apr 19, 2007 3:16 PM (in response to supernovasoftware.com)Right, but that way I loose all the protection provided by outputText, and all I want to is handle the friggin' newlines... if only the convertor could be applied after the escaping.