myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Myfaces Wiki] Update of "Working with auto sortable tables" by CatalinKormos
Date Thu, 27 Apr 2006 07:19:59 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Myfaces Wiki" for change notification.

The following page has been changed by CatalinKormos:
http://wiki.apache.org/myfaces/Working_with_auto_sortable_tables

------------------------------------------------------------------------------
  If sortable="true" the data table will do the following:
   1. wrapp the current model with a sortable one and make it the current model (this wrapper
model is provided by MyFaces)
   2. iterate over each column and wrapp the current content of the header facet with a command
sort header component
-  3. while iterating over each column, get the first output component child of the column
and find the property of the row object that is used to display the cell content, from it's
value attribute
+  3. while iterating over each column, get the first output component child of the column
and find the property of the row object that is used to display the cell content, from its
value attribute
   
  This would get the table into the same state as if you had specified the sort header for
each column's header facet. Then the sorting is handled in the sortable model. 
  
@@ -122, +122 @@

  #{car.color.type} => sort property is "color.type" or #{car.color[3]} => sort property
is "color[3]"
  }}}
  
- Another thing to note, it that if the value binding is composed from several expressions
using some kind of operators, only the first appearence of a property of the row object will
be taken. For example:
+ Another thing to note, it that if the value binding expression is composed from several
expressions using some kind of operators, only the first appearence of a property of the row
object will be taken. For example:
  
  {{{
  #{car.price + car.taxes} => the property taken is "price" and this will be used when
sorting

Mime
View raw message