You are viewing a plain text version of this content. The canonical link for it is here.
Posted to docs@cocoon.apache.org by da...@cocoon.zones.apache.org on 2005/10/06 11:39:48 UTC

[DAISY] Updated: Cocoon Forms: output widget

A document has been updated:

http://cocoon.zones.apache.org/daisy/documentation/492.html

Document ID: 492
Branch: main
Language: default
Name: Cocoon Forms: output widget (unchanged)
Document Type: Document (unchanged)
Updated on: 10/6/05 9:39:39 AM
Updated by: Bruno Dumon

A new version has been created, state: publish

Parts
=====
Content
-------
This part has been updated.
Mime type: text/xml (unchanged)
File name:  (unchanged)
Size: 1515 bytes (previous version: 1430 bytes)
Content diff:
(9 equal lines skipped)
    case when using flowscript). An output widget does not perform any validation,
    it is always considered to be valid.</p>
    
--- <p class="note">It is likely that we'll add a generalized 'readonly' capability
--- to all widgets. When we do that, fd:output will become obsolete and can be
--- replaced by a 'readonly' field wiget. In the meantime you can safely use
--- fd:output since this change won't have much impact.</p>
+++ <p class="note">The same can now be achieved using the normal
+++ <a href="daisy:481">Field widget</a> and <a href="daisy:733">Widget States</a>.
+++ </p>
    
    <p><strong>Possible alternative:</strong> On each widget you can also store
    additional information (i.e. arbitrary Java objects) in attributes. See the Java
(2 equal lines skipped)
    
    <h1>Configuration</h1>
    
--- <pre>&lt;fd:output id="..."&gt;
+++ <pre>&lt;fd:output id="..." state="..."&gt;
      &lt;fd:label&gt;...&lt;/fd:label&gt;
      &lt;fd:help&gt;...&lt;/fd:help&gt;
      &lt;fd:hint&gt;...&lt;/fd:hint&gt;
+++   &lt;fd:initial-value&gt;...&lt;/fd:initial-value&gt;
      &lt;fd:datatype base="..."&gt;
         [...]
      &lt;/fd:datatype&gt;
+++   &lt;fd:on-create&gt;
+++     [...]
+++   &lt;/fd:on-create&gt;
+++   &lt;fd:attributes&gt;
+++     &lt;fd:attribute name="..." value="..."/&gt;
+++   &lt;/fd:attributes&gt;
    &lt;/fd:output&gt;</pre>
    
    <p>See <a href="daisy:481">field widget</a> for a description of the
(4 equal lines skipped)


Fields
======
no changes

Links
=====
no changes

Custom Fields
=============
no changes

Collections
===========
no changes