getRowData() returns wrong row if preserveDataModel="true"
----------------------------------------------------------
Key: TOMAHAWK-617
URL: http://issues.apache.org/jira/browse/TOMAHAWK-617
Project: MyFaces Tomahawk
Issue Type: Bug
Components: Extended Datatable
Affects Versions: 1.1.3
Environment: Windows XP Professional
JBoss 4.03 SP1
Tomahawk and MyFaces Version 1.13
Reporter: Tom Innes
getWowData is always returning current * rows parameter value. For intance if
on the datatable the "rows" attribute was set to 10 and I was on the first
page, then regardless of what edit Link i clicked on I would be editting the
10'th record. If I had a page of data that did not have 10 records then I would
get
Caused by: java.lang.IllegalArgumentException: row is unavailable
at javax.faces.model.ListDataModel.getRowData(ListDataModel.java:63)
at test.CarFormController.edit(CarFormController.java:13)
I can provide an example if one is required.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira