You are viewing a plain text version of this content. The canonical link for it is here.
Posted to docs@cocoon.apache.org by st...@outerthought.org on 2003/11/02 17:00:05 UTC

[WIKI-UPDATE] WoodyFlowscriptAPI WoodyJavaAPI WoodyValidationRuleReference Woody Sun Nov 2 17:00:04 2003

Page: http://wiki.cocoondev.org/Wiki.jsp?page=WoodyFlowscriptAPI , version: 1 on Sun Nov  2 15:11:22 2003 by BrunoDumon

New page created:
+ For now, just some pointers to get you started:
+ 
+ General flowscript info:
+ * [Cocoon control flow|http://cocoon.apache.org/2.1/userdocs/flow/index.html]
+ 
+ Woody API:
+ * take a look at the included samples
+ * take a look at the [woody2.js source file|http://cvs.apache.org/viewcvs.cgi/*checkout*/cocoon-2.1/src/blocks/woody/java/org/apache/cocoon/woody/flow/javascript/woody2.js?rev=HEAD] which includes docs for the various methods
+ 


Page: http://wiki.cocoondev.org/Wiki.jsp?page=WoodyJavaAPI , version: 1 on Sun Nov  2 15:26:57 2003 by BrunoDumon

New page created:
+ For now, just some pointers to get you started:
+ 
+ !!!Actions
+ 
+ Take a look at the source code of the [MakeFormAction|http://cvs.apache.org/viewcvs.cgi/*checkout*/cocoon-2.1/src/blocks/woody/java/org/apache/cocoon/woody/acting/MakeFormAction.java?rev=HEAD] and [HandleFormSubmitAction|http://cvs.apache.org/viewcvs.cgi/*checkout*/cocoon-2.1/src/blocks/woody/java/org/apache/cocoon/woody/acting/HandleFormSubmitAction.java?rev=HEAD]. These show how to create a form instance and let it process a form submit.
+ 
+ Note that in contrast with e.g. flowscript, these actions work stateless: they don't store the form object serverside but rebuild it on each request (which is very fast BTW). When doing things this way, ValueChangedEvents will not work and output widgets will lose their value between requests. You can of course store the form in the session to solve this.
+ 
+ !!!Apples
+ 
+ The apples block contains sample code on how to do use the Woody binding from Java. See [BindingWoodyApple.java|http://cvs.apache.org/viewcvs.cgi/*checkout*/cocoon-2.1/src/blocks/apples/java/org/apache/cocoon/components/flow/apples/samples/BindingWoodyApple.java?rev=HEAD]
+ 


Page: http://wiki.cocoondev.org/Wiki.jsp?page=WoodyValidationRuleReference , version: 3 on Sun Nov  2 15:01:13 2003 by BrunoDumon

- Often the values that validation rules will check are specified as expressions. Woody use for this task the [xReporter expression interpreter|http://xreporter.cocoondev.org/en/expressions.html]
?                                                                                                   -----

+ Often the values that validation rules will check are specified as expressions. Woody uses for this the [xReporter expression interpreter|http://xreporter.cocoondev.org/en/expressions.html]
?                                                                                          +

- ||Validator||Allowed datatypes||
?                               --

+ ||Validator||Allowed datatypes
- |assert|all datatypes|
?                      -

+ |assert|all datatypes
- |email|string|
?              -

+ |email|string
- |length|string|
?               -

+ |length|string
- |mod10|string|
?              -

+ |mod10|string
- |range|integer, long, decimal|
?                              -

+ |range|integer, long, decimal
- |regexp|string|
?               -

+ |regexp|string
- |value-count|all datatypes as part of multivaluefield|
?                                                      -

+ |value-count|all datatypes as part of multivaluefield


Page: http://wiki.cocoondev.org/Wiki.jsp?page=Woody , version: 13 on Sun Nov  2 15:06:01 2003 by BrunoDumon

+ * API:
+ ** [Flowscript|WoodyFlowscriptAPI]
+ ** [Java|WoodyJavaAPI]