Package org.richfaces.component

Examples of org.richfaces.component.AbstractCommandButton


         * 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;
View Full Code Here


         * 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;
View Full Code Here

TOP

Related Classes of org.richfaces.component.AbstractCommandButton

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.