Working upload of photos (individual and zip)
[photos] / src / main / java / org / wamblee / photos / wicket / HomePage.java
index a5d42faaa194aa655e12545e9a85f121a353c474..4a34bc0da750792de94ece9fb53d7a0605f90e0d 100644 (file)
@@ -65,7 +65,6 @@ public class HomePage extends BasePage {
 
         @Override
         public void onClick() {
-            System.out.println("Entry " + path + " was clicked");
             PageParameters pars = new PageParameters();
             pars.put("path", path);
             setResponsePage(HomePage.class, pars);
@@ -111,11 +110,9 @@ public class HomePage extends BasePage {
         PhotoEntry current = authorized.getEntry(path);
 
         if (current instanceof Photo) {
-            throw new RuntimeException("Photo entry viewing not yet implemented");
+            add(new PhotoPanel("content", parameters));
+        } else {
+            add(new AlbumPanel("content", parameters));
         }
-
-        Album album = (Album) current;
-
-        add(new AlbumPanel("content", parameters));
     }
 }
\ No newline at end of file