WW-4663 Fallback to old behaviour if there is no action defined

This commit is contained in:
Lukasz Lenart
2017-04-04 09:16:48 +02:00
parent c56d95d28c
commit 1162ddf823
@@ -276,6 +276,15 @@ public class Form extends ClosingUIBean {
String formActionValue = findString(action);
ActionMapping mapping = actionMapper.getMappingFromActionName(formActionValue);
if (mapping == null) {
mapping = actionMapper.getMappingFromActionName((String) getParameters().get("actionName"));
}
if (mapping == null) {
return Collections.EMPTY_LIST;
}
String actionName = mapping.getName();
String methodName = null;