Examples of AWRequestContext


Examples of ariba.ui.aribaweb.core.AWRequestContext

    public boolean isEditable ()
    {
        if (hasBinding(AWBindingNames.editable)) {
            return booleanValueForBinding(AWBindingNames.editable);
        }
        AWRequestContext requestContext = requestContext();
        Boolean editable = (Boolean)env().peek("editable");
        return ((editable != null) && editable.booleanValue() &&
                !requestContext.isPrintMode() && !requestContext.isExportMode());
    }
View Full Code Here

Examples of ariba.ui.aribaweb.core.AWRequestContext

{
    protected static final String _Marker = "Marker";

    protected boolean shouldPush (AWComponent component, int phase)
    {
        AWRequestContext requestContext = component.requestContext();
        AWEncodedString id = requestContext.nextElementId();
        requestContext.incrementElementId();

        if ((phase == Append_Phase) && (component.dict().get(id) == null)) {
            component.dict().put(id, _Marker);
            return true;
        }
View Full Code Here

Examples of ariba.ui.aribaweb.core.AWRequestContext

        }
    }

    public boolean isReadOnly ()
    {
        AWRequestContext requestContext = requestContext();
        return requestContext.isPrintMode() || requestContext.isExportMode();
    }
View Full Code Here

Examples of ariba.ui.aribaweb.core.AWRequestContext

    {
        match(_allowFullMatchOnInput);

        AWResponse response = application().createResponse();
        requestContext().setResponse(response);
        AWRequestContext requestContext = requestContext();
        template().elementArray()[3].renderResponse(requestContext, this);
        return response;
    }
View Full Code Here

Examples of ariba.ui.aribaweb.core.AWRequestContext

    {
        // This depends upon the TabList pushing the index at the same time as the selection
        // (so the parent's index relfects the selectedIndex).
        // This is required because if a stateful subcomponent is used as a tab content,
        // the elementId for that subcomponent needs to be the same for each pass.
        AWRequestContext requestContext = requestContext();
        int selectedTabIndex = selectedTabIndex();
        for (int index = 0; index < selectedTabIndex; index++) {
            requestContext.incrementElementId();
        }
        requestContext.pushElementIdLevel();
    }
View Full Code Here

Examples of ariba.ui.aribaweb.core.AWRequestContext

        requestContext.pushElementIdLevel();
    }

    public void popElementId ()
    {
        AWRequestContext requestContext = requestContext();
        requestContext.popElementIdLevel();
        int selectedTabIndex = selectedTabIndex();
        Object tabList = tabList();
        int tabListSize = OrderedList.get(tabList).size(tabList);
        for (int index = selectedTabIndex + 1; index < tabListSize; index++) {
            requestContext.incrementElementId();
        }
    }
View Full Code Here

Examples of ariba.ui.aribaweb.core.AWRequestContext

            AWResponse response = response();
            response.appendContent(Constants.Space);
            response.appendContent(Constants.OnClick);
            response.appendContent(Constants.Equals);
            response.appendContent(Constants.Quote);
            AWRequestContext requestContext = requestContext();
            AWXBasicScriptFunctions.appendSubmitCurrentForm(requestContext, _elementId);
            response.appendContent(Constants.Quote);
        }
        return null;
    }
View Full Code Here

Examples of ariba.ui.aribaweb.core.AWRequestContext

        if (handler == null) {
            ariba.ui.table.Log.table.debug("Unknown handler key: %s", actionUrlString);
            return null;
        }

        AWRequestContext requestContext = component.requestContext();
        requestContext.put(RequestContextKey, actionUrlString);
        if (target != null) {
            requestContext.put(ActionTargetKey, target);
        }

        return handler.actionClicked(requestContext);
    }
View Full Code Here

Examples of ariba.ui.aribaweb.core.AWRequestContext

            AWResponse response = response();
            response.appendContent(Constants.Space);
            response.appendContent(Constants.OnClick);
            response.appendContent(Constants.Equals);
            response.appendContent(Constants.Quote);
            AWRequestContext requestContext = requestContext();
            AWXBasicScriptFunctions.appendSubmitCurrentForm(requestContext, _elementId);
            response.appendContent(Constants.Quote);
        }
        return null;
    }
View Full Code Here

Examples of ariba.ui.aribaweb.core.AWRequestContext

    {
        // We piggy back on this method to allow us to prepare the parent
        // component, but still use the regular invokeAction facility of
        // AWGenericElement when an action binding is provided.

        AWRequestContext requestContext = requestContext();
        String menuLinkSenderId = requestContext.requestSenderId();
        if (_elementId.equals(menuLinkSenderId)) {
            // If we're in here, this menu link was clicked.
            // However, we always return null at the end to allow
            // processing to continue until the PopupMenuItem is found
            // since this is where the user's action really is.
            valueForBinding(_actionSetupBinding);
            // ToDo: make this a feature of AWGenericElement somehow.  Currently do not have general support
            // for multi-action elements and still need to do this trick (ie piggy back off isSender).
            requestContext.dequeueSenderId();
        }
        return false;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.