Author: andrei_exadel
Date: 2009-01-28 04:47:07 -0500 (Wed, 28 Jan 2009)
New Revision: 12448
Modified:
trunk/test-applications/realworld/web/src/main/java/org/richfaces/realworld/manager/ImageManager.java
trunk/test-applications/realworld/web/src/main/webapp/WEB-INF/tags/templates/image.xhtml
Log:
Validator for image popup modal panel
Modified:
trunk/test-applications/realworld/web/src/main/java/org/richfaces/realworld/manager/ImageManager.java
===================================================================
---
trunk/test-applications/realworld/web/src/main/java/org/richfaces/realworld/manager/ImageManager.java 2009-01-28
09:20:20 UTC (rev 12447)
+++
trunk/test-applications/realworld/web/src/main/java/org/richfaces/realworld/manager/ImageManager.java 2009-01-28
09:47:07 UTC (rev 12448)
@@ -63,6 +63,12 @@
@In(create=true, required=true)
private RatingBinder ratingBinder;
+ private String oncomplete;
+
+ public ImageManager() {
+ oncomplete = null;
+ }
+
public void deleteImage(Image image){
String imagePath = image.getPath();
imageAction.deleteImage(image);
@@ -80,6 +86,7 @@
conversationState.setSelectedAlbum(albumItem.getAlbum());
}
imageAction.editImage(image, parentChanged);
+ oncomplete = "$('imageModalPanel').component.hide()";
}
@Observer(Constants.ADD_IMAGE_EVENT)
@@ -131,4 +138,14 @@
fileManager.renameImage(fileNameOld, fileNameNew);
return newPath;
}
+
+ public String getOncomplete() {
+ return oncomplete;
+ }
+
+ public void setOncomplete(String oncomplete) {
+ this.oncomplete = oncomplete;
+ }
+
+
}
Modified:
trunk/test-applications/realworld/web/src/main/webapp/WEB-INF/tags/templates/image.xhtml
===================================================================
(Binary files differ)
Show replies by date