Examples of MovieForm


Examples of de.codecentric.moviedatabase.model.MovieForm

    return getLogicalViewNamePrefix()+"movies";
  }

  @RequestMapping(value = "/new", method = RequestMethod.GET)
  public String getCreateMovie(Model model) {
    model.addAttribute("movieForm", new MovieForm());
    model.addAttribute("actionLink", linkBuilderFactory.linkTo(HtmlMovieController.class).withSelfRel());
    model.addAttribute("cancelLink", linkBuilderFactory.linkTo(HtmlMovieController.class).withSelfRel());
    return getLogicalViewNamePrefix()+"movie_edit";
  }
View Full Code Here

Examples of de.codecentric.moviedatabase.model.MovieForm

  }
 
  @RequestMapping(value = "/{id}/edit", method = RequestMethod.GET)
  public String getEditMovie(@PathVariable UUID id, Model model) {
    Movie movie = movieService.findMovieById(id);
    model.addAttribute("movieForm", new MovieForm(movie));
    Resource<Movie> resourceMovie = movieResourceAssembler.toResource(movie);
    model.addAttribute("actionLink", resourceMovie.getLink(Relation.SELF.getName()));
    model.addAttribute("cancelLink", resourceMovie.getLink(Relation.SELF.getName()));
    return getLogicalViewNamePrefix()+"movie_edit";
  }
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.