while (fields.hasMore()) {
DataModel child = fields.next();
try {
ULCViewer editor = factory.createDefaultUlcEditor(child);
fieldPane.add(new ULCLabel(factory.getClientResource().getLabel(child.getFieldName())));
fieldPane.add(ULCBoxPane.BOX_EXPAND_EXPAND, editor.getULCComponent(factory));
} catch (Exception e) {
e.printStackTrace(); //TODO
}
}