use of com.revolsys.ui.html.view.DetailView in project com.revolsys.open by revolsys.
the class HtmlUiBuilder method newDetailView.
public ElementContainer newDetailView(final Object object, final List<KeySerializer> serializers) {
final KeySerializerDetailSerializer model = new KeySerializerDetailSerializer(serializers);
model.setObject(object);
final DetailView detailView = new DetailView(model, this.typeName);
return new ElementContainer(detailView);
}
use of com.revolsys.ui.html.view.DetailView in project com.revolsys.open by revolsys.
the class DetailViewTag method doStartTag.
@Override
public int doStartTag() throws JspException {
if (this.name != null) {
try {
final Object object = this.pageContext.findAttribute(this.name);
if (object != null) {
final Writer out = this.pageContext.getOut();
Property.setSimple(this.model, "object", object);
final DetailView view = new DetailView(this.model);
view.serialize(out);
}
} catch (final Throwable t) {
throw new JspException(t);
}
}
return SKIP_BODY;
}
Aggregations