cocoon-docs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stev...@outerthought.org
Subject [WIKI-UPDATE] WoodyValidationRuleReference WoodyBinding WoodyTemplateTransformer Thu Dec 11 15:00:06 2003
Date Thu, 11 Dec 2003 14:00:06 GMT
Page: http://wiki.cocoondev.org/Wiki.jsp?page=WoodyValidationRuleReference , version: 4 on
Thu Dec 11 13:50:51 2003 by 217.69.240.162

- Checks the length of strings. This validation rule can take 3 attributes: min, max and exact.
You can use either of these three seperately or min and max together. The values of these
attributes are expressions. Example:
?                                                                                        
                                           ^

+ Checks the length of strings. This validation rule can take 3 attributes: min, max and exact.
You can use either of these three separately or min and max together. The values of these
attributes are expressions. Example:
?                                                                                        
                                           ^

-    <wd:failmessage>Must be 4 4 characters long!</wd:failmessage>
?                           --

+    <wd:failmessage>Must be 4 characters long!</wd:failmessage>
- Checks the numeric range. This validation rule can take 3 attributes: min, max and exact.
You can use either of these three seperately or min and max together. The values of these
attributes are expressions. Example:
?                                                                                        
                                       ^

+ Checks the numeric range. This validation rule can take 3 attributes: min, max and exact.
You can use either of these three separately or min and max together. The values of these
attributes are expressions. Example:
?                                                                                        
                                       ^

- Checks that a string matches a regular expression. It requires a "pattern" attributes specifying
the regexp. The regular expression library used is Jakarta ORO, see [here|http://jakarta.apache.org/oro/api/org/apache/oro/text/regex/package-summary.html]
for some information. Example:
?                                                                                     -

+ Checks that a string matches a regular expression. It requires a "pattern" attribute specifying
the regexp. The regular expression library used is Jakarta ORO, see [here|http://jakarta.apache.org/oro/api/org/apache/oro/text/regex/package-summary.html]
for some information. Example:


Page: http://wiki.cocoondev.org/Wiki.jsp?page=WoodyBinding , version: 20 on Thu Dec 11 14:07:37
2003 by 217.69.240.162

- xmlns:wb=http://apache.org/cocoon/woody/binding/1.0
+ xmlns:wb="http://apache.org/cocoon/woody/binding/1.0"
?          +                                          +

- the __path__ attributes is the address items in the target object (a Javabean or an XML
document). The paths can be arbitrary JXPath expressions.
? ^

+ The __path__ attributes is the address items in the target object (a Javabean or an XML
document). The paths can be arbitrary JXPath expressions.
? ^



Page: http://wiki.cocoondev.org/Wiki.jsp?page=WoodyTemplateTransformer , version: 7 on Thu
Dec 11 13:58:55 2003 by 217.69.240.162

- The WoodyTemplateTransformer (simply "woody transformer" from now on) makes it possible
to define the layout for your form without having to write a seperate XSLT for each form.
If you prefer to do everything with XSLT, you have also the option of using the WoodyGenerator.
In general we recommend to use the woody transformer though.
?                                                                                        
                                                                ^

+ The WoodyTemplateTransformer (simply "woody transformer" from now on) makes it possible
to define the layout for your form without having to write a separate XSLT for each form.
If you prefer to do everything with XSLT, you have also the option of using the WoodyGenerator.
In general we recommend to use the woody transformer though.
?                                                                                        
                                                                ^

- The wt:repeater-widget element is similar to the wt:widget element but provides special
treatement for repeaters. The content of the wt:repeater-widget element will be used as a
template to generate each of the rows of the repeater.
?                                                                                        
     -

+ The wt:repeater-widget element is similar to the wt:widget element but provides special
treatment for repeaters. The content of the wt:repeater-widget element will be used as a template
to generate each of the rows of the repeater.
- The wt:repeater-widget-label element is used to retrieve the the label of a widget contained
by a repeater. It requires two attributes: id (identifying the repeater) and widget-id (identifying
the widget in the repeater).
?                                                        ----

+ The wt:repeater-widget-label element is used to retrieve the label of a widget contained
by a repeater. It requires two attributes: id (identifying the repeater) and widget-id (identifying
the widget in the repeater).



Mime
View raw message