Hi Jason,
Dev at weitling wrote:
I tried your tip as well as that from Grek (thanks, Grek :-)). Till
now I manage to get no error message and binding goes through my three
test entries as inserting some javascript code proved. But my <body>
is completely empty:
Jove, am i dumb... I forgot to enclose the repeater in a
ft:form-template. Now everything works fine as shown below :-)
bindings/test.xml:
<fb:repeater id="testRepeater" parent-path="." row-path="entrySet(.)">
<fb:identity>
<fb:value id="keyField" path="key"/>
</fb:identity>
<fb:on-bind>
<fb:value id="valueField" path="value"/>
</fb:on-bind>
</fb:repeater>
templates/test.xml:
<body>
<ft:repeater id="testRepeater">
<table>
<ft:repeater-rows>
<tr>
<td>
<ft:widget id="keyField"/>
</td>
<td>
<ft:widget id="valueField"/>
</td>
</tr>
</ft:repeater-rows>
</table>
</ft:repeater>
</body>
the flow:
var form = new Form("definitions/test.xml");
form.createBinding("bindings/test.xml");
var bean = new Packages.java.util.HashMap();
bean.put("de","deutsch");
bean.put("fr","francais");
bean.put("en","english");
form.load(bean);
form.showForm("templates/test.xml");
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]