Examples of ActionProxy


Examples of com.opensymphony.xwork.ActionProxy

                    getApplicationMap(request), request, response, cheatKey, cheatValue);

            contextMap.put(PORTLET_DISPATCHER, this);

            try {
                ActionProxy proxy = ActionProxyFactory.getFactory().createActionProxy(nameSpace, actionName, contextMap);
                proxy.execute();
                PortletContext.getContext().setActionExecuted(null);

            } catch (Throwable e) {
                e.printStackTrace();
            }
View Full Code Here

Examples of com.opensymphony.xwork.ActionProxy

    }

    public void testExecute() {
        try {

            ActionProxy proxy = ActionProxyFactory.getFactory().createActionProxy("", "hello", extraContext);
            proxy.setExecuteResult(false);
            String result = proxy.execute();

            String userName = ((HelloAction) proxy.getAction()).getUserName();
            assertEquals(result, "success");
        } catch (Throwable e) {
            e.printStackTrace();
        }
    }
View Full Code Here

Examples of com.opensymphony.xwork.ActionProxy

        }
    }

   
    private HelloAction execute() throws Exception {
        ActionProxy proxy = ActionProxyFactory.getFactory().createActionProxy("", "hello", extraContext);
        proxy.setExecuteResult(false);
        proxy.execute();
        return (HelloAction) proxy.getAction();
    }
View Full Code Here

Examples of com.opensymphony.xwork.ActionProxy

     *
     */
    public void testMyMethod() {
       
        try {
            ActionProxy proxy = ActionProxyFactory.getFactory().createActionProxy("", "formProcessing!myMethod", extraContext);
            proxy.setExecuteResult(false);
            System.out.println(proxy.execute());
            FormProcessingAction action = (FormProcessingAction)proxy.getAction();
            action.execute();
            assertEquals("fileHello", action.getFile());
        } catch (Exception e) {
            e.printStackTrace();
        }
View Full Code Here

Examples of com.opensymphony.xwork.ActionProxy

            e.printStackTrace();
        }
       
    }
    private FormProcessingAction execute() throws Exception {
        ActionProxy proxy = ActionProxyFactory.getFactory().createActionProxy("", "formProcessing", extraContext);
        proxy.setExecuteResult(false);
        proxy.execute();
        return (FormProcessingAction) proxy.getAction();
    }
View Full Code Here

Examples of com.opensymphony.xwork2.ActionProxy

   
    // ------- ActionObject accessors -------

    protected String getActionObjectName(ActionContext context, String name)
    {
        ActionProxy proxy = getActionProxy(context);
        if (proxy==null)
            return null;
        return proxy.getActionName() + "." + name;
    }
View Full Code Here

Examples of com.opensymphony.xwork2.ActionProxy

        if (invocation==null)
        {
            log.error("Action Invocation cannot be obtained. Calling from action constructor?");
            return null;
        }
        ActionProxy proxy = invocation.getProxy();
        if (proxy==null)
        {
            log.error("ActionProxy cannot be obtained. Calling from action constructor?");
            return null;
        }
View Full Code Here

Examples of com.opensymphony.xwork2.ActionProxy

        return proxy;
    }
   
    protected String getActionBeanName(ActionContext context, Class objClass, String ownerProperty)
    {
        ActionProxy proxy = getActionProxy(context);
        if (proxy==null)
            return null;
        if (ownerProperty==null)
            return proxy.getActionName()+ "." + objClass.getName();
        // Default
        return proxy.getActionName()+ "." + ownerProperty + "." + objClass.getName();
    }
View Full Code Here

Examples of com.opensymphony.xwork2.ActionProxy

   
    // ------- ActionObject accessors -------

    protected String getActionObjectName(ActionContext context, String name)
    {
        ActionProxy proxy = getActionProxy(context);
        if (proxy==null)
            return null;
        return proxy.getActionName() + "." + name;
    }
View Full Code Here

Examples of com.opensymphony.xwork2.ActionProxy

        if (invocation==null)
        {
            log.error("Action Invocation cannot be obtained. Calling from action constructor?");
            return null;
        }
        ActionProxy proxy = invocation.getProxy();
        if (proxy==null)
        {
            log.error("ActionProxy cannot be obtained. Calling from action constructor?");
            return 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.