Author: andrei_exadel
Date: 2008-03-18 11:38:00 -0400 (Tue, 18 Mar 2008)
New Revision: 6911
Modified:
trunk/ui/fileUpload/src/main/java/org/richfaces/renderkit/FileUploadRendererBase.java
Log:
RF-2571
Modified:
trunk/ui/fileUpload/src/main/java/org/richfaces/renderkit/FileUploadRendererBase.java
===================================================================
---
trunk/ui/fileUpload/src/main/java/org/richfaces/renderkit/FileUploadRendererBase.java 2008-03-18
15:11:24 UTC (rev 6910)
+++
trunk/ui/fileUpload/src/main/java/org/richfaces/renderkit/FileUploadRendererBase.java 2008-03-18
15:38:00 UTC (rev 6911)
@@ -445,8 +445,9 @@
public Object getAcceptedTypes(FacesContext context, UIComponent component) {
String acceptedTypes = (String) component.getAttributes().get(
"acceptedTypes");
- if (acceptedTypes != null) {
+ if (acceptedTypes != null && acceptedTypes.length() > 0) {
Map<String, Boolean> accepted = new HashMap<String, Boolean>();
+ acceptedTypes = acceptedTypes.replaceAll("[\\s]", "");
String[] types = acceptedTypes.split("[,;|]");
if (types != null) {
for (String type : types) {
Show replies by date