Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 7384 invoked from network); 1 Aug 2006 15:50:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 1 Aug 2006 15:50:20 -0000 Received: (qmail 97630 invoked by uid 500); 1 Aug 2006 15:50:14 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 97552 invoked by uid 500); 1 Aug 2006 15:50:14 -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 List-Id: Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 97538 invoked by uid 99); 1 Aug 2006 15:50:14 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Aug 2006 08:50:14 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [84.96.21.10] (HELO trinity.anyware-tech.com) (84.96.21.10) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Aug 2006 08:50:13 -0700 Received: from localhost (localhost [127.0.0.1]) by trinity.anyware-tech.com (Postfix) with ESMTP id F283F400074 for ; Tue, 1 Aug 2006 17:49:50 +0200 (CEST) Received: from trinity.anyware-tech.com ([127.0.0.1]) by localhost (trinity.anyware-tech.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 32405-08-2 for ; Tue, 1 Aug 2006 17:49:50 +0200 (CEST) Received: from [192.168.0.102] (unknown [84.5.239.202]) by trinity.anyware-tech.com (Postfix) with ESMTP id D6B454005EF for ; Tue, 1 Aug 2006 17:49:44 +0200 (CEST) Message-ID: <44CF781C.3000506@apache.org> Date: Tue, 01 Aug 2006 17:49:48 +0200 From: Sylvain Wallez User-Agent: Thunderbird 1.5.0.5 (Macintosh/20060719) MIME-Version: 1.0 To: dev@cocoon.apache.org Subject: Re: [CForms] Streaming out widget attributes? References: <44CF760C.1010408@apache.org> In-Reply-To: <44CF760C.1010408@apache.org> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Debian amavisd-new at anyware-tech.com X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Carsten Ziegeler wrote: > Hi, > > I'm currently looking into a way of getting information for a widget in > my template that has been defined in the model. But it seems to me that > this is not possible right now. > Is anyone against streaming out all attributes of a widget in the > generateSaxFragment() method? As attributes are not used frequently I > think this shouldn't create problems. > This *will* create problems, as attributes can be of any type, and not just Strings (although only Strings can be specified in the widget's definition). Now if you're using JXTemplate, you can directly access attribute values with ${widget.getAttribute('foo')}. Sylvain -- Sylvain Wallez - http://bluxte.net