private ActionModel getActionModel() {
return (ActionModel) super.getModel();
}
private void addParameters() {
final ActionModel actionModel = getActionModel();
final ObjectAction ObjectAction = actionModel.getActionMemento().getAction();
final List<ObjectActionParameter> parameters = ObjectAction.getParameters();
final RepeatingView rv = new RepeatingView(ID_ACTION_PARAMETERS);
add(rv);
final List<ActionParameterMemento> mementos = buildParameterMementos(parameters);
for (final ActionParameterMemento apm : mementos) {
final WebMarkupContainer container = new WebMarkupContainer(rv.newChildId());
rv.add(container);
final ScalarModel argumentModel = actionModel.getArgumentModel(apm);
getComponentFactoryRegistry().addOrReplaceComponent(container, ComponentType.SCALAR_NAME_AND_VALUE, argumentModel);
}
}