Hi All

I am trying to get an aggregated field to work as part of a repeater-row.

Does anyone know if these work?
I get no <wi:value/> in the 'reference' widget.

model:

<wd:form
xmlns:wd="http://apache.org/cocoon/woody/definition/1.0";
xmlns:i18n="http://apache.org/cocoon/i18n/2.1";>
<wd:widgets>
. . .
<wd:repeater id="resources">
<wd:widgets>
. . .
<wd:aggregatefield id="reference" required="true">
<wd:label><i18n:text i18n:catalogue="local">label.artefact</i18n:text></wd:label>
<wd:split pattern="([0-9]*)/([0-9]*)">
<wd:map group="1" field="artefact"/>
<wd:map group="2" field="image"/>
</wd:split>
<wd:combine expression='Concat(artefact, "/", image)'/>
<wd:widgets>
<wd:field id="artefact"><wd:datatype base="string"/></wd:field>
<wd:field id="image"><wd:datatype base="string"/></wd:field>
</wd:widgets>
</wd:aggregatefield>
</wd:widgets>
. . .
</wd:repeater>
. . .
</wd:widgets>
</wd:form>

binding:

<wb:context xmlns:wb="http://apache.org/cocoon/woody/binding/1.0"; path="/" >
. . .
<wb:repeater id="resources"
parent-path="."
row-path="resources"
unique-row-id="sid"
unique-path="sid">
<wb:on-bind>
. . .
<wb:aggregate id="reference" path="." >
<wb:value id="artefact" path="artefact"/>
<wb:value id="image" path="image"/>
</wb:aggregate>
. . .
</wb:on-bind>
. . .
</wb:repeater>
</wb:context>

Thanks for any suggestions

regards Jeremy

Attachment: smime.p7s
Description: S/MIME cryptographic signature



Reply via email to