Ejemplo n.º 1
0
 public Resolution edit() {
   albums = musicFacade.getAllAlbums();
   genres = musicFacade.getAllGenres();
   artists = musicFacade.getAllArtists();
   HttpSession session = getContext().getRequest().getSession();
   playlists = musicFacade.getPlaylistsByAccount((String) session.getAttribute("username"));
   return new ForwardResolution("/song/edit.jsp");
 }
Ejemplo n.º 2
0
 @Override
 public Resolution handleValidationErrors(ValidationErrors errors) throws Exception {
   songs = musicFacade.getAllSongs();
   albums = musicFacade.getAllAlbums();
   genres = musicFacade.getAllGenres();
   artists = musicFacade.getAllArtists();
   HttpSession session = getContext().getRequest().getSession();
   playlists = musicFacade.getPlaylistsByAccount((String) session.getAttribute("username"));
   return null;
 }