Return-Path: Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: (qmail 17947 invoked from network); 30 Mar 2011 11:16:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 30 Mar 2011 11:16:03 -0000 Received: (qmail 86156 invoked by uid 500); 30 Mar 2011 11:16:02 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 86084 invoked by uid 500); 30 Mar 2011 11:16:02 -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 86076 invoked by uid 99); 30 Mar 2011 11:16:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Mar 2011 11:16:02 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [94.126.18.32] (HELO compost.comerge.net) (94.126.18.32) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Mar 2011 11:15:54 +0000 Envelope-to: users@myfaces.apache.org Received: from cop.comerge.net ([62.12.140.99] helo=[192.168.168.194]) by compost.comerge.net with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1Q4tN7-0005pE-AS for users@myfaces.apache.org; Wed, 30 Mar 2011 13:15:33 +0200 Message-ID: <4D9310D5.2010909@comerge.net> Date: Wed, 30 Mar 2011 13:15:33 +0200 From: Beat Herlig User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.14) Gecko/20110223 Lightning/1.0b2 Thunderbird/3.1.8 MIME-Version: 1.0 To: users@myfaces.apache.org Subject: [Trinidad] HTML Code in Radio-Button Labels Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: bherlig@comerge.net Hi Everyone, I'm trying to get some HTML code into the label of my radio buttons. In my application, the labels of the radio buttons are quite long, so I want to - insert a
tag - decorate different parts with some tags (and later apply CSS). Normally I'd just set the "escape" attribute of the component to "false", but unfortunately it seems not to work when used with a component. And I can't use , as it doesn't support the "escape" attribute. Here's an excerpt from my code: > > > > > As I can't put angled brackets directly into the xhtml file (xml validation would fail), I'm using a method on the bean objects. In my example, this is simply: > public String getLabel() { > return "foo
bar"; > } Alas, the rendered code shows that the
tag was escaped, and the browser doesn't render a break. > > > > > >
> > >
> Can anyone confirm this behaviour, or is there something I've done wrong? Also: is there any other solution to get HTML code into the radio button labels (in general, not only a newline tag)? Thanks, Beat