[richfaces-svn-commits] JBoss Rich Faces SVN: r6241 - trunk/sandbox/ui/fileUpload/src/main/java/org/richfaces/org/jboss/seam/ui/component.
richfaces-svn-commits at lists.jboss.org
richfaces-svn-commits at lists.jboss.org
Thu Feb 21 08:53:26 EST 2008
Author: akushunin
Date: 2008-02-21 08:53:26 -0500 (Thu, 21 Feb 2008)
New Revision: 6241
Modified:
trunk/sandbox/ui/fileUpload/src/main/java/org/richfaces/org/jboss/seam/ui/component/UIFileUpload.java
Log:
additional commit for fileUploadListener
Modified: trunk/sandbox/ui/fileUpload/src/main/java/org/richfaces/org/jboss/seam/ui/component/UIFileUpload.java
===================================================================
--- trunk/sandbox/ui/fileUpload/src/main/java/org/richfaces/org/jboss/seam/ui/component/UIFileUpload.java 2008-02-21 13:24:03 UTC (rev 6240)
+++ trunk/sandbox/ui/fileUpload/src/main/java/org/richfaces/org/jboss/seam/ui/component/UIFileUpload.java 2008-02-21 13:53:26 UTC (rev 6241)
@@ -5,6 +5,8 @@
import javax.el.MethodExpression;
import javax.faces.component.UIInput;
import javax.faces.context.FacesContext;
+import javax.faces.event.ActionEvent;
+import javax.faces.event.ActionListener;
import javax.faces.event.FacesEvent;
import org.richfaces.event.FileUploadListener;
@@ -138,21 +140,19 @@
}
public void broadcast(FacesEvent e) {
+
+ super.broadcast(e);
+
+ if (e instanceof UploadEvent) {
+ // XXX BTW, why doesn't UploadEvent accept any listeners?
- if (e instanceof UploadEvent) {
- //FIXME: Maksim -> Aleksej
- //If event needs to be broadcast to ALL of subscribed listeners.
- //Need to call super anyway
- //BTW, why doesn't UploadEvent accept any listeners?
-
FacesContext facesContext = FacesContext.getCurrentInstance();
MethodExpression binding = getFileUploadListener();
if (binding != null) {
binding.invoke(facesContext.getELContext(), new Object[] { e });
- }
- } else {
- super.broadcast(e);
- }
+ }
+
+ }
}
}
More information about the richfaces-svn-commits
mailing list