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 List<ActionParameterMemento> mementos = buildParameterMementos(parameters);
for (final ActionParameterMemento apm1 : mementos) {
actionModel.getArgumentModel(apm1);
}
final RepeatingView rv = new RepeatingView(ID_ACTION_PARAMETERS);
add(rv);
paramPanels.clear();
for (final ActionParameterMemento apm : mementos) {
final WebMarkupContainer container = new WebMarkupContainer(rv.newChildId());
rv.add(container);
final ScalarModel argumentModel = actionModel.getArgumentModel(apm);
argumentModel.setActionArgsHint(actionModel.getArgumentsAsArray());
final Component component = getComponentFactoryRegistry().addOrReplaceComponent(container, ComponentType.SCALAR_NAME_AND_VALUE, argumentModel);
final ScalarPanelAbstract paramPanel = component instanceof ScalarPanelAbstract ? (ScalarPanelAbstract) component : null;
paramPanels.add(paramPanel);
if(paramPanel != null) {
paramPanel.setOutputMarkupId(true);