-
1. Rich Faces 3.3.3 final Filepload Problem
boy18nj Mar 22, 2011 6:18 PM (in response to meneghette)post your code
-
2. Rich Faces 3.3.3 final Filepload Problem
ilya_shaikovsky Mar 23, 2011 6:16 AM (in response to boy18nj)At first check at least the form presence
And then if not helps provide code as Aman S asked.. (just wanted additionally ask to include not only bean and page but web.xml also)
-
3. Re: Rich Faces 3.3.3 final Filepload Problem
meneghette Mar 23, 2011 8:06 AM (in response to ilya_shaikovsky)OK. I will attach the code, instead of copy here,
I guess will be more easy
more information: this is happening in one of my client.
When I access from my company, I can attach with no problem, but when he try to access inside his company he can't, I already check his firewall, network permissions, I Browser versions, Its like mine.
The problem is that does not appear any error in console,
Here the code.
-
web.xml 5.3 KB
-
GerenciadorAnexo.java.zip 4.3 KB
-
anexoPanel.page.xml 437 bytes
-
anexoPanel.xhtml.zip 2.2 KB
-
-
4. Re: Rich Faces 3.3.3 final Filepload Problem
ilya_shaikovsky Mar 24, 2011 4:54 AM (in response to meneghette)more information: this is happening in one of my client.
problem with flash version probably. update flash player there. or use allowFlash=false at page.
-
5. Re: Rich Faces 3.3.3 final Filepload Problem
meneghette Mar 24, 2011 3:25 PM (in response to ilya_shaikovsky)Hi IIya,
I tried both, but not sucess,
Do you have another ideia ?
There is some way to see the reason ?, because only transfer error is not helping..
-
6. Rich Faces 3.3.3 final Filepload Problem
jdsuboy Mar 24, 2011 3:44 PM (in response to meneghette)Hey Marcos,
How large is the file you are uploading? I had issues with fileUpload when I uploaded large Files (MBs in size). File upload uses two methods for uploading files. The default one is putting the uploaded data in a buffer in the UploadEvent. This is the one you are using and this buffer is accessed using getData( ) method. The other method is using a Temp File. The upload code will copy the data to a temporary file and the path to the file is accessed by calling getUploadItem( ).getFile( ).getAbsolutePath( ) on your UploadEvent.
To make UploadEvent use temporary files you need to set createTempFiles to true for org.ajx4jsf.Filter class in web.xml like so:
<filter>
<display-name>RichFaces Filter</display-name>
<filter-name>richfaces</filter-name>
<filter-class>org.ajax4jsf.Filter</filter-class>
<init-param>
<param-name>createTempFiles</param-name>
<param-value>true</param-value>
</init-param>
</filter>
Also, where are you seeing this Transfer Error? Is it on the Java side inside anexar method or is it on the client side?
-
7. Re: Rich Faces 3.3.3 final Filepload Problem
meneghette Mar 24, 2011 3:59 PM (in response to meneghette)Its a small file +- 150 Kb,
Im seeing the error on client side
see the attachment
-
Capturar.PNG 50.2 KB
-
-
8. Rich Faces 3.3.3 final Filepload Problem
jdsuboy Mar 24, 2011 4:13 PM (in response to meneghette)did you try turning on ajax logger to see if there is any clues in the there?
just add <a4j:log></a4j:log> inside your h:form and do ctrl-shift-L to bring up log window.