cocoon-docs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [DAISY] Updated: Selection lists
Date Mon, 21 Apr 2008 20:10:50 GMT
A document has been updated:

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


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:</p>
+++ retrieve the content of the selection list each time it needs it or one per
+++ request, add an attribute called "<tt>cache</tt>" with value "<tt>none</tt>"
+++ "<tt>request</tt>" respectively, for example:</p>
    <pre>&lt;fd:datatype base="string"/&gt;
--- &lt;fd:selection-list src="cocoon:/mychoices.xml" dynamic="true"/&gt;</pre>
+++ &lt;fd:selection-list src="cocoon:/mychoices.xml" cache="none"/&gt;</pre>
+++ <p class="note">In the past function of the <tt>@cache</tt> attribute
has been
+++ served by <tt>@dynamic</tt> but the later has been deprecated in favour of
+++ former. See commit
+++ <a href=";revision=179906">r179906</a>.
+++ p, li { white-space: pre-wrap;</p>
    <p>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)

View raw message