121122123124125126127
error.fire(new ErrorEvent("Error", Constants.ALBUM_SAVING_ERROR + "<br/>" + e.getMessage())); return; } // Reset 'album' component in conversation scope albumEvent.select(new EventTypeQualifier(Events.ALBUM_ADDED_EVENT)).fire(new AlbumEvent(album)); }
188189190191192193194
error.fire(new ErrorEvent("Error", Constants.ALBUM_SAVING_ERROR + "<br/>" + e.getMessage())); albumAction.resetAlbum(album); return; } // Reset 'album' component in conversation scope albumEvent.select(new EventTypeQualifier(Events.ALBUM_EDITED_EVENT)).fire(new AlbumEvent(album)); }
209210211212213214215
} catch (Exception e) { error.fire(new ErrorEvent("Error", Constants.ALBUM_DELETING_ERROR + "<br/>" + e.getMessage())); return; } // Raise 'albumDeleted' event, parameter path - path of Directory to delete albumEvent.select(new EventTypeQualifier(Events.ALBUM_DELETED_EVENT)).fire(new AlbumEvent(album, pathToDelete)); }
114115116117118119120121
albumAction.editAlbum(dragValue); } catch (Exception e) { error.fire(new ErrorEvent("Error:", Constants.ERROR_IN_DB + "<br/>" + e.getMessage())); return; } albumEvent.fire(new AlbumEvent(dragValue, pathOld)); ApplicationUtils.addToRerender(Constants.TREE_ID); }
155156157158159160161162
albumAction.editAlbum(album); eventAction.editEvent(event); } catch (PhotoAlbumException e) { error.fire(new ErrorEvent("Error:", Constants.ERROR_IN_DB + ": " + e.getMessage())); } albumEvent.fire(new AlbumEvent(album, pathOld)); } }