Package org.strecks.view

Examples of org.strecks.view.ActionForwardViewAdapter


    {
      actionBeanCount = 1;
      this.actionBean = actionBean;
    }
    callCount++;
    return new ActionForwardViewAdapter(null);
  }
View Full Code Here


    action.setNavigationHolder(navigationHolder);

    ViewAdapter viewAdapter = action.findActionForward(bean, new TestContextImpl(request));

    ActionForwardViewAdapter va = (ActionForwardViewAdapter) viewAdapter;
    assert (va.getActionForward() instanceof PageForward);

    verify(request);
  }
View Full Code Here

{

  @Override
  protected ViewAdapter executeAction(Object actionBean, ActionContext context)
  {
    return new ActionForwardViewAdapter(null);
  }
View Full Code Here

    }
    else
    {
      if (viewAdapter instanceof ActionForwardViewAdapter)
      {
        ActionForwardViewAdapter va = (ActionForwardViewAdapter) viewAdapter;
        ActionForward actionForward = va.getActionForward();
        request.setAttribute(InfrastructureKeys.ACTION_FORWARD, actionForward);
        return actionForward;
      }
      else if (viewAdapter instanceof RenderingViewAdapter)
      {
        RenderingViewAdapter va = (RenderingViewAdapter) viewAdapter;
        va.render(context);
      }
    }
    return null;

  }
View Full Code Here

    String url = getRedirectURL(actionName, requestParameters);

    ActionForward actionForward = new ActionForward(url);
    actionForward.setRedirect(true);
    return new ActionForwardViewAdapter(actionForward);

  }
View Full Code Here

{

  public ActionForwardViewAdapter getActionForward(ActionContext actionContext, String navigationResult)
  {
    ActionForward actionForward = actionContext.getMapping().findForward(navigationResult);
    return new ActionForwardViewAdapter(actionForward);
  }
View Full Code Here

public class ActionForwardNavigationHandler implements NavigationHandler<ActionForward>
{

  public ViewAdapter getActionForward(ActionContext actionContext, ActionForward navigationResult)
  {
    return new ActionForwardViewAdapter(navigationResult);
  }
View Full Code Here

  public ViewAdapter getActionForward(ActionContext actionContext, Page navigationResult)
  {
    PageForward pageClassForward = new PageForward(navigationResult);
    navigationResult.setHttpServletResponse(actionContext.getResponse());
    actionContext.getRequest().setAttribute(InfrastructureKeys.PAGE_BEAN, navigationResult);
    return new ActionForwardViewAdapter(pageClassForward);
  }
View Full Code Here

public abstract class BaseBasicController extends BaseControllerAction
{

  protected ViewAdapter getActionForward(ActionContext context, String result)
  {
    return new ActionForwardViewAdapter(context.getMapping().findForward(result));
  }
View Full Code Here

TOP

Related Classes of org.strecks.view.ActionForwardViewAdapter

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.