2010-06-16 98 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); 
    ... 
} 
相關問題