Package net.sourceforge.pebble.web.view.impl

Examples of net.sourceforge.pebble.web.view.impl.CategoriesView


      Category category = blog.getCategory(id);
      getModel().put(Constants.CATEGORY_KEY, category);
    }
    getModel().put(Constants.CATEGORIES, blog.getCategories());

    return new CategoriesView(true);
  }
View Full Code Here


   * @param request  the HttpServletRequest instance
   * @param response the HttpServletResponse instance
   * @return the name of the next view
   */
  public View process(HttpServletRequest request, HttpServletResponse response) throws ServletException {
    return new CategoriesView(false);
  }
View Full Code Here

   */
  public View process(HttpServletRequest request, HttpServletResponse response) throws ServletException {
    Blog blog = (Blog)getModel().get(Constants.BLOG_KEY);
    getModel().put(Constants.CATEGORY_KEY, new Category());
    getModel().put(Constants.CATEGORIES, blog.getCategories());
    return new CategoriesView(true);
  }
View Full Code Here

TOP

Related Classes of net.sourceforge.pebble.web.view.impl.CategoriesView

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.