Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 93068 invoked from network); 28 Apr 2004 18:55:37 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 28 Apr 2004 18:55:37 -0000 Received: (qmail 10905 invoked by uid 500); 28 Apr 2004 18:55:25 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 10665 invoked by uid 500); 28 Apr 2004 18:55:23 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: dev@cocoon.apache.org Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 10652 invoked from network); 28 Apr 2004 18:55:23 -0000 Received: from unknown (HELO mout.perfora.net) (217.160.230.40) by daedalus.apache.org with SMTP; 28 Apr 2004 18:55:23 -0000 Received: from [217.160.230.50] (helo=smtp.perfora.net) by mout.perfora.net with esmtp (Exim 3.35 #1) id 1BIuDP-0005zF-00 for dev@cocoon.apache.org; Wed, 28 Apr 2004 14:55:27 -0400 Received: from [208.185.179.12] (helo=reverycodes.com) by smtp.perfora.net with asmtp (TLSv1:RC4-MD5:128) (Exim 3.35 #1) id 1BIuDP-000434-00 for dev@cocoon.apache.org; Wed, 28 Apr 2004 14:55:27 -0400 Message-ID: <408FFE18.9050904@reverycodes.com> Date: Wed, 28 Apr 2004 14:55:20 -0400 From: Vadim Gritsenko User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7b) Gecko/20040316 X-Accept-Language: en-us, en MIME-Version: 1.0 To: dev@cocoon.apache.org Subject: Re: fi:booleanfield[fi:styling/@type='output'] References: <1083013091.21555.47.camel@23.13 yum.ot yum In-Reply-To: <1083013091.21555.47.camel@23.13 yum.ot yum Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Bruno Dumon wrote: >I saw the following template in forms-field-styling.xsl: > > > > > > yes > > > no > > > > >And was wondering what people are using this for? Or how this can >possibly do something meaningful? > >The problem I see is that if a booleanfield is not present on the >request, it will always be reset to false. So I'd rather remove this >template then giving people the false impression this might work. > It worked just fine for all those pages were you just need to output value of the widget and don't need to read it. Also, this template works in combination with i18n: foo.bar. Vadim