Return-Path: Delivered-To: apmail-cocoon-docs-archive@www.apache.org Received: (qmail 59269 invoked from network); 23 Oct 2005 14:28:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 23 Oct 2005 14:28:03 -0000 Received: (qmail 20260 invoked by uid 500); 23 Oct 2005 14:28:02 -0000 Delivered-To: apmail-cocoon-docs-archive@cocoon.apache.org Received: (qmail 20107 invoked by uid 500); 23 Oct 2005 14:28:01 -0000 Mailing-List: contact docs-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: docs@cocoon.apache.org List-Id: Delivered-To: mailing list docs@cocoon.apache.org Received: (qmail 20096 invoked by uid 99); 23 Oct 2005 14:28:01 -0000 X-ASF-Spam-Status: No, hits=0.6 required=10.0 tests=NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [207.7.158.203] (HELO cocoon.zones.apache.org) (207.7.158.203) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 23 Oct 2005 07:28:01 -0700 Message-ID: <29976460.1130077427972.JavaMail.daisy@cocoon.zones.apache.org> Date: Sun, 23 Oct 2005 14:23:47 +0000 (GMT+00:00) From: daisy@cocoon.zones.apache.org To: docs@cocoon.apache.org Subject: [DAISY] Updated: booleanfield widget Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N A document has been updated: http://cocoon.zones.apache.org/daisy/documentation/482.html Document ID: 482 Branch: main Language: default Name: booleanfield widget (previously Cocoon Forms: booleanfield widget) Document Type: Cocoon Document (unchanged) Updated on: 10/23/05 2:23:37 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: 2294 bytes (previous version: 1643 bytes) Content diff: (16 equal lines skipped) It is either true or false. If you want tripples (true/false/none), use a normal field widget with a selection list.

---

Configuration

+++

Definition

<fd:booleanfield id="..." state="...">
      <fd:true-param-value>...</fd:true-param-value>
(15 equal lines skipped)
      </fd:attributes>
    </fd:booleanfield>
---

See field wiget for a description of the +++

See field widget for a description of the configuration options.

The optional element fd:true-param-value specifies the parameter value that indicates true. By default this is "true".

+++

Template

+++ +++

A booleanfield widget is inserted in a template using the ft:widget tag:

+++ +++
<ft:widget id="..."/>
+++ 
+++ +++

Styling (default HTML XSL)

+++ +++

A booleanfield is rendered as a checkbox. To make the checkbox user-friendly, +++ make sure the label of the checkbox is associated with the checkbox, so that the +++ user can also click the label to (de)select the checkbox:

+++ +++
<ft:widget id="someId"/> <label for="someId-input"><ft:widget-label id="someId"/></label>
+++ 
+++ +++

This is automatically taken care of when using the columns group layout as +++ explained here.

+++ Fields ====== no changes Links ===== no changes Custom Fields ============= no changes Collections =========== no changes