Author: andrei_exadel
Date: 2008-04-14 10:03:47 -0400 (Mon, 14 Apr 2008)
New Revision: 7801
Modified:
trunk/framework/api/src/main/java/org/richfaces/model/UploadItem.java
Log:
Remove throwing of exception
Modified: trunk/framework/api/src/main/java/org/richfaces/model/UploadItem.java
===================================================================
--- trunk/framework/api/src/main/java/org/richfaces/model/UploadItem.java 2008-04-14
13:53:40 UTC (rev 7800)
+++ trunk/framework/api/src/main/java/org/richfaces/model/UploadItem.java 2008-04-14
14:03:47 UTC (rev 7801)
@@ -62,23 +62,21 @@
}
/**
+ * This method should called only in case of TRUE value returned by {@link #isFile()}
method.
+ * Otherwise null value will be returned by this method.
* @return the file
*/
public File getFile() throws Exception {
- if (!isFile()) {
- throw new FacesException("This method should be called only if Ajax4Jsf
filter's parameter 'createTempFiles' set up in TRUE value");
- }
return file;
}
/**
+ * This method should called only in case of FALSE value returned by {@link
#isFile()} method.
+ * Otherwise null value will be returned by this method.
* @return the bytes
* @throws Exception
*/
public byte[] getData() throws Exception {
- if (isFile()) {
- throw new FacesException("This method should be called only if Ajax4Jsf
filter's parameter 'createTempFiles' set up in FALSE value");
- }
return bytes;
}
Show replies by date