Example #1
0
 public List<Celebrity> getAllCelebrities() {
   return dataSource.getAllCelebrities();
 }
Example #2
0
 @OnEvent(component = "detailsLink")
 Object onShowDetails(long id) {
   Celebrity celebrity = dataSource.getCelebrityById(id);
   detailsPage.setCelebrity(celebrity);
   return detailsPage;
 }