package testcode; import javax.faces.model.SelectItem; public class Test { public Test() { } boolean dsb= true; boolean checkbox = true; public SelectItem getSiTRUE() { return new SelectItem(Boolean.TRUE, "test"); } public void setDsb(final Boolean[] values) { this.dsb = values != null && values.length != 0; } public Boolean[] getDsb() { return !this.dsb ? null : new Boolean[] { Boolean.TRUE }; } public boolean isCheckbox() { return checkbox; } public void setCheckbox(boolean checkbox) { this.checkbox = checkbox; } }