[DAISY] Updated: Selection lists
| Newsgroups | gmane.text.xml.cocoon.documentation |
|---|---|
| Message-ID | <[email protected]> |
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><fd:datatype base="string"/>
--- <fd:selection-list src="cocoon:/mychoices.xml" dynamic="true"/></pre>
+++ <fd:selection-list src="cocoon:/mychoices.xml" cache="none"/></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&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)