cocoon-docs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stev...@outerthought.org
Subject [WIKI-UPDATE] WoodyReference XUL Fri Oct 31 09:00:04 2003
Date Fri, 31 Oct 2003 08:00:05 GMT
Page: http://wiki.cocoondev.org/Wiki.jsp?page=WoodyReference , version: 12 on Fri Oct 31 07:07:28
2003 by AntonioGallardo

- The __wd:label__ element contains the label for this widget. This element is optional. It
can contain mixed content. For internationalised labels, use i18n-tags in combination with
Cocoon's I18nTransformer.
+ The __wd:label__ element contains the label for this widget. This element is optional. It
can contain mixed content. For internationalised labels, use i18n-tags in combination with
Cocoon's [I18nTransformer|I18NTransformer].
?                                                                                        
                                                                                         
            +               +++++++++++++++++

- The __wd:hint__ element contains a hint for the form control of this widget. This element
is optional. It can contain a hint about the input control. For internationalised labels,
use i18n-tags in combination with Cocoon's I18nTransformer.
+ The __wd:hint__ element contains a hint for the form control of this widget. This element
is optional. It can contain a hint about the input control. For internationalised labels,
use i18n-tags in combination with Cocoon's [I18nTransformer|I18NTransformer].
?                                                                                        
                                                                                         
                                             +               +++++++++++++++++

- The __wd:help__ element contains more help for the form control of this widget. This element
is optional. It can contain text help about the input control. For internationalised labels,
use i18n-tags in combination with Cocoon's I18nTransformer.
+ The __wd:help__ element contains more help for the form control of this widget. This element
is optional. It can contain text help about the input control. For internationalised labels,
use i18n-tags in combination with Cocoon's [I18nTransformer|I18NTransformer].
?                                                                                        
                                                                                         
                                                   +               +++++++++++++++++

- The multivaluefield is similar to the field widget but can take multiple values. A multivaluefield
should always have a datatype with a selection list, since the user will have to select values
from this list. The multivaluefield could be rendered as a list of checkboxes or as a listbox
in which the user can select multiple items.
+ The __wd:multivaluefield__ is similar to the field widget but can take multiple values.
A multivaluefield should always have a __wd:datatype__ element with a selection list, since
the user will have to select values from this list. This the wd:multivaluefield could be rendered
as a list of checkboxes or as a listbox in which the user can select multiple items.
?     +++++               ++                                                             
                                       +++++        ++++++++++                           
                                                        +++++  +++

- A booleanfield is a field that has a value of true or false. Usually
+ A __wd:booleanfield__ is a field that has a value of true or false. Usually is rendered
as a checkbox.
?   +++++            ++                                                      +++++++++++++++++++++++++++

- rendered as a checkbox.
- A repeater widget is a widget that repeats a number of other widgets.
+ A __wd:repeater__ widget is a widget that repeats a number of other widgets.
?   +++++        ++

+ Note: the [WoodyTemplateTransformer] has specific support for specifying a template to use
to render each of the rows of a repeater widget. See the "Form1" example of Woody for an example
on how to use this.
- Note: the WoodyTemplateTransformer has specific support for specifying
- a template to use to render each of the rows of a repeater widget. See
- the "Form1" example of Woody for an example on how to use this.
- An output widget is similar to a field widget, but its value is not editable. The value
of an output widget must be set programmatically (or through [binding|WoodyBinding]). An output
widget does not read its value from the request, so is most useful in the case where the form
is stored accross requests (e.g. as part of a flowscript or flow-apple). An output widget
does not perform any validation, it is always considered to be valid.
+ An __wd:output__ widget is similar to a field widget, but its value is not editable. The
value of an output widget must be set programmatically (or through [binding|WoodyBinding]).
An output widget does not read its value from the request, so is most useful in the case where
the form is stored accross requests (e.g. as part of a flowscript or flow-apple). An output
widget does not perform any validation, it is always considered to be valid.
?    +++++      ++

- * aggregatefield: used to edit the value of multiple fields through one textbox
+ * __wd:aggregatefield__: used to edit the value of multiple fields through one textbox
?   +++++              ++

- * action: triggers an action event on the server side. Usually presented as a button the
user can press.
+ * __wd:action__: triggers an action event on the server side. Usually presented as a button
the user can press.
?   +++++      ++

- The base attribute refers to one of the built-in datatypes such as string or long.
+ The __base__ attribute refers to one of the built-in datatypes such as string or long.
?     ++    ++

- The validation element contains a number of child elements, each child element signifies
a validation rule. The supported validation rules are documented in a seperate section.
+ The __wd:validation__ element contains a number of child elements, each child element signifies
a validation rule. The supported validation rules are documented in a seperate section.
?     +++++          ++

- A datatype also needs a convertor. The purpose of a convertor is to convert between string
and object representations of values. There is always a default convertor, but you change
or configure that using the wd:convertor element. Here's an example for dates:
+ A datatype also needs a convertor. The purpose of a convertor is to convert between string
and object representations of values. There is always a default convertor, but you change
or configure that using the __wd:convertor__ element. Here's an example for dates:
?                                                                                        
                                                                                         
                               ++            ++

- The type attribute on the wd:convertor element is optional, if not specified the default
one will be used (configured in the cocoon.xconf). Any further content of the wd:convertor
element is specific to the convertor implementation and will be documented in a seperate section.
+ The __type__ attribute on the wd:convertor element is optional, if not specified the default
one will be used (configured in the cocoon.xconf). Any further content of the wd:convertor
element is specific to the convertor implementation and will be documented in a seperate section.
?     ++    ++

- !!string datatype
+ ||Woody Datatype||Java class||Convertors||
+ |string|{{java.lang.String}}|Strings obviously don't support any convertors, since there's
no purpose in converting a string to a string.|
+ |integer|{{java.lang.Integer}}|similar convertors as the decimal datatype (see below)|
+ |long|{{java.lang.Long}}|similar convertors as the decimal datatype (see below)|
+ |decimal|{{java.math.BigDecimal}}|formatting (decimal), plain|
+ |date|{{java.util.Date}}|formatting (date), millis
- The string datatype corresponds to the java.lang.String class.
- Strings obviously don't support any convertors, since there's no purpose in converting a
string to a string.
+ !!Convertors
- !!integer datatype
+ !formatting (decimal)
- The integer datatype corresponds to the {{java.lang.Integer}} class.
- 
- It has similar convertors as the decimal datatype (see below).
- 
- !!long datatype
- 
- The long datatype corresponds to the java.math.Long class.
- 
- It has similar convertors as the decimal datatype (see below).
- 
- !!decimal datatype
- 
- The decimal datatype corresponds to the java.math.BigDecimal class.
- 
- It supports the following convertors:
- 
- !formatting
- 
- This convertor uses the java.text.DecimalFormat class (or com.ibm.icu.text.DecimalFormat
class if it is present in the classpath). This means it can perform locale-dependent, pattern-based
formatting of numbers.
+ This convertor uses the {{java.text.DecimalFormat}} class (or {{com.ibm.icu.text.DecimalFormat}}
class if it is present in the classpath). This means it can perform locale-dependent, pattern-based
formatting of numbers.
?                         ++                       ++           ++                       
      ++

- !!date datatype
+ !!date convertors
- The date datatype corresponds to the java.util.Date class. This means it can be used both
for dates as times.
+ The date datatype can be used both for dates as times. The date datatype supports the following
convertors:
- The date datatype supports the following convertors:
+ !formatting (date)
- !formatting
- 
- This convertor uses the java.text.SimpleDateFormat class (or com.ibm.icu.text.SimpleDateFormat
class if it is present in the classpath). This means it can perform locale-dependent, pattern-based
formatting of dates.
+ This convertor uses the {{java.text.SimpleDateFormat}} class (or {{com.ibm.icu.text.SimpleDateFormat}}
class if it is present in the classpath). This means it can perform locale-dependent, pattern-based
formatting of dates.
?                         ++                          ++           ++                    
            ++



Page: http://wiki.cocoondev.org/Wiki.jsp?page=XUL , version: 6 on Fri Oct 31 07:46:19 2003
by ReinhardPoetz

- *[OT - XUL|http://nagoya.apache.org/eyebrowse/BrowseList?listName=cocoon-users@xml.apache.org&by=thread&from=521951]
+ *[OT - XUL|http://nagoya.apache.org/eyebrowse/BrowseList?listName=cocoon-users@xml.apache.org&by=thread&from=521951]
contains resources and many tips (incl. code samples) for developers
?                                                                                        
                            +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++




Mime
View raw message