cocoon-docs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From da...@cocoon.zones.apache.org
Subject [DAISY] Updated: Selection lists
Date Mon, 21 Apr 2008 20:10:50 GMT
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:</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>"
or
+++ "<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
the
+++ former. See commit
+++ <a href="http://svn.apache.org/viewvc?view=rev&amp;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)


Mime
View raw message