Hi friends
For showing list of object in the 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 . this is ObjectArrayDataProvider .
We can easily drag and drop this component into design page and then set 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 and then set array property with array person.
Now we can right click on the table component in the page and select Bind to data then select ObjectArrayDataProvider1 .
please insert your comment .
bye friends
For showing list of object in the 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 . this is ObjectArrayDataProvider .
We can easily drag and drop this component into design page and then set 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 and then set array property with array person.
Now we can right click on the table component in the page and select Bind to data then select ObjectArrayDataProvider1 .
please insert your comment .
bye friends
آقا به بلاگتون سر زدیم چیز زیادی نفهمیدیم ولی :D
coolzero