Start Datascroller not updating

Datascroller not updating

This is especially the case when your JSF page needs to work out whether the order is ascending or descending when the order is set to attribute, there is a risk of SQL injection since typically, the page is setting the value directly.

By having two values, an order key and a direction attribute, on the we can easily determine the active order and the direction.

These order key values can be mapped to actual model fields to prevent injection and also makes it easier for order by clauses that use multiple fields, as well as decoupling the ordering logic from the view.

With the standard , or with any HTML table, we have no way of sorting the data automatically.