Last modified by Pascal Robert on 2012/07/19 21:09

From version 21.1
edited by Pascal Robert
on 2012/07/19 21:09
Change comment: Migrated to Confluence 5.3
To version 21.2
edited by Pascal Robert
on 2023/11/13 11:56
Change comment: Updated the relative links.

Summary

Details

Page properties
Content
... ... @@ -50,7 +50,7 @@
50 50  
51 51  {{/code}}
52 52  
53 -This same pattern is used for [[Stateless WOComponents>>doc:Development-Stateless Components]]. WODynamicElement can provide a .api file to describe its bindings. For more information on .api files, see the .API File section below.
53 +This same pattern is used for [[Stateless WOComponents>>doc:documentation.Development-Stateless Components]]. WODynamicElement can provide a .api file to describe its bindings. For more information on .api files, see the .API File section below.
54 54  
55 55  === WOComponents ===
56 56  
... ... @@ -118,7 +118,7 @@
118 118  
119 119  {{/code}}
120 120  
121 -which would bind the zipcode of the address of the person in your sesson to value. Even more interesting are the NSArray operations that Foundation provides. For instance, if your session had a {{code language="none"}}public NSArray purchaseAmounts(){{/code}} that returned an array of {{code language="none"}}BigDecimal{{/code}}-s, you could refer to the binding {{code language="none"}}value = session.purchaseAmounts.@sum{{/code}}, which would return the sum of the values of the array. There are several other Array operations available in the Foundation classes, and Project Wonder provides even more in its [[ERXArrayUtilities>>doc:WOnder-ERXArrayUtilities]] class. For even more advanced KVC capabilities, read the [[WOOgnl>>doc:WOOgnl Framework]] section of Project Wonder.
121 +which would bind the zipcode of the address of the person in your sesson to value. Even more interesting are the NSArray operations that Foundation provides. For instance, if your session had a {{code language="none"}}public NSArray purchaseAmounts(){{/code}} that returned an array of {{code language="none"}}BigDecimal{{/code}}-s, you could refer to the binding {{code language="none"}}value = session.purchaseAmounts.@sum{{/code}}, which would return the sum of the values of the array. There are several other Array operations available in the Foundation classes, and Project Wonder provides even more in its [[ERXArrayUtilities>>doc:documentation.WOnder-ERXArrayUtilities]] class. For even more advanced KVC capabilities, read the [[WOOgnl>>doc:documentation.WOOgnl Framework]] section of Project Wonder.
122 122  
123 123  A single WOD entry can contain several binding declarations, and a WOD file can contain many entries. For example, here is an excerpt from a real WOD file:
124 124