Package ariba.ui.aribaweb.core

Examples of ariba.ui.aribaweb.core.AWValidationContext$ValidationError


        return requestContext().validationContext().getGeneralErrors();
    }

    public String errorWarningStyle ()
    {
        AWValidationContext context = requestContext().validationContext();
        if (context.hasErrorForComponentPackage(pageComponent()) ||
                context.hasGeneralErrors()) {
            return ErrorStyle;
        } else {
            return WarningStyle;
        }
    }
View Full Code Here


    }

    public AWComponent openValidationErrorPage ()
    {
        AWValidationErrorPage errorPage = (AWValidationErrorPage)pageWithName(AWValidationErrorPage.Name);
        AWValidationContext validationContext = page().validationContext();
        AWComponent pageComponent = pageComponent();
        String pageComponentName = pageComponent.name();
        AWComponentDefinition pageComponentDefinition = pageComponent.componentDefinition();
        String packageName = AWComponentApiManager.packageNameForComponent(pageComponentDefinition);
        errorPage.setup(validationContext, pageComponentName, packageName);
View Full Code Here

        if (AWConcreteServerApplication.IsRapidTurnaroundEnabled) {
            AWPage.registerLifecycleListener(new AWPage.LifecycleListener() {
                // Listen for new page activations and check for rule file changes
                public void pageWillRender(AWPage page)
                {
                    AWValidationContext validationContext = page.validationContext();
                    validationContext.clearGeneralErrors("MetaUI");
                    try {
                        checkRuleFileChanges(false);
                    } catch (RuleLoadingException exception) {
                        validationContext.addGeneralError("MetaUI", exception.getMessage(), exception);
                    }
                }

                public void pageWillAwake (AWPage page) { }
                public void pageWillSleep (AWPage page) { }
View Full Code Here

                requestContext.put(debug_MenuIDListKey, menuIds);
            }
            AWEncodedString menuId = menuId();

            if (menuIds.contains(menuId)) {
                AWValidationContext validationContext = requestContext.validationContext();
                String msg = Fmt.S("Error: multiple menus found with the same menu id: %s", menuId);
                validationContext.addGeneralError(msg);
                ariba.ui.aribaweb.util.Log.dumpAWStack(component,msg);
            }

            menuIds.add(menuId);
        }
View Full Code Here

TOP

Related Classes of ariba.ui.aribaweb.core.AWValidationContext$ValidationError

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.