public void render(final Listitem listitem, Object obj) throws Exception {
listitem.setValue(obj);
for (int i = 0; i < model.getColumns().length; i++) {
Object cellObj = model.getCheckedValue(obj, i);
if (cellObj instanceof View) {
Listcell cell = new Listcell();
cell.appendChild(((View) cellObj).getComponent());
listitem.appendChild(cell);
} else if (cellObj instanceof Component) {
Listcell cell = new Listcell();
cell.appendChild((Component) cellObj);
listitem.appendChild(cell);
} else {
Label label = new Label((String.valueOf(ObjectConverter
.convert(cellObj))));
label.setMultiline(true);
Listcell cell = new Listcell();
cell.appendChild(label);
listitem.appendChild(cell);
}
}
}