Package ariba.ui.aribaweb.util

Examples of ariba.ui.aribaweb.util.AWEncodedString


        // skip the rest of this subtree
        if (subcomponentInstance == null)
            return null;

        requestContext.pushCurrentComponent(subcomponentInstance);
        AWEncodedString elementId = AWConcreteApplication.IsDebuggingEnabled
            && requestContext.isPathDebugRequest() ?
            requestContext.currentElementId() : null;
        try {
            actionResults = subcomponentInstance.invokeAction(requestContext, component);
        }
View Full Code Here


    }

    public AWResponseGenerating invokeAction(AWRequestContext requestContext, AWComponent component)
    {
        AWResponseGenerating actionResults = null;
        AWEncodedString elementId = requestContext.nextElementId();
        if (elementId.equals(requestContext.requestSenderId())) {
            if (_pageName != null) {
                String pageName = _pageName.stringValue(component);
                actionResults = requestContext.pageWithName(pageName);
            }
            else {
View Full Code Here

        return actionResults;
    }

    public void renderResponse(AWRequestContext requestContext, AWComponent component)
    {
        AWEncodedString elementId = requestContext.nextElementId();
        if (_absoluteUrl != null && _absoluteUrl.booleanValue(component)) {
            AWComponentActionRequestHandler.SharedInstance.appendFullUrlWithSenderId(requestContext, elementId);
        }
        else {
            AWComponentActionRequestHandler.SharedInstance.appendUrlWithSenderId(requestContext, elementId);
        }

        // record & playback
        // It is duplicated in AWGenericElement.
         if (requestContext._debugShouldRecord()) {
             String semanticKey = _semanticKeyBinding == null ?
                     AWRecordingManager.actionEffectiveKeyPathInComponent(_action, component) :
                     _semanticKeyBinding.stringValue(component);
             semanticKey = AWRecordingManager.applySemanticKeyPrefix(requestContext, semanticKey, null);
             AWRecordingManager.registerSemanticKey(elementId.string(), semanticKey, requestContext);
         }
    }
View Full Code Here

    {
        bindingName = bindingName.intern();
        if (_hashtable.get(bindingName) == null) {
            synchronized (this) {
                if (_hashtable.get(bindingName) == null) {
                    AWEncodedString encodedBindingName = AWEncodedString.sharedEncodedString(bindingName);
                    _keys = (AWEncodedString[])AWUtil.addElement(_keys, encodedBindingName);
                    _values = (AWBinding[])AWUtil.addElement(_values, binding);
                    Map hashtable = _hashtable == EmptyHashtable ? MapUtil.map() : MapUtil.cloneMap(_hashtable);
                    hashtable.put(bindingName, binding);
                    _hashtable = hashtable;
View Full Code Here

{
    private static final AWEncodedString DefaultPadding = AWEncodedString.sharedEncodedString("20");

    public AWEncodedString leftMargin ()
    {
        AWEncodedString leftMargin = encodedStringValueForBinding(BindingNames.leftMargin);
        if (leftMargin == null) {
            leftMargin = DefaultPadding;
        }
        return leftMargin;
    }
View Full Code Here

        _elementId = null;
    }

    public String onClickString ()
    {
        AWEncodedString positioningElement = encodedStringValueForBinding(_positionBinding);
        if (positioningElement == null) {
            positioningElement = Constants.Null;
        }
        appendEventHandler(Constants.OnClick, PopupMenu.ShowMenuFunctionName, positioningElement);
        return null;
View Full Code Here

    private void appendEventHandler (AWEncodedString eventName, AWEncodedString functionName,
            AWEncodedString positioningElement)
    {
        AWResponse response = response();
        AWEncodedString menuId = PopupMenu.menuId(this, _menuIdBinding, _indexBinding);
        response.appendContent(Constants.Space);
        response.appendContent(eventName);
        response.appendContent(Constants.Equals);
        response.appendContent(Constants.Quote);
        response.appendContent(Constants.Return);
View Full Code Here

    public AWResponseGenerating invokeAction (AWRequestContext requestContext, AWComponent component)
    {
        boolean needCleanup = pushPop(true, false, component);
        AWResponseGenerating actionResults = null;
        try {
            AWEncodedString elementId = AWConcreteApplication.IsDebuggingEnabled
                && requestContext.isPathDebugRequest() ?
                    requestContext.currentElementId() : null;
            actionResults = super.invokeAction(requestContext, component);

            if (actionResults != null && requestContext.isPathDebugRequest()) {
View Full Code Here

        AWBinding enabledBinding = bindingForName(BindingNames.enabled);
        if (enabledBinding != null) {
            enabled = booleanValueForBinding(enabledBinding);
        }
        else {
            AWEncodedString labelRight = encodedStringValueForBinding(BindingNames.labelRight);
            enabled = labelRight == null ? true : !"0".equals(labelRight.string());
        }
        return !enabled;
    }
View Full Code Here

    public AWComponent invokeAction ()
    {
        AWComponent modalPageComponent = null;
        AWRequestContext requestContext = requestContext();
        String windowNameString = StringUtil.strcat("aw", _elementId.string());
        AWEncodedString windowName =
            AWEncodedString.sharedEncodedString(windowNameString);
        AWRequest request = requestContext.request();
        String shouldClose = request.formValueForKey("awshouldClose");
        if (shouldClose != null) {
            // Go down this path when the modal window closes
View Full Code Here

TOP

Related Classes of ariba.ui.aribaweb.util.AWEncodedString

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.