sorting - Map java objects to dojo objects -
i have arraylist of java objects , need make table each row object. also, need able sort whole table based on 1 attribute of object. basically, sort on basis of each column.
i thinking of mapping arraylist of java objects array of dojo objects. then, sort them on client side.
another option sort on server side trying avoid provide better user experience.
what best way go this?
so question? how map java objects or approach better?
i think approach depend on few things, go client side sorting. using dojo store api might find easy way accomplish this.
however, when table consist out of large amount of data decrease performance (and user experience) when sorting, server side sorting might not bad either. since can cache arraylist somewhere sorting algorithm has executed once.
Comments
Post a Comment