Package ariba.ui.aribaweb.core

Examples of ariba.ui.aribaweb.core.AWErrorManager$AWNewErrorManager


    }

    private Object errorSelection ()
    {
        if (_errorSelection == UndefinedObject) {
            AWErrorManager errorManager = errorManager();
            Object errorKey = errorKey();
            _errorSelection = errorManager.errantValueForKey(errorKey);
        }
        return _errorSelection;
    }
View Full Code Here


        String errorValue = null;

        // See if we have an error value...  Need to check even for fields without formatters -- they
        // can have (page assigned) errors too...
        if (_formatter != null || hasBinding(BindingNames.errorKey)) {
            AWErrorManager errorManager = errorManager();
            Object errorKey = errorKey();
            Object errorObjValue =
                (errorKey != null) ? errorManager.errantValueForKey(errorKey) : null;
            if (errorObjValue instanceof String) {
                errorValue = (String)errorObjValue;
            }
            else if (errorObjValue != null) {
                try {
View Full Code Here

    public String formattedValue ()
    {
        String value = null;
        if (_formatter != null) {
            AWErrorManager errorManager = errorManager();
            Object errorKey = errorKey();
            value = (String)errorManager.errantValueForKey(errorKey);
        }
        return (value == null) ? formattedString() : value;
    }
View Full Code Here

            if (numErrorsExcludingKnownWarnings == 0) {
                Log.aribaweb_errorManager.debug("Current warnings have been shown to the user");
            }
        }

        AWErrorManager errMgr = errorManager();
        int numErrors = errMgr.getNumberOfErrors(false);
        boolean warningsOnly = errMgr.allErrorsAreWarnings() && errMgr.getIgnoreKnownWarnings();
        if (!warningsOnly) {
            if (numErrors > 1) {
                return Fmt.Si(localizedJavaString(1, "There are {0} problems that require completion or correction in order to complete your request." /* generic page error 0-number of errs */), ariba.util.core.Constants.getInteger(numErrors));
            }
            else {
View Full Code Here

        return _allowNext;
    }

    public void initAllowNext ()
    {
        AWErrorManager errMgr = errorManager();
        int numErrors = errMgr.getNumberOfErrors();
        _allowNext = numErrors > 1 || (numErrors == 1 && !errMgr.hasHighLightedError());
    }
View Full Code Here

        return errorManager().prevError(pageComponent());
    }

    public AWComponent nextAction ()
    {
        AWErrorManager errorManager = errorManager();
        Log.aribaweb_errorManager.debug("nav to Next in errorManager %s", errorManager.getLogPrefix());
        return errorManager.nextError(pageComponent());
    }
View Full Code Here

        return navigable;
    }

    public boolean hasErrorsOrWarnings ()
    {
        AWErrorManager errorManager = errorManager();

        if (errorManager.isErrorDisplayEnabled() == false) {
            return false;
        }

        return showError() || showWarning();
    }
View Full Code Here

        return error();
    }

    public boolean isGeneralError ()
    {
        AWErrorManager errorManager = errorManager();
        Object[] errorKeys = AWErrorManager.getErrorKeyFromBindings(this);
        Object singleKey = errorKeys[AWErrorInfo.SingleKeyIndex];
        return AWErrorManager.GeneralErrorKey.equals(singleKey);
    }
View Full Code Here

TOP

Related Classes of ariba.ui.aribaweb.core.AWErrorManager$AWNewErrorManager

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.