@Override protected IItemFactory<SInstance> newItemFactory() { IItemFactory<SInstance> factory = super.newItemFactory(); return (index, model) -> { Item<SInstance> item = factory.newItem(index, model); WicketFormProcessing.onFormPrepare(item, model, false); return item; }; } }
/** * Refresh the items in the view. Delegates the creation of items to the selected item reuse * strategy */ @Override protected final void onPopulate() { Iterator<IModel<T>> models = getItemModels(); Iterator<Item<T>> items = getItemReuseStrategy().getItems(newItemFactory(), models, getItems()); removeAll(); addItems(items); }
/** * Refresh the items in the view. Delegates the creation of items to the selected item reuse * strategy */ @Override protected final void onPopulate() { Iterator<IModel<T>> models = getItemModels(); Iterator<Item<T>> items = getItemReuseStrategy().getItems(newItemFactory(), models, getItems()); removeAll(); addItems(items); }
/** * Refresh the items in the view. Delegates the creation of items to the selected item reuse * strategy */ @Override protected final void onPopulate() { Iterator<IModel<T>> models = getItemModels(); Iterator<Item<T>> items = getItemReuseStrategy().getItems(newItemFactory(), models, getItems()); removeAll(); addItems(items); }