2010-06-16 3 views

Répondre

3

Vous devez lier votre liste avec des données et ListMultipleChoice comme dans 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); 
    ... 
} 
Questions connexes