http://jxls.sourceforge.net/images/grouping_template.png


http://jxls.sourceforge.net/samples/grouping_example.html
The Employee class looks like this.
public class Employee {
private String name;
private int age;
private Double payment;
private Double bonus;
// getters/setters
...}
jx:each(items="employees" groupBy="name" groupOrder="asc" lastCell="D6")
Since the var attribute is missing the default group name _group is used to refer to the grouped collection items


来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/381/viewspace-2824770/ ,如需转载,请注明出处,否则将追究法律责任。