Return-Path: Delivered-To: apmail-cocoon-docs-archive@www.apache.org Received: (qmail 92450 invoked from network); 21 Apr 2008 20:11:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 Apr 2008 20:11:13 -0000 Received: (qmail 56602 invoked by uid 500); 21 Apr 2008 20:11:12 -0000 Delivered-To: apmail-cocoon-docs-archive@cocoon.apache.org Received: (qmail 56580 invoked by uid 500); 21 Apr 2008 20:11:12 -0000 Mailing-List: contact docs-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: docs@cocoon.apache.org List-Id: Delivered-To: mailing list docs@cocoon.apache.org Received: (qmail 56569 invoked by uid 99); 21 Apr 2008 20:11:12 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Apr 2008 13:11:12 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.67] (HELO cocoon.zones.apache.org) (140.211.11.67) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Apr 2008 20:10:37 +0000 Received: from cocoon.zones.apache.org (localhost [127.0.0.1]) by cocoon.zones.apache.org (8.13.8+Sun/8.13.8) with ESMTP id m3LKAob8019686 for ; Mon, 21 Apr 2008 20:10:50 GMT Message-ID: <25295600.1208808650521.JavaMail.daisy@cocoon.zones.apache.org> Date: Mon, 21 Apr 2008 20:10:50 +0000 (GMT+00:00) From: daisy@cocoon.zones.apache.org To: docs@cocoon.apache.org Subject: [DAISY] Updated: Selection lists Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org A document has been updated: http://cocoon.zones.apache.org/daisy/documentation/753.html Document ID: 753 Branch: main Language: default Name: Selection lists (unchanged) Document Type: Cocoon Document (unchanged) Updated on: 4/21/08 8:10:29 PM Updated by: Grzegorz Kossakowski A new version has been created, state: publish Parts ===== Content ------- This part has been updated. Mime type: text/xml (unchanged) File name: (unchanged) Size: 6696 bytes (previous version: 6334 bytes) Content diff: (43 equal lines skipped) then become part of the form definition, just like when you would have defined it inline. This has the consequence that if the XML produced by the source changes, you won't see the selection list changed. If you'd like CForms to --- retrieve the content of the selection list each time it needs it, add an --- attribute called "dynamic" with value "true", for example:

+++ retrieve the content of the selection list each time it needs it or one per +++ request, add an attribute called "cache" with value "none" or +++ "request" respectively, for example:

<fd:datatype base="string"/>
--- <fd:selection-list src="cocoon:/mychoices.xml" dynamic="true"/>
+++ <fd:selection-list src="cocoon:/mychoices.xml" cache="none"/> +++

In the past function of the @cache attribute has been +++ served by @dynamic but the later has been deprecated in favour of the +++ former. See commit +++ r179906. +++ p, li { white-space: pre-wrap;

+++

If the datatype is different from string, CForms will need to convert the string values that appear in the selection list to their object equivalent. This conversion is normally done using the same convertor as the datatype in which (102 equal lines skipped)