Return-Path: Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: (qmail 30422 invoked from network); 26 Feb 2010 15:49:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 26 Feb 2010 15:49:14 -0000 Received: (qmail 9571 invoked by uid 500); 26 Feb 2010 15:49:13 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 9529 invoked by uid 500); 26 Feb 2010 15:49:13 -0000 Mailing-List: contact users-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Discussion" Delivered-To: mailing list users@myfaces.apache.org Received: (qmail 9521 invoked by uid 99); 26 Feb 2010 15:49:13 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Feb 2010 15:49:13 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of antonio.jose.rodrigues@gmail.com designates 209.85.218.214 as permitted sender) Received: from [209.85.218.214] (HELO mail-bw0-f214.google.com) (209.85.218.214) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Feb 2010 15:49:05 +0000 Received: by bwz6 with SMTP id 6so214103bwz.36 for ; Fri, 26 Feb 2010 07:48:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=agW9NS2oXSjZOTqPJvt2FcwSfEX/4zHeN2FvV9ocIU4=; b=whsuBxsLwsrfhHjYLv7MrtSS5AySSgg8BMHP9LFEWjMu1vQTEInoVGa74V7Xwon84P 075RDWKVoNn1faTsDu3VVg+aLV73ISQqs+FyxdiSb0iN7YITCAOVON7VSEIz9aO78xx7 XPxwh/I07LCfUadHcdJKI/M+eoXdms5o1JiSo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=hvvFcPN0VlJox2X69J10oG5H8qe5hL0NHH3H/faFZ8lPLr5CEeXxj4e4lCz5J0yrt/ 8rGLCC8RjMZSXFTRKRboqhTpNWcfbA1KKeAnzIPLmUOCEHodavLI4/TwvsvTsSlfC8gm xNqQvY7hX6K0It2qJqSYebmdk6WhUNZsb0gHM= MIME-Version: 1.0 Received: by 10.204.6.203 with SMTP id a11mr432878bka.33.1267199324406; Fri, 26 Feb 2010 07:48:44 -0800 (PST) In-Reply-To: <27690198.post@talk.nabble.com> References: <27690198.post@talk.nabble.com> Date: Fri, 26 Feb 2010 16:48:44 +0100 Message-ID: Subject: Re: How to elegantly replace line breaks with
tag? From: =?UTF-8?Q?Ant=C3=B3nio_Rodrigues?= To: MyFaces Discussion Content-Type: multipart/alternative; boundary=0015175884b69743fa048082d586 --0015175884b69743fa048082d586 Content-Type: text/plain; charset=UTF-8 I add that problem also because I wanted to display the text exactly as it was entered in a text area. You can create a custom converter and then add it to the components where you want to use it. But the most elegant way is to create a facelet. This is what I did. - I have created a custom converter that converts \n into
and spaces into   - I have created a facelet as follows. So when I want a paragraph I just use the facelet tag Cheers AJCR On 22 February 2010 17:45, laredotornado wrote: > > Hi, > > I'm using MyFaces 1.1.5 with Tomahawk 1.1.7 (Java 1.5, Resin, 3.0.19). Is > there a way in JSF where I can replace the "\n" (chr(13) carriage return > character) with the "
" tag in my outputText block? Right now I have > > > > Thanks, - Dave > -- > View this message in context: > http://old.nabble.com/How-to-elegantly-replace-line-breaks-with-%3CBR%3E-tag--tp27690198p27690198.html > Sent from the MyFaces - Users mailing list archive at Nabble.com. > > --0015175884b69743fa048082d586--