Author: konstantin.mishin
Date: 2010-11-22 15:13:07 -0500 (Mon, 22 Nov 2010)
New Revision: 20139
Modified:
sandbox/trunk/ui/fileupload/ui/src/main/java/org/richfaces/component/AbstractFileUpload.java
Log:
RF-9497
Modified:
sandbox/trunk/ui/fileupload/ui/src/main/java/org/richfaces/component/AbstractFileUpload.java
===================================================================
---
sandbox/trunk/ui/fileupload/ui/src/main/java/org/richfaces/component/AbstractFileUpload.java 2010-11-22
20:07:38 UTC (rev 20138)
+++
sandbox/trunk/ui/fileupload/ui/src/main/java/org/richfaces/component/AbstractFileUpload.java 2010-11-22
20:13:07 UTC (rev 20139)
@@ -53,7 +53,7 @@
super.decode(context);
Object request = context.getExternalContext().getRequest();
if (request instanceof MultipartRequest) {
- queueEvent(new UploadEvent(this,
((MultipartRequest)request).getUploadItems()));
+ queueEvent(new UploadEvent(this, ((MultipartRequest)
request).getUploadItems()));
}
}
@@ -62,14 +62,15 @@
}
public void processEvent(ComponentSystemEvent event) throws AbortProcessingException
{
-// Map<String, UIComponent> facets = getFacets();
-// UIComponent component = facets.get("progress");
-// if (component == null) {
-// FacesContext context = getFacesContext();
-// UIComponent pb = context.getApplication().createComponent(context,
AbstractProgressBar.COMPONENT_TYPE, "org.richfaces.ProgressBarRenderer");
-// pb.setId(getId() + "_pb");
-// facets.put("progress", pb);
-// }
+ Map<String, UIComponent> facets = getFacets();
+ UIComponent component = facets.get("progress");
+ if (component == null) {
+ FacesContext context = getFacesContext();
+ UIComponent pb = context.getApplication().createComponent(context,
AbstractProgressBar.COMPONENT_TYPE,
+ "org.richfaces.ProgressBarRenderer");
+ pb.setId(getId() + "_pb");
+ facets.put("progress", pb);
+ }
}
/**
* <p>Add a new {@link FileUploadListener} to the set of listeners
Show replies by date