Package com.asual.summer.core

Examples of com.asual.summer.core.ViewNotFoundException


  @RequestMapping(value="/{value}", method=RequestMethod.GET)
  @ResponseViews({JsonView.class, XmlView.class})
  public ModelAndView view(@PathVariable("value") String value) {
    Technology technology = Technology.find(value);
    if (technology == null) {
      throw new ViewNotFoundException();
    }
    return new ModelAndView("/view", new ModelMap(technology));
  }
View Full Code Here


 
  @RequestMapping("/{value}/edit")
  public ModelAndView edit(@PathVariable("value") String value) {
    Technology technology = Technology.find(value);
    if (technology == null) {
      throw new ViewNotFoundException();
    }
    ModelMap model = new ModelMap();
    model.addAllAttributes(Arrays.asList(technology, License.list(), Status.list()));
    return new ModelAndView("/edit", model);
  }
View Full Code Here

  @RequestMapping(value="/{value}", method=RequestMethod.GET)
  @ResponseViews({JsonView.class,XmlView.class})
  public ModelAndView view(@PathVariable("value") String value) {
    Technology technology = Technology.find(value);
    if (technology == null) {
      throw new ViewNotFoundException();
    }
    return new ModelAndView("/view", new ModelMap(technology));
  }
View Full Code Here

 
  @RequestMapping("/{value}/edit")
  public ModelAndView edit(@PathVariable("value") String value) {
    Technology technology = Technology.find(value);
    if (technology == null) {
      throw new ViewNotFoundException();
    }
    ModelMap model = new ModelMap();
    model.addAllAttributes(Arrays.asList(technology, License.list(), Status.list()));
    return new ModelAndView("/edit", model);
  }
View Full Code Here

  }

  public View resolveViewName(String viewName, Locale locale) throws Exception {
    View view = super.resolveViewName(viewName, locale);
    if (view == null) {
      throw new ViewNotFoundException();
    }
    return view;
  }
View Full Code Here

    String viewName = findViewName(prefix, uri, suffix, false);
    if (viewName != null) {
      return viewName;
    }
   
    throw new ViewNotFoundException();
  }
View Full Code Here

TOP

Related Classes of com.asual.summer.core.ViewNotFoundException

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.