super(id, model);
}
protected void populateItem(ListItem item)
{
ElementMetaData element = (ElementMetaData) item.getModelObject();
int colspan = element.getIntParameter(PARAM_COLSPAN, 1);
Component component;
if (element.isAction()) {
Form form = findParent(Form.class);
component = new BeanActionButton("c", element, form, bean);
item.add( new SimpleAttributeModifier("class", "beanActionButtonCell") );
}
else {
component = beanMetaData.getComponentRegistry().getComponent(bean, "c", element);
if (!(component instanceof UnlabeledField) && showLabels) {
component = new LabeledField("c", element.getLabelComponent("l"), component);
}
}
beanMetaData.applyCss(bean, element, component);