JSF DataTable Pagination and valueChangeListener doubt

Hi

I have a datatable initialized to 50 rows initially. it is set to display 10 rows per page.

user can enter information in each row (initially these rows are blank). Wheneven the user enters a value in the first text field, i use valueChangeListener and populate that row.

Now, let's say after populating row 0, the user clicks on Page 2 (of the datatable) and enters another value in the text field at row 12. when i populate that row, i need to add it to 12th row of the DataTable's arraylist.

But, each time the datatable gives 10 rows and i get exception if i use arrayList.set(rowIndex, item)

How does the datatable work?

[668 byte] By [Seshu_Varanasia] at [2007-11-26 17:13:47]
# 1
any ideas on this?Initially are the rows are empty. user can populate as and when they want. So if they go to second page and make an entry, how to show that update in the second page ?
Seshu_Varanasia at 2007-7-8 23:41:45 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

Sorry.

it was a error on my side. every time i was getting just 10 rows like

for (i=0; i< dataTable.rows;i++)

instead, i needed to use for (i=0; i < (dataTable.getFirst+dataTable.rows);i++)

HTH someone else.

Thanks

Seshu_Varanasia at 2007-7-8 23:41:45 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...