About paged table

I am using PagedTable Add-on for displaying data in a table.
I am putting all the code for creating a pagedtable and adding data to that table in a method and returning pagedtable from that method.
i am adding this method to a verticalLayout.
It is showing only 1st page data.It is creating controls for navigation to nextpage,but not showing the data.

How to overcome this problem?
can any one help me out.

thanks&regards

Vamshi