I thought about something like I send the request to database and let database sort the data values.
I think it can be a bit faster then sorting in code.
so I think SortBy is not correct way.
how do you think?
I tried to implement DataModel, but something is wrong in my code:
I took the example from:
I attached my code.
the problem is that
The Methods update and walk work strange.
when in the method update some fields are setted, and then I go to walk-method, then these setted fields have still the old value, like the setter didnt work.
do you know this behavior?????
I try to set the attribute detached and sortField in the update method. but when I come to walk-method, they are not updated.
This is very strange behavior.
all attributes I setted or modified in the methode update have an old value in the method walk and other methods like getter and setter.
I tried to set this attributes into session. then I have the modified values also in other methods. but I think it is not a correct way.
does anybody know anithing about this update method.
1. On which point in lifecycle is this method called.
2. the method walk is called very often. in which cases is this method called?
I tried to set the value of attribute for column in the walk method, but on the page the changes were not shown.
just after the next table update were the changes shown.