Package ariba.ui.aribaweb.core

Examples of ariba.ui.aribaweb.core.AWResponse


        //    will provide an onClickString for all other radio buttons.
        String onClickString = null;

        Boolean isRefresh = (Boolean)env().peek(RadioIsRefreshKey);
        if (isRefresh != null && isRefresh.booleanValue()) {
            AWResponse response = requestContext().response();
            response.appendContent(AWConstants.Space);
            response.appendContent(AWConstants.OnClick);
            response.appendContent(AWConstants.Equals);
            response.appendContent(AWConstants.Quote);
            AWXBasicScriptFunctions.appendSubmitCurrentForm(requestContext(), _elementId);
            response.appendContent(AWConstants.Quote);
        }
        else {
            AWBinding onClickBinding = bindingForName(BindingNames.onClick, false);
            if (onClickBinding != null) {
                onClickString = stringValueForBinding(onClickBinding);
View Full Code Here


    public String onChangeString ()
    {
        String onChangeString = null;
        if (bindingForName(BindingNames.action) != null || booleanValueForBinding(BindingNames.isRefresh)) {
            AWRequestContext requestContext = requestContext();
            AWResponse response = requestContext.response();
            response.appendContent(AWConstants.Space);
            response.appendContent(AWConstants.OnChange);
            response.appendContent(AWConstants.Equals);
            response.appendContent(AWConstants.Quote);
            AWXBasicScriptFunctions.appendSubmitCurrentForm(requestContext, _elementId);
            response.appendContent(AWConstants.Quote);
        }
        else {
            onChangeString = stringValueForBinding(BindingNames.onChange);
        }
        return onChangeString;
View Full Code Here

        selfRedirect = flag;
    }

    protected void fullPageRedirect (AWRequestContext requestContext)
    {
        AWResponse response = requestContext.response();
        response.appendContent(RedirectStringStart);
        response.appendContent(AWCurrWindowDecl.currWindowDecl(requestContext));
        response.appendContent(RedirectStmt);
        response.appendContent(escapeJavascript(getRedirectUrl(requestContext)));
        response.appendContent(RedirectStringFinish);
    }
View Full Code Here

        if (!StringUtil.nullOrEmptyOrBlankString(sessionId)) {
            handler = getHandlerForSessionId(sessionId);
        }
        String msg = handler == null ? "none" : handler.status();

        AWResponse response = AWConcreteApplication.sharedInstance().createResponse();
        response.appendContent(msg);
        return response;
    }
View Full Code Here

        return _frameName;
    }

    protected void defaultMouseDownAction ()
    {
        AWResponse response = response();
        response.appendContent(Constants.Return);
        response.appendContent(Constants.Space);
        response.appendContent(PopupMenu.MenuClickedFunctionName);
        response.appendContent(Constants.OpenParen);
        response.appendContent(Constants.This);
        response.appendContent(Constants.Comma);
        response.appendContent(Constants.SingleQuote);
        response.appendContent(_elementId);
        response.appendContent(Constants.SingleQuote);
        response.appendContent(Constants.Comma);
        if (submitForm()) {
            response.appendContent(Constants.SingleQuote);
            response.appendContent(requestContext().currentForm().formName());
            response.appendContent(Constants.SingleQuote);
        }
        else {
            response.appendContent(Constants.Null);
        }
        response.appendContent(Constants.CloseParen);
        response.appendContent(Constants.Semicolon);
    }
View Full Code Here

    public String onMouseDownString ()
    {
        boolean hasOnClick = hasBinding(AWBindingNames.onClick);
        boolean hasClientTrigger = hasBinding(_clientTriggerBinding);
        if (hasOnClick || hasClientTrigger) {
            AWResponse response = response();
            response.appendContent(Constants.Space);
            response.appendContent(Constants.OnMouseDown);
            response.appendContent(Constants.Equals);
            response.appendContent(Constants.Quote);
            if (hasOnClick) {
                response.appendContent(stringValueForBinding(AWBindingNames.onClick));
                response.appendContent("return false;");
            }
            else {
                if (hasClientTrigger) {
                    response.appendContent(stringValueForBinding(_clientTriggerBinding));
                }
                defaultMouseDownAction();
            }
            response.appendContent(Constants.Quote);
        }
        return null;
    }
View Full Code Here

        return null;
    }

    protected void defaultKeyDownAction ()
    {
        AWResponse response = response();
        response.appendContent(Constants.Return);
        response.appendContent(Constants.Space);
        response.appendContent(PopupMenu.MenuKeyDownFunctionName);
        response.appendContent(Constants.OpenParen);
        response.appendContent(Constants.This);
        response.appendContent(Constants.Comma);
        response.appendContent(Constants.SingleQuote);
        response.appendContent(_elementId);
        response.appendContent(Constants.SingleQuote);
        response.appendContent(Constants.Comma);
        if (submitForm()) {
            response.appendContent(Constants.SingleQuote);
            response.appendContent(requestContext().currentForm().formName());
            response.appendContent(Constants.SingleQuote);
        }
        else {
            response.appendContent(Constants.Null);
        }
        response.appendContent(Constants.Comma);
        response.appendContent(Constants.Event);
        response.appendContent(Constants.CloseParen);
        response.appendContent(Constants.Semicolon);
    }
View Full Code Here

                ariba.ui.aribaweb.util.Log.aribawebvalidation_exportMode.isDebugEnabled();

            // if export validation is on, do the export, but don't save the result
            // see AWRequestContext.recordFormInputId for the actual validation.
            if (isExportMode() || exportValidation) {
                AWResponse excelResponse = application().createResponse();
                excelResponse.setContentType(AWContentType.ApplicationVndMsexcel);
                Util.setHeadersForDownload(excelResponse, "data.xls");

                // temporarily hide non-data columns
                Object state = _prepareColumnsForExport();
View Full Code Here

    private AWEncodedString StyleQuote = new AWEncodedString("\" ");

    public String emitColumnStyle (String moreStyle)
    {
        if (_nextColumnIndentation != 0) {
            AWResponse response = response();
            response.appendContent(StylePadding);
            response.appendContent(Integer.toString(_nextColumnIndentation));
            if (moreStyle != null) {
                response.appendContent(StylePxPlusSemiColon);
                response.appendContent(moreStyle);
                response.appendContent(StyleQuote);
            }
            else {
                response.appendContent(StylePxPlusQuote);
            }
            return null;
        }
        return moreStyle;
    }
View Full Code Here

    {
        // to avoid creating garbage, we append EncodedStrings ourselves, and then
        // return null so that another attribute is not rendered
        int width = _currentColumn.minWidthPx(this);
        if (width > 0) {
            AWResponse response = response();
            response.appendContent(StylePaddingRight);
            response.appendContent(Integer.toString(width));
            response.appendContent(PxQuote);
        }
        return null;
    }
View Full Code Here

TOP

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

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.