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: Field widget
Date Sun, 23 Oct 2005 14:17:27 GMT
A document has been updated:

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

Document ID: 481
Branch: main
Language: default
Name: Field widget (unchanged)
Document Type: Cocoon Document (unchanged)
Updated on: 10/23/05 2:17:10 PM
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: 8481 bytes (previous version: 7219 bytes)
Content diff:
(58 equal lines skipped)
    need to create specific widgets for each possible combination: StringField,
    LongField, DateField, StringSelectionList, LongSelectionList, ...</p>
    
--- <h1>Configuration</h1>
+++ <h1>Definition</h1>
    
    <p>Configuration example:</p>
    
(92 equal lines skipped)
    case when you use flowscript. If you don't use flowscript you could store the
    form instance in e.g. the session.</p>
    
+++ <h1>Template</h1>
+++ 
+++ <p>A field widget is inserted in a template using the ft:widget tag:</p>
+++ 
+++ <pre>&lt;ft:widget id="..."/&gt;
+++ </pre>
+++ 
+++ <h1>Styling (default HTML XSL)</h1>
+++ 
+++ <p>If the field widget does not have a selection list, it will be rendered as
+++ simple input box. If the field widget does have a selection list, it will by
+++ default be rendered as a dropdown list. If the datatype of the field is date, a
+++ date-picker icon will be put next to the field.</p>
+++ 
+++ <p>To render the input field as a textarea:</p>
+++ 
+++ <pre>&lt;ft:widget id="..."&gt;
+++   &lt;fi:styling type="textarea"/&gt;
+++ &lt;/ft:widget&gt;
+++ </pre>
+++ 
+++ <p>To render the input field as a HTMLArea:</p>
+++ 
+++ <pre>&lt;ft:widget id="..."&gt;
+++   &lt;fi:styling type="htmlarea"/&gt;
+++ &lt;/ft:widget&gt;</pre>
+++ 
+++ <p>To render the selection lists as a listbox:</p>
+++ 
+++ <pre>&lt;ft:widget id="..."&gt;
+++   &lt;fi:styling list-type="listbox" list-size="5"/&gt;
+++ &lt;/ft:widget&gt;
+++ </pre>
+++ 
+++ <p>To render the selection list as radio buttons:</p>
+++ 
+++ <pre>&lt;ft:widget id="..."&gt;
+++   &lt;fi:styling list-type="radio"/&gt;
+++ &lt;/ft:widget&gt;
+++ </pre>
+++ 
+++ <p>To render the selection list as horizontal radio buttons:</p>
+++ 
+++ <pre>&lt;ft:widget id="..."&gt;
+++   &lt;fi:styling list-type="radio" list-orientation="horizontal"/&gt;
+++ &lt;/ft:widget&gt;</pre>
+++ 
    </body>
    </html>


Fields
======
no changes

Links
=====
no changes

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

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

Mime
View raw message