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/12/16 17:00:03 UTC

[WIKI-UPDATE] WoodyBinding Tue Dec 16 17:00:03 2003

Page: http://wiki.cocoondev.org/Wiki.jsp?page=WoodyBinding , version: 22 on Tue Dec 16 15:16:56 2003 by MarcPortier

+ |wb:*|common settings for all bindings|direction|none
+ !!wb:*/@direction
+ All Bindings share the ability to have the two distinct actions they provide (i.e. load and save) been enabled or disabled by setting the attribute direction to one of the following values:
+ 
+ ||value||load active?||save active?
+ |both(default)|yes|yes
+ |load|yes|no
+ |save|no|yes
+ 
+ The default value 'both' for this attribute makes its use optional.
+ 
+ ''NOTE: this setting replaces the @readonly attribute that was available only on selected bindings.''
+  
+ * direction (optional)
- * readonly (optional)
?     ^^  --

+ * direction (optional)
?   ++  ^^^

+ ''Note: the @readonly attribute supported in early versions of this binding has been replaced by the @direction attribute as supported now on all binding elements. ''
+ 
+ 
+ * direction (optional)
+ * row-path-insert (optional)
+ * direction (optional)
+ For both beans and XML documents there is an optional attribute row-path-insert which functions just like the row-path but is used for the nested on-insert-row binding (see below).  By default the row-path-insert just takes the value of the row-path. By explicitely setting them different one can exploit one of the following use cases:
+ * (1) use xpath-predicates in the row-path (note that you can not do that on the row-path-insert) 
+ * (2) save the inserted rows in a different target-node of the backend model.
+ 
+ * direction (optional)
+ ''Note:'' This binding is never active in the 'load' operation, so there is no need to specify the direction="save" to protect you model from being changed during load. 
+ 
- ''Attributes:'' none
?                -----

+ ''Attributes:''
+ * direction (optional)
- Deletes the current context node.
+ Deletes the current context node.  
?                                  ++

+ 
+ ''Note:'' This binding is never active in the 'load' operation, so there is no need to specify the direction="save" to protect you model from being changed during load. 
+ * direction (optional)
+ ''Note:'' This binding is never active in the 'load' operation, so there is no need to specify the direction="save" to protect you model from being changed during load. 
+ 
+ * direction (optional)
+ 
+ ''Note:'' This binding is never active in the 'load' operation, so there is no need to specify the direction="save" to protect you model from being changed during load. 
+ * direction (optional)
+ 
- * read-only
+ * direction (optional)
+ 
+ ''Notes:''
- The <wb:save-form> snippet should be ommitted if the "read-only" attribute is present.
?                                                         ^^^  --               ---  -

+ * The <wb:save-form> snippet should be ommitted if the "direction" attribute is set to "load".
? ++                                                      ++  ^^^                    ++++++++++

+ * The <wb:load-form> snippet should be ommitted if the "direction" attribute is set to "save".
+ * The @readonly attribute supported in early versions of this binding has been replaced by the @direction attribute as supported now on all binding elements. ''
+