June 2014
Intermediate to advanced
578 pages
12h 2m
English
Multiple selection is commonly achieved using groups of checkboxes. One of the most convenient approaches for multiple selections consists of using a special property for tracking the row selection status. This property can be named selected and it should be of type boolean (default false). You can define it in the POJO class as follows:
public class Players {
...
private boolean selected;
...
public boolean isSelected() {
return selected;
}
public void setSelected(boolean selected) {
this.selected = selected;
}
...If your POJO class is an entity class, then define this new property as transient, using the @Transient annotation or transient modifier. This annotation will tell JPA that this property doesn't participate ...
Read now
Unlock full access