use of org.entando.entando.aps.system.services.widgettype.WidgetTypeParameter in project entando-core by entando.
the class SimpleWidgetConfigAction method createValuedShowlet.
protected void createValuedShowlet() throws Exception {
Widget widget = this.createNewShowlet();
List<WidgetTypeParameter> parameters = widget.getType().getTypeParameters();
for (int i = 0; i < parameters.size(); i++) {
WidgetTypeParameter param = parameters.get(i);
String paramName = param.getName();
String value = this.getRequest().getParameter(paramName);
if (value != null && value.trim().length() > 0) {
widget.getConfig().setProperty(paramName, value);
}
}
this.setWidget(widget);
}
Aggregations