* RF-13559, RF-13018, prevent commandButton with @type="button" or "reset" from executing its action if it didn't
* submit the form
*/
boolean preventButtonExecution = false;
if (uiComponent instanceof AbstractCommandButton) {
AbstractCommandButton button = (AbstractCommandButton) uiComponent;
String type = ((String) button.getAttributes().get("type")).toLowerCase();
String source = paramMap.get(SOURCE_ID);
if ((type.equals("button") || type.equals("reset")) && !button.getClientId().equals(source)) {
preventButtonExecution = true;
}
}
boolean submitted = null != value && !preventButtonExecution;