Package ariba.ui.aribaweb.core

Examples of ariba.ui.aribaweb.core.AWErrorInfo


    {
        if (_errorMsgs == null) {
            _errorMsgs = ListUtil.list();
            if (!ListUtil.nullOrEmptyList(_errorInfoList)) {
                for (int i = 0; i < _errorInfoList.size(); i++) {
                    AWErrorInfo error = _errorInfoList.get(i);
                    _errorMsgs.add(error.getMessage());
                }
            }
        }
        return _errorMsgs;
    }
View Full Code Here


            context.push();
            context.set(UIMeta.KeyField, fi);
            String errorMessage = UIMeta.validationError(context);
            context.pop();
            if (errorMessage != null) {
                recordValidationError(new AWErrorInfo(_object, fi, null,
                    errorMessage, null, false));
            }
        }
    }
View Full Code Here

        // rendered on the page.  So everything else should be rendered
        // by now - ensure auto nav takes place.
        // This call should NOT modify server state. Assuming the error was
        // registered during render, the error should be visible on the same page.
        errorManager().navToErrorAsNeeded(false, null, true);
        AWErrorInfo error = errorManager().getHighLightedError();
        if (error != null && error.getDisplayOrder() == AWErrorInfo.NotDisplayed) {
            _highLightedError = error;
            Log.aribaweb_errorManager.debug(
                "PageErrorPanel: error displayed in the panel: %s", error.getMessage());
        }
        else {
            _highLightedError = null;
        }
    }
View Full Code Here

        // Instead of highlighting the error by popping up the bubble as we
        // render the error indicator, we ask the error manager to do it when
        // append is done and we know which error manager is in the foreground.
        // Also, for the pages that recalculate validity during append, the
        // "current" error selection is not finalized until append is done.
        AWErrorInfo curError = errorManager().getHighLightedError();
        if (curError != null && curError.getIndicatorId() != null) {
            _deferredBubbleIndicatorId = curError.getIndicatorId();
            Log.aribaweb_errorManager.debug("set _deferredBubbleDisplay=%s",
                curError);
        }
        else {
            _deferredBubbleIndicatorId = null;
View Full Code Here

    public void renderResponse(AWRequestContext requestContext, AWComponent component)
    {
        if (_errorInfoList != null) {
            boolean navigable = isNavigable();
            for (int i = 0; i < _errorInfoList.size(); i++) {
                AWErrorInfo error = _errorInfoList.get(i);
                errorManager().setErrorDisplayOrder(error, navigable);
                if (navigable && indicatorId() != null) {
                    error.setIndicatorId(indicatorId());
                }
            }
        }
        super.renderResponse(requestContext, component);
    }
View Full Code Here

    private String formatErrorList (List errors)
    {
        FastStringBuffer fsb = new FastStringBuffer();
        for (int i = 0; i < errors.size(); i++) {
            AWErrorInfo error = (AWErrorInfo)errors.get(i);
            if (i > 0) {
                // the rendering code is expected to use safe escaping
                fsb.append("<br/>");
            }
            fsb.append(error.getMessage());
        }
        return fsb.toString();
    }
View Full Code Here

    private boolean hasError (boolean isWarning)
    {
        if (!ListUtil.nullOrEmptyList(_errorInfoList)) {
            for (int i = 0; i < _errorInfoList.size(); i++) {
                AWErrorInfo error = _errorInfoList.get(i);
                if (error.isWarning() == isWarning) {
                    return true;
                }
            }
        }
        return false;
View Full Code Here

TOP

Related Classes of ariba.ui.aribaweb.core.AWErrorInfo

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.