Return-Path: Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: (qmail 575 invoked from network); 22 Feb 2010 17:46:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 22 Feb 2010 17:46:23 -0000 Received: (qmail 18839 invoked by uid 500); 22 Feb 2010 17:46:22 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 18761 invoked by uid 500); 22 Feb 2010 17:46:22 -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 18736 invoked by uid 99); 22 Feb 2010 17:46:22 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Feb 2010 17:46:22 +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 sethfromaustria@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; Mon, 22 Feb 2010 17:46:14 +0000 Received: by bwz6 with SMTP id 6so2240457bwz.36 for ; Mon, 22 Feb 2010 09:45:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to :content-type; bh=sxuvaUwp2nkfYVwZPohykRvoHq27q/GCaeb1wob2Gsk=; b=Asy0rDp5mnTK+1/h6QKYc2Huhl1beoWaMv67YtIpyDwj351lsey1oqYiNbr1fkFv0R lJNRjUyl/osUrmLKLdQ/2fnqoCl+FRoRarlcKLGBH2S6hkBwytR7waLoGhIwmSgD8KaB L+l448URbKqPEAH5cKvdGkkztH+VJaIEFNZ+0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; b=EjqKkEqGzA8Ooxrbyn4Y+39R7MIewxj7gFXcLgzduGigWcpGOEO9fStW3rBn+kDOoF IBI5C0lunKMVp5VWnETA4K26+x4Xh8rOwTXHkfNAjhr3id4s0XFUm3UmuP9dMYZFK3Gd 96ydL9cvBD/1VAHJfXAH2yf81lY2K2/zSpRgI= MIME-Version: 1.0 Sender: sethfromaustria@gmail.com Received: by 10.102.209.25 with SMTP id h25mr1879537mug.70.1266860753057; Mon, 22 Feb 2010 09:45:53 -0800 (PST) In-Reply-To: <27690198.post@talk.nabble.com> References: <27690198.post@talk.nabble.com> Date: Mon, 22 Feb 2010 18:45:52 +0100 X-Google-Sender-Auth: 43295218a1ca57d1 Message-ID: Subject: Re: How to elegantly replace line breaks with
tag? From: Jakob Korherr To: MyFaces Discussion Content-Type: multipart/alternative; boundary=00163642699d2a78e804803401c1 --00163642699d2a78e804803401c1 Content-Type: text/plain; charset=UTF-8 Hi, You can provide a special getter method in your managed bean for that (something like getResultWithLineBreaks()) and replace "\n" with "
" in the return value of method. Then you have to change your t:outputText component to: Regards, Jakob 2010/2/22 laredotornado > > 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. > > --00163642699d2a78e804803401c1--