Examples of functionCall()


Examples of fr.imag.adele.apam.pax.test.implS6.S6Impl.functionCall()

  auxListProperties("\t", subjectA);

  String template = "after fetching a property value (pointing to a function) the returned value do not correspond to the returned function. Value '%s' was returned instead of '%s'";
  String message = String
    .format(template, subjectA.getProperty("function-case-01"),
      s6.functionCall(null));

  Assert.assertTrue(message, subjectA.getProperty("function-case-01")
    .equals(s6.functionCall(null)));
    }
View Full Code Here

Examples of fr.imag.adele.apam.pax.test.implS6.S6Impl.functionCall()

  String message = String
    .format(template, subjectA.getProperty("function-case-01"),
      s6.functionCall(null));

  Assert.assertTrue(message, subjectA.getProperty("function-case-01")
    .equals(s6.functionCall(null)));
    }

    @Test
    public void FunctionCallEscaped_tc094() {
  Implementation subjectAimpl = waitForImplByName(null, "subject-a");
View Full Code Here

Examples of org.openfaces.util.ScriptBuilder.functionCall()

        if (action.isDisabled()) {
            return null;
        }
        ScriptBuilder buf = new ScriptBuilder();

        buf.functionCall("O$._submitAction", action.getId(), extractActionStr(action, "action"), extractActionStr(action, "listener"));
        return buf.toString();
    }

    public static String extractActionStr(Action action, String attributeName) {
        String expressionString = getExpressionString(action, attributeName);
View Full Code Here

Examples of org.openfaces.util.ScriptBuilder.functionCall()

        JSONArray renderArray = ajaxInitializer.getRenderArray(context, (OUICommand) action, ajax.getRender());
        String idExpression = "O$._renderIds['" + id + "']";
        Script render = new RawScript("(" + idExpression + " ? " + idExpression + " : " + renderArray.toString() + ")");

        buf.functionCall("O$._ajaxReload",
                render,
                ajaxInitializer.getAjaxParams(context, ajax)).semicolon();
        return buf.toString();
    }
View Full Code Here

Examples of org.openfaces.util.ScriptBuilder.functionCall()

        if (forComponentClientId == null) {
            throw new NullPointerException("forComponentClientId");
        }

        ScriptBuilder resultString = new ScriptBuilder();
        resultString.functionCall("O$.addClientMessageRenderer",
                new NewInstanceScript("O$._MessageRenderer",
                        messageClientId,
                        forComponentClientId,
                        getTitle(messageComponent),
                        isTooltip(messageComponent),
View Full Code Here

Examples of org.openfaces.util.ScriptBuilder.functionCall()

                    dpm.getTransparency(),
                    dpm.getTransparencyTransitionPeriod(),
                    backgroundLayerParams).semicolon();

            if (isAjaxCleanupRequired()) {
                setMessageScript.functionCall("O$.setAjaxCleanupRequired", true).semicolon();
            }

            if (isAjax4jsfRequest || isPortletRequest) {
                Rendering.renderInitScript(context, setMessageScript);
            } else {
View Full Code Here

Examples of org.openfaces.util.ScriptBuilder.functionCall()

public abstract class OUIClientActionRendererHelper {
    public void encodeAutomaticInvocationMode(FacesContext context, OUIClientAction clientAction) throws IOException {
        String invokerId = OUIClientActionHelper.getClientActionInvoker(context, clientAction, true);
        ScriptBuilder javaScript = new ScriptBuilder();
        if (invokerId != null) {
            javaScript.functionCall("O$.byIdOrName", invokerId).dot();
            javaScript.append(Rendering.getEventWithOnPrefix(context, clientAction, null)).append("=");
            javaScript.anonymousFunction(getClientActionScript(context, clientAction), "event").semicolon();
        }
        encodeAdditionalScript(context, javaScript, clientAction);
        AjaxUtil.renderAjaxSupport(context);
View Full Code Here

Examples of org.openfaces.util.ScriptBuilder.functionCall()

    protected String getClientActionScript(FacesContext context, OUIClientAction clientAction) {
        Ajax ajax = (Ajax) clientAction;
        AjaxInitializer initializer = new AjaxInitializer();
        ScriptBuilder script = new ScriptBuilder();
        script.functionCall("O$._ajaxReload",
                initializer.getRenderArray(context, ajax, ajax.getRender()),
                initializer.getAjaxParams(context, ajax)).semicolon();
        if (isDisableDefaultRequired(ajax))
            script.append("return false;");
        return script.toString();
View Full Code Here

Examples of org.openfaces.util.ScriptBuilder.functionCall()

        Rendering.renderHiddenField(writer, clientId + TOP_HIDDEN_FIELD_SUFFIX, popup.getTop());
//    Rendering.renderHiddenField(writer, clientId + ANCHOR_HIDDEN_FIELD_SUFFIX, popupInvokerId);

        if (popup.getHideOnOuterClick()) {
            ScriptBuilder buf = new ScriptBuilder();
            buf.functionCall("O$.Popup._init", clientId).semicolon();
            Rendering.renderInitScript(context, buf,
                    Resources.utilJsURL(context),
                    Resources.internalURL(context, "popup.js"));
        }
View Full Code Here

Examples of org.openfaces.util.ScriptBuilder.functionCall()

        chart.setEntityIndex(-1);
        final String chartId = chart.getClientId(context);
        chart.setEntityIndex(entityIndex);

        ScriptBuilder buf = new ScriptBuilder();
        buf.functionCall("O$.ChartPopup._init", clientId, popup.getLoadingMode().toString(), chartId).semicolon();

        Rendering.renderInitScript(context, buf,
                Resources.utilJsURL(context),
                Resources.internalURL(context, "chart/chart.js"),
                (!clientLoadingMode ? Resources.ajaxUtilJsURL(context) : 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.