Igor Vaynberg wrote:
why not? convertinput() will cascade down to all components that need them.
-igor
I feel like the issue is not with the components in the list item, but
with the wrapper around the list item.
For example (pseudo code):
public class ContactListEdit extends FormComponentPanel<List<Contact>>{
(...)
private ListEditor<Contact> contactListEdit ;
onBeforeRender(){
if(!hasBeenRendered()){
contactListEdit = new ListEditor<Contact>("id",listModel){
void onPopulateItem(item){
item.add(new TextField("firstname", new
PropertyModel(item.getModel(), "firstname");
item.add(new TextField("lastname", new
PropertyModel(item.getModel(), "lastname");
}
}
add(contactListEdit);
}
}
(..)
List<Contact> convertedInput ;
public void convertInput(){
List<Contact> list= new ArrayList<Contact>()
// how to compose the list ?
setConvertedInput(list);
}
}
The issue is then in convertInput, how to compose the list of contacts ?
thanks again for your help
++
joseph
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]