use of com.revolsys.ui.html.fields.HiddenField in project com.revolsys.open by revolsys.
the class UiBuilderObjectForm method initialize.
@Override
public void initialize(final HttpServletRequest request) {
for (final String key : this.fieldKeys) {
if (!getFieldNames().contains(key)) {
final Element field = this.builder.getAttribute(request, key);
if (field instanceof SetObject) {
((SetObject) field).setObject(this.object);
}
if (field != null) {
if (!getElements().contains(field)) {
if (field instanceof HiddenField) {
final HiddenField hiddenField = (HiddenField) field;
add(hiddenField);
} else {
final Decorator label = this.builder.getAttributeFormGroupLabel(key, field);
this.fieldContainer.add(field, label);
}
}
}
}
}
this.builder.initializeForm(this, request);
super.initialize(request);
}
Aggregations