Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
tomahawk 1.1.7
myfaces-core-1.1.6
Description
I'm using a HashMap to reserve the form values.
The search result is a type of ArrayList. It is needed to edit the search result and then save them to database and redisplay the datatable.
But when redisplay the datatable, I found that the Status was not saved. It only dispaly ONE ROW in the datatable.
I trace the source and found the following source in AbstractHtmlDataTable.java:
// Method Name: updateModelFromPreservedDataModel
517 if (lst!= null && lst.size() > 0)
518
At the row 519, the ArrayList was constrained to ONE RECORD Array.
I changed the source as following, and it works fine.
517 if (lst!= null && lst.size() > 0)
518
I don't know why it was restraned to one record array,
But perhaps reduce the restrains may make myfaces more flexible.
thanks a lot in advance.
Attachments
Attachments
Issue Links
- duplicates
-
TOMAHAWK-1537 t:datatable updateModelFromPreservedDataModel does not take into account vb.getType could not return the right type
- Closed