Comments on: ADF Faces File Uploading – It is really that simple! https://technology.amis.nl/2007/07/14/adf-faces-file-uploading-it-is-really-that-simple/ Friends of Oracle and Java Wed, 24 Jun 2015 09:59:44 +0000 hourly 1 http://wordpress.org/?v=4.2.2 By: Bayat https://technology.amis.nl/2007/07/14/adf-faces-file-uploading-it-is-really-that-simple/#comment-4806 Sun, 09 Oct 2011 07:32:43 +0000 http://technology.amis.nl/blog/?p=2297#comment-4806 Dear Lucas
Thank you for your interesting article.  Actually it was very helpful!
Now I need a “progress bar” for my “file uploading”, showing the percent of completion, especially for the files with  huge size.
I don’t know how to do this part of the code. I’ll be thankful if you guide me on this matter.
Regards.
 

]]>
By: vosime https://technology.amis.nl/2007/07/14/adf-faces-file-uploading-it-is-really-that-simple/#comment-4805 Tue, 04 Oct 2011 21:59:05 +0000 http://technology.amis.nl/blog/?p=2297#comment-4805 hi,
 
i managed to run the sample on the Jdev 11.1.2 :)
here is what i did.
. first i downloaded jfreereport-0.8.6.jar (for ExcelProcessor class) and jcommon-1.0.15.jar (for StackableException class) via jar search.
. then replaced the <managed-bean-class>nl.amis.adffaces.excel.ExcelProcessor</managed-bean-class> with <managed-bean-class>org.jfree.report.modules.output.table.xls.ExcelProcessor</managed-bean-class>
then ran the sample :-)
hope this helps
vosime

]]>
By: kunal https://technology.amis.nl/2007/07/14/adf-faces-file-uploading-it-is-really-that-simple/#comment-4804 Tue, 20 Sep 2011 14:52:51 +0000 http://technology.amis.nl/blog/?p=2297#comment-4804 I am unable to run this example on Jdeveloper 11.1.2…..
Can u please help??

]]>
By: Sombit https://technology.amis.nl/2007/07/14/adf-faces-file-uploading-it-is-really-that-simple/#comment-4803 Tue, 13 Sep 2011 11:40:15 +0000 http://technology.amis.nl/blog/?p=2297#comment-4803 Hi
Using your program where(location)will the file be placed on to server .
In my case if I am running from local then the file should be uploaded to my local jdev directory structure. But I dont find the file uploaded.

Thanks

]]>
By: venkat https://technology.amis.nl/2007/07/14/adf-faces-file-uploading-it-is-really-that-simple/#comment-4802 Mon, 15 Feb 2010 13:45:26 +0000 http://technology.amis.nl/blog/?p=2297#comment-4802 i tried excel instead of text file. It is unable to read excel data , displaying in unreadable format .
i tried to put  

 FileInputStream fis = fis = new FileInputStream(this.uploadedfile.getInputStream);
                HSSFWorkbook workbook = new HSSFWorkbook(fs);
                HSSFSheet sheet = workbook.getSheetAt(0);

i’m getting error , “FileinputStream(uploadfile) can not invoke FileInputStream(File)”.

i aslo tried to put  his.filecontents = parseISToString(uploadedFile.getInputStream()). giving me error file format/content can not resolve.

any sample code or link that could help me to solve the issue
thanks

]]>
By: venkat https://technology.amis.nl/2007/07/14/adf-faces-file-uploading-it-is-really-that-simple/#comment-4801 Mon, 15 Feb 2010 12:58:55 +0000 http://technology.amis.nl/blog/?p=2297#comment-4801 Hi ,
       It is working fine with .txt ,but i need using excel sheet. can any one me with this

]]>
By: Fernando https://technology.amis.nl/2007/07/14/adf-faces-file-uploading-it-is-really-that-simple/#comment-4800 Fri, 25 Sep 2009 16:01:28 +0000 http://technology.amis.nl/blog/?p=2297#comment-4800 Awesome, thx, Im using Oracle JDev 11g and I dont use this oracle.adf.view.faces.model.UploadedFile Instead im Using org.apache.myfaces.trinidad.model.UploadedFile

I fallow one by one of ur Steps and every goes just great. the only thing, I create a Button with label “Start Uploading!” with no code and default properties, just to upload the file selected.

And Now I will try upload a picture. Any help with this?

]]>
By: SMT https://technology.amis.nl/2007/07/14/adf-faces-file-uploading-it-is-really-that-simple/#comment-4799 Fri, 05 Jun 2009 09:34:50 +0000 http://technology.amis.nl/blog/?p=2297#comment-4799 I’m working on jdev 11.1.1.0.1. There seems no more class (oracle.adf.view.faces.model.UploadedFile). Instead, there is only org.apache.myfaces.trinidad.model.UploadedFile. Even in Oracle document http://download.oracle.com/docs/cd/E12839_01/web.1111/b31973/af_input.htm#BABDFAEI, it teaches people to use trinidad.

I follow Oracle’s documentation but receive this error java.lang.ClassCastException: mypackage.view.myBackingBean cannot be cast to javax.servlet.Filter

So, do I need to declare mybacking bean as a filter?

]]>
By: Marko https://technology.amis.nl/2007/07/14/adf-faces-file-uploading-it-is-really-that-simple/#comment-4798 Mon, 06 Apr 2009 18:12:08 +0000 http://technology.amis.nl/blog/?p=2297#comment-4798 hey man, i need to upload files with a filesize greater than 50MB, but i have problems, with the file size, i had modified the init properties inthe web.xml, but it does not work, any idea?

]]>
By: Suhana Redzwan https://technology.amis.nl/2007/07/14/adf-faces-file-uploading-it-is-really-that-simple/#comment-4797 Mon, 16 Feb 2009 07:58:16 +0000 http://technology.amis.nl/blog/?p=2297#comment-4797 Hi there..this is a cool stuff…but I wanted to save the file to a physical location..how can i do this?

]]>
By: Aldrino https://technology.amis.nl/2007/07/14/adf-faces-file-uploading-it-is-really-that-simple/#comment-4796 Tue, 09 Sep 2008 16:54:35 +0000 http://technology.amis.nl/blog/?p=2297#comment-4796 Very useful!.
I tested that in jDeveloper 10.1.3.3, and it works. Just a warning appeared in class “FileProcessor.java”, that was “DataInputStream readLine is deprecated”, but you can solve this using java class “BufferedReader” instead “DataInputStream”, like this:

Before: java.io.DataInputStream din = new java.io.DataInputStream(is);
After: BufferedReader din = new BufferedReader(new InputStreamReader(is));

]]>
By: Ash Manukyan https://technology.amis.nl/2007/07/14/adf-faces-file-uploading-it-is-really-that-simple/#comment-4795 Tue, 29 Apr 2008 14:13:46 +0000 http://technology.amis.nl/blog/?p=2297#comment-4795 Hi, I am a newbie in Jdeveloper and I was wondering if anybadoy has a .pdf or something with steps to configure enad register an adf in EBS 11.5.10.x or R12.
Regards

]]>
By: Ashwini https://technology.amis.nl/2007/07/14/adf-faces-file-uploading-it-is-really-that-simple/#comment-4794 Thu, 17 Apr 2008 07:18:37 +0000 http://technology.amis.nl/blog/?p=2297#comment-4794 I need to upload the file from client to server. By using this application how will I know where the file is saved in server? I need it as a file, not only the contents. Thanks.

]]>
By: itu https://technology.amis.nl/2007/07/14/adf-faces-file-uploading-it-is-really-that-simple/#comment-4793 Wed, 03 Oct 2007 05:00:56 +0000 http://technology.amis.nl/blog/?p=2297#comment-4793 could anybody tell me all the jar that i need for that application to make it rannable in ecplise-tomcat envirnment and the settings.

]]>
By: itu https://technology.amis.nl/2007/07/14/adf-faces-file-uploading-it-is-really-that-simple/#comment-4792 Tue, 02 Oct 2007 16:10:00 +0000 http://technology.amis.nl/blog/?p=2297#comment-4792 hello….this application is running on jdeveloper11g..but it is not running on eclipse-tomcat envirnment..may be i have missed nay jar file.could u pls tell me to make this runnable there what all i have to do?

]]>