Package cn.webwheel.results

Examples of cn.webwheel.results.TemplateResult


    return new TemplateResult(this, VIEW_CART);
  }

    @Action
  public Object viewCart() {
    return new TemplateResult(this, VIEW_CART);
  }
View Full Code Here


    return new TemplateResult(this, VIEW_CART);
  }

    @Action
  public Object checkOut() {
    return new TemplateResult(this, CHECK_OUT);
  }
View Full Code Here

    return CATEGORY_LIST;
  }

    @Action
  public Object newAccountForm() {
    return new TemplateResult(this, NEW_ACCOUNT);
  }
View Full Code Here

        return new RedirectResult("CatalogActionBean.viewMain");
    }

    @Action
  public Object editAccountForm() {
    return new TemplateResult(this, EDIT_ACCOUNT);
  }
View Full Code Here

        return new RedirectResult("CatalogActionBean.viewMain");
    }

    @Action
  public Object signonForm() {
    return new TemplateResult(this, SIGNON);
  }
View Full Code Here

    if (account == null) {
      String value = "Invalid username or password.  Signon failed.";
      setMessage(value);
      clear();
      return new TemplateResult(this, SIGNON);
    } else {
      account.setPassword(null);
      myList = catalogService.getProductListByCategory(account.getFavouriteCategoryId());
      authenticated = true;
      HttpSession s = ctx.getRequest().getSession();
View Full Code Here

    @Action
  public Object listOrders() {
    HttpSession session = ctx.getRequest().getSession();
        AccountActionBean accountBean = ctx.getMain().createAction(ctx, AccountActionBean.class);
    orderList = orderService.getOrdersByUsername(accountBean.getAccount().getUsername());
    return new TemplateResult(this, LIST_ORDERS);
  }
View Full Code Here

TOP

Related Classes of cn.webwheel.results.TemplateResult

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.