2010-06-16 6 views

답변

3

당신은 같이 데이터와 ListMultipleChoice와 목록을 바인드해야합니다 Example

public MyForm(String id, IModel model, IFeedback feedback) { 
    List choices = new ArrayList(); 
    choices.add("foo"); 
    choices.add("bar"); 
    MultiListChoice lc = new MultiListChoice("myMultiListChoice", new PropertyModel(model, "foobarList"), choices); 
    add(lc); 
    ... 
} 
관련 문제