How to Iterate a collection with ADF Binding
Hello,
I have a JSPX Page that has been generated automatically by Jdeveloper: "ADF Task Flow based on Human Task".
There is some pieces of my payload that doens't generated by default mode.
My payload is something like this:
<MultipleElement>
<ComplexElement1>
<string1></string1>
<string2></string2>
<string3></string3>
</ComplexElement1>
<ComplexElement2>
<string1></string1>
<string2></string2>
<string3></string3>
</ComplexElement2>
</MultipleElement>
Obs.: MultipleElement is a collection, *<xsd:element type="XXX" minOccurs="1" maxOccurs="unbounded"/>*
I don't understood yet, how to work with "bindings" elements generated automatically by Adf Faces.
This is a table that will show this part of above payload:
<af:table rows="#{bindings.MultipleElement.rangeSize}"
fetchSize="#{bindings.MultipleElement.rangeSize}"
emptyText="#{bindings.MultipleElement.viewable ? 'No data to display.' : 'Access Denied.'}"
var="row" rowBandingInterval="0"
value="#{bindings.MultipleElement.collectionModel}"
selectedRowKeys="#{bindings.MultipleElement.collectionModel.selectedRow}"
selectionListener="#{bindings.MultipleElement.collectionModel.makeCurrent}"
rowSelection="single" id="t4" width="100%">
<af:forEach items="#{bindings.MultipleElement.attributeDefs}" var="def">
<af:column headerText="#{bindings.MultipleElement.labels[def.name]}" sortable="true" sortProperty="#{def.name}" id="c3">
<af:outputText value="#{row[def.name]}" id="ot16"/>
</af:column>
</af:forEach>
</af:table>
When i run this code, an ADF Table appear that displays the message: "No data to display".
How does to show the elements of ComplexElements (strings elements of payload) inside of table ?
Thanks.