Examples of callCustomAction()


Examples of de.innovationgate.wgpublisher.webtml.utils.TMLContext.callCustomAction()

        else {
          TMLAction tmlAction = (TMLAction) getTMLContext().getActionRegistration().get(actionLink.getActionKeyInteger());
          if (tmlAction == null) {
            throw new TMLActionException("Could not find action for key " + actionLink.getActionKey());
          }
          actionContext.callCustomAction(tmlAction, params);
          if (actionLink.getPortletmode() != null && actionContext.getportlet() != null) {
              if (getTMLContext().isdefined("actionresult")) {
                      ExpressionResult expressionResult = (ExpressionResult) getTMLContext().item("actionresult");
                      if (!expressionResult.isError() && (expressionResult.getResult() == null || expressionResult.getResult() instanceof String || !expressionResult.isFalse())) {
                          actionContext.getportlet().setmode(actionLink.getPortletmode());         
View Full Code Here

Examples of de.innovationgate.wgpublisher.webtml.utils.TMLContext.callCustomAction()

            // Create map of parent scope objects
            Map<String, Object> parentScopeObjects = new HashMap<String, Object>();
            parentScopeObjects.put(SCRIPTOBJ_WGASERVICESCONTEXT, _contextProvider);
           
            // Call action
            Object result = context.callCustomAction(action, params, parentScopeObjects);
            if (context.isdefined("actionresult")) {
                ExpressionResult expressionResult = (ExpressionResult) context.item("actionresult");
                if (expressionResult.isError()) {
                    WGExpressionException ex = expressionResult.getException();
                   
View Full Code Here

Examples of de.innovationgate.wgpublisher.webtml.utils.TMLContext.callCustomAction()

        TMLScriptRootScope rootScope = fetchRootScope(cx);

        // Call action
        Object actionResult;
        try {
            actionResult = context.callCustomAction(action, actionArgs, rootScope.getData().getUnwrappedGlobalScopeObjects());
        }
        catch (WGAPIException e) {
            throw Context.throwAsScriptRuntimeEx(e);
        }
View Full Code Here

Examples of de.innovationgate.wgpublisher.webtml.utils.TMLContext.callCustomAction()

        // Call action
        Object actionResult;
        try {
            TMLScriptRootScope rootScope = WGAGlobal.fetchRootScope(cx);
            actionResult = context.callCustomAction(action, actionArgs, rootScope.getData().getUnwrappedGlobalScopeObjects());
        }
        catch (WGAPIException e) {
            throw Context.throwAsScriptRuntimeEx(e);
        }
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.