Have you tried making Department implement Comparable? Anyway, I think
you'll need to implement your own GridDataSource for that and handle the
sorting yourself.
On Mon, 10 Dec 2012 07:49:38 -0200, karans <ske...@gmail.com> wrote:
public class Employee {
private int id;
private String employeeName;
private Department department;
}
public class Department {
private int id;
private String departmentName;
}
-----------------------------
ListEmployee.java
@Property
private Employee employee;
public List< Employee > getEmployees() {
return session.createCriteria(Employee.class).list();
}
ListEmployee.tml
<t:grid source="prop:employees" row=”prop:employee”></t:grid>
Department column is not sorting here, can anybody help how apply
sorting to
the department column in employee grid.
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/How-to-sort-Association-column-in-Grid-tp5718569.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org
--
Thiago H. de Paula Figueiredo
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org