For showing list of object in a table component, best choose is ObjectListDataProvider component; like this sample.
But until now the ObjectListDataProvider component in the palette have not worked and we must write a class that extends ObjectListDataProvider .
But there is a component that can act return ObjectListDataProvider. That is ObjectArrayDataProvider.
We can easily drag and drop this component into design page and then set the array property .
For this propose first declare an array in the page :
private Entity.Person[] arrayPerson ;
public Person[] getArrayPerson()
{
return this.arrayPerson;
}
public void setArrayPerson(Person[] arrayPerson)
{
this.arrayPerson = arrayPerson;
}
Then drag and drop ObjectArrayDataProvider component into design page, then set the array property to arrayPerson.
Now we can right click on the table component, in the page and select Bind to data then select ObjectArrayDataProvider1 .