checkboxlistは選択されたボックスがあれば対応するgetterでList
public void setCheck(List<String> check){ if(check == null) this.check = Collections.EMPTY_LIST; else this.check = check; }
とやってみたが、選択しなければやっぱりnullが返ってくる。なのでgetterを修正して
public List<String> getCheck(){ if(this.check == null) return Collections.EMPTY_LIST; return this.check; }
としたところ、選択しなかった場合はサイズ0のリストが返ってくるようになった。何でsetterの方は駄目だったんだろう?何か間違えているか、勘違いしているか