Package ariba.ui.aribaweb.util

Examples of ariba.ui.aribaweb.util.AWEncodedString.string()


            super.stringValueForObjectInComponent(objectValue, component);

        Object escapeValue = _escape != null ? _escape.value(component) : null;
        boolean escape = escapeValue != null && ((Boolean)escapeValue).booleanValue();

        String stringValue = encodedString.string();
        if (!StringUtil.nullOrEmptyOrBlankString(stringValue)) {
            if (escape) {
                // escape single quote, double quote, and backslash
                stringValue = stringValue.replaceAll("('|\"|\\\\)", "\\\\$1");
                encodedString = AWEncodedString.sharedEncodedString(stringValue);
View Full Code Here


         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);
         }
    }

    public void applyValues(AWRequestContext requestContext, AWComponent component)
    {
View Full Code Here

        AWElementIdPath elementIdPath = _hasFormValues ? requestContext.nextElementIdPath() : null;
        AWEncodedString nameString = initNameString(requestContext, component, elementIdPath);
        if (_hasFormValues) {
            String formValuesKey = null;
            if (_formValuesKey == null) {
                formValuesKey = nameString.string();
            }
            else {
                formValuesKey = _formValuesKey.stringValue(component);
            }
            AWRequest request = requestContext.request();
View Full Code Here

            String semanticKeyWithPrefix = AWRecordingManager.applySemanticKeyPrefix(requestContext, semanticKeyString, null);
            semanticKeyString = AWRecordingManager.registerSemanticKey(elementIdString, semanticKeyWithPrefix, requestContext);
            if (semanticKey == null) {
                semanticKey = AWEncodedString.sharedEncodedString(semanticKeyString);
            }
            else if (semanticKey != null && !semanticKey.string().equals(semanticKeyString)) {
                semanticKey = AWEncodedString.sharedEncodedString(semanticKeyString);
            }

        }
View Full Code Here

    {
        public String translate (String orig)
        {
            AWEncodedString translatedString;
            if (orig.startsWith("on") && (translatedString = (AWEncodedString)_TranslatedBindings.get(orig)) != null) {
                return translatedString.string();
            }
            return orig;
        }
    }
    private final static EventFilter EventFilterSingleton = new EventFilter();
View Full Code Here

            return false;
        }

        Object idBinding = valueForBinding(AWBindingNames.id);
        if (idBinding instanceof String) {
            return idBinding.equals(confId.string());
        }
        else if (idBinding instanceof AWEncodedString) {
            return idBinding.equals(confId);
        }
        // todo: assert here
View Full Code Here

        }
        boolean useBR = (_useBrBinding == null) ? _useBr : _useBrBinding.booleanValue(component);
        boolean useNbsp = (_useNbspBinding == null) ? _useNbsp : _useNbspBinding.booleanValue(component);

        if (useBR || useNbsp) {
            String string = encodedString.string();
            if (useBR) {
                string = StringUtil.replaceCharByString(string, '\n', "<br/>");
            }
            if (useNbsp) {
                string = StringUtil.replaceCharByString(string, ' ', "&nbsp;");
View Full Code Here

    public String remoteLinkUrl ()
    {
        AWEncodedString senderId = senderId();
        String url = AWComponentActionRequestHandler.SharedInstance.urlWithSenderId(requestContext(), senderId);
        return StringUtil.strcat(url, "&", AWComponentActionRequestHandler.SenderKey, "=", senderId.string());
    }

    public boolean isHiddenFieldSender ()
    {
        return AWGenericActionTag.isHiddenFieldSender(request(), senderId());
View Full Code Here

        AWEncodedString formActionUrl =  (requestContext().isStaticGeneration())
                ? new AWEncodedString(requestContext().staticUrlForActionResults((AWResponseGenerating)valueForBinding(AWBindingNames.action)))
                : AWComponentActionRequestHandler.SharedInstance.requestHandlerUrlEncoded(request());
        String fragmentIdentifier = stringValueForBinding(BindingNames.fragmentIdentifier);
        if (fragmentIdentifier != null) {
            String url = StringUtil.strcat(formActionUrl.string(), "#", fragmentIdentifier);
            formActionUrl = AWEncodedString.sharedEncodedString(url);
        }

        return formActionUrl;
    }
View Full Code Here

        AWImageInfo imageInfo = resourceManager.imageInfoForName(filename);
        String imageUrl = imageUrl(imageInfo, filename);
        AWEncodedString width = widthString(bindingsHashtable, imageInfo);
        AWEncodedString height = heightString(bindingsHashtable, imageInfo);
        String widthString = width.string();
        String heightString = height.string();
        AWFastStringBuffer fastStringBuffer = new AWFastStringBuffer();
        fastStringBuffer.append("<img src=\"");
        fastStringBuffer.append(imageUrl);
        fastStringBuffer.append("\"");
        if (widthString != null) {
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.