In the wwb table, the primitive properties appearas as non-sorteable
columns.
¿How can i fix that?
Example:
public class Dog implements Serializable {
private static final long serialVersionUID = 1L;
private String name;
private int age;
public String getName() {
return name;
}
public void setName(final String name) {
this.name = name;
}
public int getAge() {
return age;
}
public void setAge(final int age) {
this.age = age;
}
}
....Some Wicket component
List<Dog> dogs = new LinkedList<Dog>();
dogs.add(new Dog("Juan", 12));
dogs.add(new Dog("Pedro", 15));
BeanMetaData meta = new BeanMetaData(Dog.class, null, this,
null, true);
add(new BeanForm("wicketBean", dogs, meta));
Regards
Fernando