seam - Default column for sorting in richfaces -


i have following environment: seam 2.2.0 ga default richfaces version.

how define default column (field) datatable sort records field? tried setting default value "sort" parameter in .page.xml file didn't help.

in addition, entitylist.java returns null when system.out.println(this.getordercolumn()); mean sorting happens @ client side? if so, why entitylist() called each time re-sort list? thank you

i think entitylist class must extend entityquery, can add these 2 lines in constructor of entitylist:

setordercolumn("yourentity.property"); setorderdirection("asc"); 

or add 1 line:

setorder("yourentity.property asc"); 

i know hard-coded, bad works. if has better way, please share us. thanks.


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -